GPT-5.6 API Pricing for Data Extraction
GPT-5.6 API pricing for data extraction depends on the model route, context tier, and the number of tokens used to produce each structured result. For a reliable estimate, identify the live route first, multiply its input and output rates by measured tokens, and include retries for invalid JSON or failed validation. The examples below use current Frugal Relay catalog data and an OpenAI-compatible request.
GPT-5.6 API pricing for data extraction
Section titled “GPT-5.6 API pricing for data extraction”Data extraction has a different cost shape from a short chat answer. The input often contains a long document, repeated schema instructions, or retrieved context; the output is smaller but must satisfy a parser. A malformed response can trigger a second full request, so budget the whole extraction attempt rather than only the final JSON.
For token-priced models, estimate one attempt as:
attempt cost = (input tokens / 1,000,000 * input rate) + (output tokens / 1,000,000 * output rate)For a batch, add every request and divide by the number of accepted records. Keep the route attached to each calculation; a Plus Account Route price must not be presented as the price for a Pro account or a Claude route.
cost per accepted record = total spend for all extraction attempts / accepted recordsDo not multiply a list price by an assumed universal discount. Frugal Relay publishes route-specific rates. A model is eligible for a route only when that route appears in the model’s enable_groups and has a value in the live group_ratio map. The pricing guide explains the same calculation and why the route must be named.
Current route prices for a production baseline
Section titled “Current route prices for a production baseline”The following token rates are calculated from the live catalog using its published inputs. They are comparison baselines, not a promise that every account has every route. Confirm the current rate at frugalrelay.me/pricing before putting a number in a budget or customer quote.
| Model | Human-readable route | Input / output per 1M tokens | Endpoint type |
|---|---|---|---|
gpt-5.6-terra | Plus Account Route | $3.375 / $20.25* | OpenAI |
gpt-5.6-terra | Pro Account Route | $6.75 / $40.50* | OpenAI |
gpt-5.5 | Plus Account Route | $0.225 / $1.35 | OpenAI |
gpt-5.5 | Pro Account Route | $0.45 / $2.70 | OpenAI |
gpt-5.4 | Plus Account Route | $0.1125 / $0.675 | OpenAI |
claude-sonnet-5 | Claude Sale Channel | $0.11 / $0.55 | Anthropic or OpenAI |
claude-sonnet-5 | Claude Route | $0.22 / $1.10 | Anthropic or OpenAI |
claude-opus-5 | Claude Sale Channel | $0.275 / $1.375 | Anthropic or OpenAI |
* Terra values are formula baselines; its live record is marked tiered_expr.
The gpt-5.6-terra figures are the formula result from the live inputs: 37.5 * 2 * 0.045 = $3.375 input on the Plus Account Route, with completion ratio 6 for output; the Pro Account Route uses 0.09 instead of 0.045. The live record marks Terra as tiered_expr, so these are a comparable baseline, not a promise that a long-context request will settle at one flat rate. Verify the applicable tier for the request before forecasting.
The gpt-5.5 Plus Account Route rate comes from 2.5 * 2 * 0.045 = $0.225 for input, followed by the live completion ratio of 6 for output. gpt-5.4 is listed only for the Plus Account Route, so its rate should not be copied to a Pro account. The Claude models list both the Claude Sale Channel and Claude Route, and those routes produce different numbers.
The supported-models guide shows endpoint compatibility, while the live catalog remains authoritative when the two differ.
Estimate a structured extraction request
Section titled “Estimate a structured extraction request”Suppose an invoice extractor sends 100,000 input tokens and receives 10,000 output tokens. Using the formula baseline for gpt-5.6-terra on the Plus Account Route, one attempt is:
(0.1 * $3.375) + (0.01 * $20.25) = $0.54If five percent of records need one equally sized retry, the planning estimate is approximately $0.54 * 1.05 = $0.567 per accepted record. This assumes the same tier, token shape, and retry size. Long-context tier changes, larger documents, and an extra validation pass can move the result, so compare it with usage records after a canary.
For comparison, the same token shape on gpt-5.5 using the Plus Account Route is:
(0.1 * $0.225) + (0.01 * $1.35) = $0.036That arithmetic does not decide the model. A lower attempt price can be a poor production choice if extraction accuracy falls or the parser requires more retries. Measure field-level accuracy, accepted-record rate, latency, and dollars per accepted record together.
Instrument attempts before optimizing them
Section titled “Instrument attempts before optimizing them”Add a request record around the client call. For extraction, capture:
- a document or batch identifier shared by every attempt;
- model name and the account route used for the request;
- input and output token counts returned by the API;
- attempt number, stop reason, timeout, and validation result;
- parser status: accepted, rejected, or abandoned;
- estimated spend using the rate that was active when the call ran.
Keep the raw token counts. A precomputed dollar value is convenient for dashboards, but raw counts let you recalculate when a route changes. Store enough context to compare a first attempt with its retry without copying user content into logs unnecessarily. Your retention and access policy should follow your own application requirements; this article makes no claim about a provider’s retention behavior.
Here is a minimal OpenAI-compatible extraction call using the documented base URL and the current gpt-5.6-terra model name:
from openai import OpenAI
client = OpenAI( api_key="fr-your-key-here", base_url="https://frugalrelay.me/v1",)
response = client.chat.completions.create( model="gpt-5.6-terra", messages=[ {"role": "system", "content": "Extract invoice_number, total, and due_date. Return JSON only."}, {"role": "user", "content": "Extract fields from this invoice text: ..."}, ], max_tokens=500,)
usage = response.usageprint({ "input_tokens": usage.prompt_tokens, "output_tokens": usage.completion_tokens,})The OpenAI-compatible path is POST /v1/chat/completions. Claude models in the catalog also support the Anthropic endpoint, POST /v1/messages, but the payload and client differ. Follow the getting started guide for account setup and key configuration, and keep the model name in configuration so a route or model change is visible in review. Validate the response against a JSON schema in your own application before writing extracted fields.
Turn the metric into production controls
Section titled “Turn the metric into production controls”Once the ledger is working, optimize the factors you can actually observe.
Bound retries and output
Section titled “Bound retries and output”Set a maximum attempt count and a maximum output budget for each task type. A retry should have a reason, such as a schema failure or a transient transport error. Do not retry deterministic validation failures with the same prompt. Record when a task is abandoned so your denominator does not quietly become “all requests.”
Route by measured extraction quality
Section titled “Route by measured extraction quality”Run a fixed set of representative documents before changing models or routes. Compare field-level accuracy, accepted-record rate, median and tail latency, tokens per accepted record, and dollars per accepted record. A route with a lower token rate can still cost more if it requires more attempts. Keep the route beside each result in reports; “GPT-5.5 cost” is incomplete without “Plus Account Route” or “Pro Account Route.”
Trim document context carefully
Section titled “Trim document context carefully”Large system prompts, OCR noise, and repeated document context increase input tokens on every attempt. Remove irrelevant pages, normalize OCR, and cap retrieved context. Re-run the extraction evaluation after trimming: saving tokens is not a win if a required field disappears.
Separate forecast from invoice
Section titled “Separate forecast from invoice”Use the formula for planning and a small live canary for validation. Compare your estimate with usage records after deployment, including failed calls and retries. The dashboard and usage logs are the billing record; a spreadsheet or code snippet is only a forecast.
A short launch checklist
Section titled “A short launch checklist”Before promoting a change, verify:
- The model name exists in the current supported model catalog.
- The chosen route is enabled for that model and has a current public ratio.
- The budget names the human-readable route beside every input and output rate.
- Token usage is recorded per attempt and tied to one task identifier.
- Retry, output, and abandonment limits are tested with failure cases.
- Dollars per accepted record is reported alongside field accuracy and latency.
- The live rate has been rechecked at frugalrelay.me/pricing immediately before launch.
Is extraction cost the same as cost per request?
Section titled “Is extraction cost the same as cost per request?”No. Cost per request covers one call. Extraction cost includes every call needed to produce an accepted record, so invalid JSON, schema retries, and fallbacks can make it higher.
Which route price should I put in a forecast?
Section titled “Which route price should I put in a forecast?”Use the route your account can actually use. Verify that the route is in the model’s enable_groups, look up its live group_ratio, and label the estimate with the route’s human-readable name. Do not substitute the cheapest listed route if your account is not eligible for it.
Can I compare Terra and GPT-5.5 token rates directly?
Section titled “Can I compare Terra and GPT-5.5 token rates directly?”You can compare the listed dollar arithmetic for a defined token workload, but Terra’s live record has tiered billing metadata and models may produce different token counts and extraction quality. Compare dollars per accepted record on the same evaluation set instead of relying on input price alone.
Where should I start?
Section titled “Where should I start?”Read the pricing guide, review supported models, then make one measured request through https://frugalrelay.me/v1. Validate the JSON and record the route before you scale document volume so your first production report answers what each accepted record cost.