provider/model convention and pass it as the model
field. The live, authoritative list (with current pricing) is always at
GET /v1/models.
Available models
Audio transcription
See Audio transcription for a copy-paste file upload and
streaming example.
Image generation
openai/gpt-image-2 generates images via POST /v1/images/generations, billed
per token at the rates in the table below (text input plus image output tokens).
See Image generation for the request shape and options.
Token-priced models
Token prices are USD per 1M tokens. More providers and models are added over time.
The table shows standard rates.
google/gemini-3.8-flash, google/gemini-3.7-flash and
google/gemini-3.6-flash are promo-priced at 3.75 through 2026-12-31.
zai/glm-5.3-flash is promo-priced at 0.25 through 2026-09-09.
GET /v1/models always returns the effective price you’re billed at.
The table above is the whole catalog: GET /v1/models returns exactly the ids that route,
and anything else is a 404 — except a bare id on an endpoint that natively speaks one
provider (a bare Anthropic id on /v1/messages, a bare Google id on generateContent),
which is prefixed with that provider before lookup.
Retirement
Models are occasionally withdrawn. When one is, we announce a date first and the model keeps serving until then — we will email you before it happens. While a retirement is announced,GET /v1/models carries a deprecation block for that model
with the date and its successor, so you can check programmatically at any time. Once the model
is withdrawn the id returns 404 and the error names its successor, so a client that missed
the notice is still told where to go.
Credits
Usage is billed from a prepaid credit balance. Credits are denominated in micro-USD:- 1 credit = 1.00 = 1,000,000 credits
- Buying 0.50, making the pre-tax total $10.50
- New accounts get a signup bonus so the first call works immediately
How a request is priced
input_price / output_price are the per-1M-token prices above — the same
rate regardless of which of a model’s backends actually serves the request — with
no usage markup applied on top. Because a credit is one micro-USD, the “per 1M”
division cancels: tokens × price is already micro-USD. The amount is rounded
up, deducted when the request finishes, and recorded in the usage ledger
(GET /v1/usage).
Some models carry more than the two base rates, and the formula extends the same
way — each token class times its own rate, summed, rounded up once.
GET /v1/models reports every rate that applies to a model:
audio_input_per_mtok_usd— audio input tokens priced above the text rate (see Audio & video input)cached_input_per_mtok_usd/cache_write_per_mtok_usd— prompt-cache reads and writescontext_price_tiers— long-context brackets: once the prompt crosses a tier’s threshold, its rates apply to the request
Example —
gpt-4o-mini, 11 input + 3 output tokens:
⌈11 × 0.15 + 3 × 0.60⌉ = ⌈3.45⌉ = 4 credits ($0.000004).402 (see Errors).
Check your balance with GET /v1/account.
Requests routed through your own provider credential (BYOK) skip this
formula entirely — they’re billed 0 credits, since the provider charges you
directly.
Topping up
Buy credits with a hosted Stripe Invoice:invoice_url and pay. Credits are added automatically once the invoice is
paid, and Stripe retries cannot double-credit them. The minimum top-up is **10 of credits has a 10.50 before tax. The invoice has a single Impossible Credits line item
covering the credits and fee. Stripe Tax adds VAT or sales tax on top when
enabled.
GET /v1/billing shows your balance, the minimum top-up, the fixed platform fee
rate, and the provider-usage multiplier.
