Overview
Service tiers let you trade price for speed on a per-request basis. Some providers offer faster processing for a model at a higher price. Setservice_tier on a chat completions request to use it.
Each tier has its own prices for input, output, and cached tokens. You’re billed at the tier that served the request, which the response reports in
service_tier. See List tiers and prices.Basic usage
Addservice_tier to your request:
- Python
- JavaScript
service_tier also accepts the OpenAI values auto (same as default) and priority (same as fast), so existing OpenAI client code works unchanged.
Which tier serves the request
If the model doesn’t offer the tier you asked for, the request steps down to the fastest tier it does offer, and isn’t rejected:ultrafaststeps down tofast, then todefault.faststeps down todefault.
service_tier field reports the tier that served the request. When it matches what you asked for, it echoes your value (for example priority). When the request stepped down, it reports the tier used (for example default). Streamed chunks carry the same value when the provider reports a tier in the stream. If you didn’t send service_tier, the field is omitted.
A provider can also serve a request at a lower tier than the one sent, for example when it’s under heavy load. The response reports the tier the provider actually used, and that’s the tier you’re billed for.
Fallbacks
Fallback models use the request’sservice_tier, stepping down if a fallback model doesn’t offer it. You can’t set service_tier on an individual fallback.
Errors
Aservice_tier value other than auto, default, priority, fast, or ultrafast returns a 400 error.
Models with faster tiers
The price multiplier applies to the model’s
default input, output, and cached-token prices, listed in the same order as the tiers. Every other model serves default only. Faster tiers are available in every region the model is.
List tiers and prices
The list available models endpoint returns aservice_tiers array for each model that offers a faster tier. Each entry has the tier name, its prices, and the endpoints it’s available on: