Models
Every listed model has a price per million tokens and, when known, a context length. What you see is what the next request costs.
The list
GET /v1/models is the catalog for a key. An agent with no key reads the same wholesale rate card from GET https://app.opencheap.si/api/v1/models, in price.promptUsdPerM and price.completionUsdPerM.
Prices can change at any time. Pages are 100 models. Pass nextCursor back as cursor. q filters by name.
Copy an id on the Models page and you get it with opencheap/ in front: the API takes opencheap/<id> everywhere it takes the id, and it keeps Cursor from sending claude- names to Anthropic.
uncensored: true marks a model with fewer content restrictions. It is a tag, not a filter: OpenCheap filters and moderates no model.
kind says how a model is called. A chat model answers /v1/chat/completions. A decisions model answers typed questions about a text at its endpoint, a path on the API host: /v1/systemone is https://api.opencheap.si/v1/systemone. See Decisions.
GET /v1/models lists chat models, as an OpenAI-compatible client expects. ?kind=decisions lists the decisions models and ?kind=all both; GET /v1/models/{id} answers for either kind. Where we know them an entry also carries max_output_tokens (also top_provider.max_completion_tokens), architecture.input_modalities and supported_parameters, in the field names other routers use.
Image, video and voice models are not in that list (a chat app would break on them): GET /v1/media/models lists them, with each model's settings, its price per setting and each provider's price, and needs no key. See Images, video and voice.
Most models can be answered by more than one route. The cheapest answers unless you ask for speed: add :nitro to a model id for the fastest route, or set provider.sort and a floor on tokens per second. A long prompt with a large max_tokens is ranked as if the answer could fill it; send x-klinn-io-ratio, or set the ratio on the key or gateway, to rank it at the answer you expect. See Speed.
curl https://api.opencheap.si/v1/models -H "Authorization: Bearer $OPENCHEAP_API_KEY"
curl "https://app.opencheap.si/api/v1/models?q=claude&limit=20"A model's page
Each model has a page on the Models list. The price at the top is the one you pay today, per million input and output tokens. Under it, Providers lists every provider that serves the model, by its own name, with the price it charges for input, cached input and output.
Latency is the median time to the first token, speed the median output rate. Uptime is the share of the last day's minutes in which the provider answered at least 80 % of requests, counting only minutes with 10 requests or more. Where a provider had too few requests a minute for that, it shows its success rate instead, the share of its requests answered, and says so. A dash means not measured yet: a provider has no numbers until it has served enough requests. A cache price in grey with an asterisk means the provider gives no cache discount, so cached tokens cost its input price.
The provider prices are what each provider charges. Until pass-through billing starts, a request is billed at the price at the top of the page (or as below when it falls over), not at a provider's own price.
What a request was charged
Every keyed chat answer carries its price in x-price-per-million: prompt, completion, cache_read and cache_write, in USD per million tokens. cache_write is the prompt price × 1.25, or × 2 with a cache_control ttl of 1h. A model with long-context tiers also gets x-price-long-context, one tier per element, lowest first: a tier prices the whole request when the request's input tokens, cached ones included, pass above. usage.cost is what the request was charged, in USD. A stream sends it in the usage chunk, with stream_options.include_usage. When a provider reports no token counts, we count them ourselves and usage.cost_estimated is true: the charge is our count at the same price. Reasoning models spend output tokens thinking: give them a max_tokens of 1,000 or more. Reasoning tokens are billed as output.
x-price-per-million: prompt=2.4; completion=12; cache_read=0.24; cache_write=3
x-price-long-context: above=200000; prompt=4.8; completion=18; cache_read=0.48; cache_write=6A decisions answer is billed on input tokens only. Its header is x-price-per-million: input=…, in USD per million input tokens, and usage.cost is what the call was charged.
An answer that fell over to a dearer source because the usual ones were down (see Errors) also carries x-price-basis: fallover, and its x-price-per-million is the price it was billed at.
A request that sets no max_tokens on a balance too small for the model's longest answer is sent with the output the balance covers. Its answer carries x-max-tokens-applied with that limit, and ends with finish_reason: "length" if it reaches it. Set max_tokens yourself to choose the limit. While a request runs it reserves at most half of your free balance, so calls sent at once each find room.