Models
List models
The models your key can use, in the OpenAI list format, with the fields OpenRouter adds: name, context, input types, parameters and price per token.
/ v1 / modelsAuthorizations
AuthorizationstringheaderrequiredBearer authentication header of the form Bearer <token>, where <token> is your API key.
Response
The list of models.
objectstringrequiredAlways
"list".Example:
"list"dataobject[]requiredOne object per model.
Show child attributesHide child attributes
idstringrequiredThe value to send in
model.Example:
"deepseek-v4.1-flash-1017"objectstringrequiredAlways
"model".createdintegerrequiredAlways
0.namestringrequiredThe name of the model.
context_lengthintegerContext window, in tokens.
Example:
1048576architectureobjectrequiredWhat the model reads and writes.
Show child attributesHide child attributes
input_modalitiesstring[]requiredtext, andimageif it takes images (Vision).Example:
["text", "image"]output_modalitiesstring[]requiredAlways
["text"].
supported_parametersstring[]requiredThe request parameters the model takes, such as
toolsorreasoning_effort.pricingobjectDollars per token, as text. They are «from» prices: what each request cost comes in its
usage.cost.Show child attributesHide child attributes
promptstringrequiredInput.
completionstringrequiredOutput, reasoning included.
input_cache_readstringrequiredCached input.
requeststringrequiredAlways
"0", likeinternal_reasoning.imageis the price of each image in the request, andweb_searchthe price of each web search in dollars ("0"on Uncensored models, which don't have it).
top_providerobjectLimits of the model:
context_length, andmax_completion_tokenswhen there is an output limit.
The key is missing, wrong, revoked or expired.
errorobjectrequiredThe error.
Show child attributesHide child attributes
messagestringrequiredWhat went wrong, for a person to read.
typestringrequiredThe error family, as in the OpenAI API.
Example:
"authentication_error"codestringrequiredThe exact cause. Branch on this one. All codes: Limits and errors.
Example:
"invalid_api_key"paramnullrequiredAlways
null.