Service-tier pricing
Last updated: 2026-11-23T10:59:54-03:00 (UTC-3)
OpenAI bills one request at the price of the service tier that served it. The same model costs a different amount at the standard (default) tier, at priority (renamed Fast mode on the official pricing page), at flex and through the Batch API. On current models priority costs exactly twice the standard price in every token class (input, cached input, output), and flex half. A gateway that values every answer at the standard price undercounts priority traffic by half.
The gateway prices each answer at the tier the provider reports in it, from the same identified price sources as the standard rate. A tier no source prices stays unknown, never valued at the standard price. This applies to valuation, to budgets and TPM and to the advisory calculator. There is no separate flag: it follows usage_valuation, budget_limits and advisory_cost_calculator.
Which tier prices an answer
Section titled “Which tier prices an answer”| What the provider reports | Price applied |
|---|---|
service_tier: "default", "auto", no tier, or null |
Standard rate |
service_tier: "priority", "flex" |
That tier’s price, when a source publishes it |
A tier no source prices (scale, a new name) |
unknown, reason service_tier_unpriced |
A value that is not a tier name (a number, an object, ""), or provisioned, which is a Gemini tier |
unknown, reason billing_tier_unresolved |
| Two different tiers in one stream | unknown, reason service_tier_conflict |
- The reported tier wins over the requested one. A request that asks for
priorityand is served atdefault(the provider had no priority capacity) is valued at the standard price. - A non-standard tier asked for and not reported proves neither price: the cost is
unknown(service_tier_unreported). Asking forauto, or for nothing, and getting no tier back is valued at the standard price. - Where the tier is read: the top-level
service_tierof a Chat Completions answer and of every streamed chunk; the terminal response (response.completed,response.incomplete) of a Responses answer or stream. While a Responses stream is in progress (response.created,response.in_progress) the object echoes the tier the request asked for; that echo is ignored. A chat route translated to the Responses API reads the tier from the provider’s own terminal response. - Gemini names the tier in
usageMetadata:serviceTier(standard,flex,priority) ortrafficType(ON_DEMANDstandard,ON_DEMAND_FLEXandFLEXflex,ON_DEMAND_PRIORITYpriority,BATCHbatch,PROVISIONED_THROUGHPUTprovisioned). See Gemini tiers, media and totals. - Messages (Anthropic
usage.service_tier) and Bedrock (serviceTier) keep their earlier rule: anything other than the standard tier staysunknown(valuation) or held (budgets). - A request may send
service_tieritself, or the operator can force it per target with a request override (request_overrides: {service_tier: priority}). Either way the answer’s tier prices it.
Where tier prices come from
Section titled “Where tier prices come from”Community cost map. The cost map publishes, beside a model’s standard prices, the same fields with a suffix: input_cost_per_token_priority, output_cost_per_token_priority, cache_read_input_token_cost_priority, cache_creation_input_token_cost_priority, the _flex and _batches variants, and long-context prices such as input_cost_per_token_above_272k_tokens_priority. The gateway reads them only from the cost map entry that priced the standard rate (with price_source_cost_map on, the cost map won the vote), converts them to exact USD per million tokens and keeps the source, URL and fetch time with each tier. models.dev, OpenRouter and DeepInfra publish no service tiers, so a target priced by them has no tier prices.
A tier is used only when the source publishes both its input and output prices. A tier field the gateway cannot place (a second context threshold, a cache duration other than one hour) drops that tier rather than pricing it partially; so does a tier priced zero for both input and output, as an uncorroborated zero standard price is. A tier without a cache-read price values a cache read in that tier as unknown (cache_price_unavailable), never at the standard cache price. A tier without its own long-context price values an input above the standard long-context threshold as unknown (service_tier_long_context_unpriced).
Batch is the Batch API price (_batches fields). It appears in the catalog and the price book as batch; it prices an answer only when the provider reports service_tier: "batch" (or Gemini trafficType: BATCH).
Provisioned throughput (Gemini trafficType: PROVISIONED_THROUGHPUT) is the provisioned tier. No catalog publishes it: set it in the price book or on an approved budget rate, zero or the committed rate. An answer served there without a provisioned price is valued at the standard price with the reason provisioned_estimated, and settles a budget at the standard price, instead of staying unknown or held.
Manual price book. An entry of the manual price book can carry service_tiers. A tier it names wins over the catalog’s price for that tier (marked override: true when the catalog published one, even in a shape the gateway cannot read); a tier it leaves out keeps the catalog’s price.
price_book: - provider_id: openai model_id: example-model input_per_million: "0.75" output_per_million: "4.5" effective_from: "2026-11-01T00:00:00Z" source_url: https://example.com/pricing service_tiers: priority: input_per_million: "1.5" # required output_per_million: "9" # required cache_read_per_million: "0.15" # optional, this tier only cache_write_per_million: "1.875" # optional, this tier only| Field | Default | Rule |
|---|---|---|
service_tiers |
absent (no tier prices) | Keys priority, flex, batch, provisioned only |
input_per_million, output_per_million |
required in each tier | Nonnegative decimal string, up to 9 integer and 9 fractional digits, USD per million text tokens |
cache_read_per_million, cache_write_per_million |
absent | Same format; apply to that tier only |
The tier shares the entry’s source_url and effective_from. In the console, Settings & sources → Manual price book revisions → Edit rates has optional priority, flex and batch inputs for each rate; the API is the same PUT /api/v1/admin/price-book with service_tiers in each price.
The numbers above are an example: take the values from the provider’s official page.
Valuation
Section titled “Valuation”The frozen rate of each event records the tier that priced it: service_tier and that tier’s prices and source replace the standard ones in the stored snapshot, so the snapshot proves the price used. The usage event records the tier the provider reported (service_tier in the request log and GET /api/v1/admin/logs), with or without valuation. Analytics → Estimated cost shows the tier beside each request and the tier of the price applied.
Example, measured against the OpenAI API on 2026-11-08 with gpt-5.4-mini (12 input and 4 output tokens each), prices from the cost map and checked against the official pricing page (standard 0.75 / 4.50, priority 1.50 / 9.00 USD per million):
| Reported tier | Valued cost (USD) |
|---|---|
default |
0.000027 |
priority |
0.000054 |
Budgets and TPM
Section titled “Budgets and TPM”Approved quota rates (quotas.rates) carry their own service_tiers, approved by the operator like every other enforcement price:
quotas: rates: - provider_id: openai model: example-model connection: <fingerprint> input_usd_per_million: "0.75" output_usd_per_million: "4.5" cache_read_usd_per_million: "0.075" revision: rev-2 service_tiers: priority: input_usd_per_million: "1.5" output_usd_per_million: "9" cache_read_usd_per_million: "0.15"Each tier accepts input_usd_per_million and output_usd_per_million (required) and the optional cache_read_usd_per_million, cache_write_usd_per_million and cache_write_1h_usd_per_million, with the same bounds as the base prices (up to 10,000 USD per million, at most six decimal places). Keys are priority, flex, batch or provisioned; text rates only. The field is absent by default and omitted from the approval fingerprint when absent, so existing approvals stay valid.
| Request | Reservation |
|---|---|
service_tier: "default" |
Standard prices |
No service_tier, or "auto" |
The highest of the standard prices and every approved tier’s: the provider may apply the tier its project is set to, which the gateway cannot see |
"priority", "flex", "batch" |
The highest of the standard and that tier’s prices; refused with 422 quota_profile_unsupported (reason service_tier_not_approved) when the rate does not approve the tier, or when the input estimate is above the rate’s long_context threshold |
"fast" |
Reserved as priority: OpenAI answers and reports a fast request as priority (measured 2026-11-08) |
Anything else (a number, "", an unknown name) |
Refused before the provider is called |
A Gemini generateContent request reserves at the tier its serviceTier names (standard is default; any case), with the same rules; a name Gemini does not document is refused (unsupported_service_tier).
Settlement uses the tier the provider reported, Gemini’s included (its usage, or the x-gemini-service-tier header of a JSON answer whose usage names none); a Gemini stream whose chunks name two tiers keeps its reservation. Provisioned throughput without an approved provisioned price settles at the standard price. An answer in another tier the rate does not approve, a non-standard tier asked for and not reported, or a category the tier does not price (a cache read without the tier’s cache price, an input above the long-context threshold) keeps its reservation instead of settling at the standard price. The immutable measurement proof records the tier, so a later reconciliation settles at the same tier price. A TPM-only policy counts tokens whatever the tier. A request still served at a more expensive tier than reserved is debited in full and raises the usual overrun alert.
In the console, Budget & TPM → Approved rates shows each tier’s prices; the JSON rate editor accepts service_tiers.
Advisory calculator
Section titled “Advisory calculator”POST /api/v1/admin/pricing/estimate accepts service_tier (default, priority, flex, batch; fast is read as priority) for text quotes. The quote then prices the tier’s published rate, with the tier’s own source (rate_source, confidence: single_source or manual) and service_tier echoed; a tier no source publishes gives unknown (service_tier_unpriced) with no total. Warnings name the tier the quote covers (standard_service_tier_only or service_tier_<tier>_only). The console calculator has a Service tier selector.
Upgrade notes
Section titled “Upgrade notes”- Migration 110 adds the nullable
gateway_usage_events.service_tier. Events recorded before keepNULL. - Answers that reported
priorityorflexused to beunknown(billing_tier_unresolved) in valuation and held in budgets; they are now valued and settled when the tier is priced. - T077.005: Gemini answers with a
serviceTierortrafficTypeother than the standard used to beunknown(specialized_usage_unresolved) and held; they are now valued and settled at the tier the rate prices, and provisioned throughput at the standard price unless aprovisionedtier is approved. Budget requests withservice_tierused to be refused (unsupported_parameter); they are admitted under the rules above. - With
service_tiersapproved on a rate, a request withoutservice_tierreserves at the highest approved tier price. Sendservice_tier: "default"to reserve at the standard price alone.
Limits
Section titled “Limits”- The OpenAI dialect (Chat Completions, Responses) and Gemini read the tier. Anthropic and Bedrock tiers stay unknown or held. Gemini’s
x-gemini-service-tierheader is read on JSON answers only, as the tier of a usage that names none. - A chat route translated to Gemini does not forward
service_tier: a request that asks for one there is served at the standard tier and stays unknown (service_tier_unreported) or held. - A tier price is single-source: only the cost map publishes it, so it is never corroborated by a second catalog.
scaleand the newer Ultrafast tier have no published per-token price in the cost map; their answers stay unknown.- The usage CSV export does not include the tier column yet; the request log API does.
- The price is a reference, not an invoice; see billing imports.