Skip to content
Docs

API reference

List models

GET /v1/models returns the IDs you can send in model, in the OpenAI list format, with the fields OpenRouter adds: name, context, input types, parameters and price. client.models.list() in the OpenAI SDKs works as is. It needs your key, like every endpoint, and lists only the models that key can use.

curl https://api.libremodel.ai/v1/models \
  -H "Authorization: Bearer $LIBREMODEL_API_KEY"

Fields

Model object
FieldDescription
idThe value to send in model.
objectAlways "model".
createdAlways 0.
nameThe name of the model.
context_lengthContext window, in tokens.
architectureinput_modalities (text, image) and output_modalities (text).
supported_parametersThe request parameters the model takes, such as tools or reasoning.
pricingDollars per token, as text: prompt (input), completion (output, reasoning included) and input_cache_read (cached input). image is the price of each image in the request. request and internal_reasoning are "0". web_search is the price of each web search in dollars, apart from the tokens, and "0" on Uncensored models, which don't have it.
top_providercontext_length, and max_completion_tokens when there is an output limit.

They are «from» prices: the cheapest way to serve the model, the same as on Models. What each request actually cost comes in its response, in usage.cost.