Skip to main content

Models API

List models

The list is public. Without a key it returns the public lineup. With a key it also includes any private models granted to that key’s account.

Fields

context_length uses the same field name as OpenRouter. abliterated is true when refusal behavior has been removed from the weights and false for standard weights (for example, deepseek-v4.1-flash-fast and minimax-m3.1-flash). Filter on this field rather than on the -abliterated suffix: ids are catalog names and may not follow that pattern. Sending a reasoning level that is not in the model’s reasoning_efforts returns 400. See Reasoning.

Pricing

pricing gives the rates you are billed right now, in US dollars per 1 million tokens. Any active discount is already applied. Send your API key and the rates are the ones for your account, including any custom pricing agreed with us. Without a key you get the public list price. The rates in the examples on this page are illustrative. Read the real ones from the API.
To get the cost of a call, multiply the token counts in its usage by these rates:
Use the long_context rates when prompt_tokens is above its threshold. Discounts can start and end (for example, a weekly sale day). Each call is billed at the rates in effect when it started. If you track spend over a long run, fetch /v1/models again from time to time instead of caching it for good. A call paid from plan or promotional credits is charged against those credits, not your balance. A live empty catalog is the catalog. The local fallback only applies when the billing service is unreachable.

Retrieve a model

It returns the same fields as the list, pricing included. Send your key to get your account’s rates. Unknown id → 404: