The right model for the moment.
When a lower-cost model fits the task, take that path. When it needs the original model, keep it there.
Extract the requested fields from this invoice email and return them as a JSON object with keys vendorName, invoiceNumber, totalAmount, dueDate, and lineItems (an array of {description, quantity, unitPrice}). Subject: Invoice 4471 from Acme Office Supplies (Net 30) Hi there, Please find the details for your recent order below. Let us know if anything looks off and we'll get it corrected right away. This invoice reflects the items shipped in your most recent order and does not include any items still on backorder, which will be billed separately once they ship. Vendor: Acme Office Supplies, 118 Harbor Street, Suite 4, Portland, OR Invoice number: 4471 Order date: June 15, 2026 Payment terms: Net 30 Due date: July 15, 2026 Line items: - Standing desk (adjustable height), qty 2, $310.00 each - Ergonomic office chair, qty 3, $180.00 each - Monitor arm (dual), qty 4, $45.00 each Subtotal: $1,150.00 Shipping and handling: $90.00 Total due: $1,240.00 Payment can be made by ACH transfer using the account details on file, or by card through the link in your customer portal. A late fee of 1.5% per month applies to any balance not paid by the due date above. If you've already scheduled a payment, no action is needed on your end, but please keep this email for your records since it serves as your official receipt until payment clears. Thanks for your business, Acme Office Supplies Billing Team
This example routes to a lower-cost model within OpenAI. Sample estimates use Standard rates from November 18, 2026. Actual results depend on your request and rules.
Routes stay within your original provider.