Skip to content
Docs

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.

GET / v1 / models
GET / v1 / 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.

Authorizations

Authorizationstring<bearer>required

Bearer authentication header of the form Bearer <token>, where <token> is your API key.

Your key stays in this page and is only sent with this request. Get an API key

List models
curl --request GET \
  --url https://api.libremodel.ai/v1/models \
  --header 'Authorization: Bearer YOUR_API_KEY'
{
  "object": "list",
  "data": [
    {
      "id": "deepseek-v4.1-flash-1017",
      "object": "model",
      "created": 0,
      "name": "DeepSeek V4.1 Flash",
      "architecture": {
        "input_modalities": [
          "text",
          "image"
        ],
        "output_modalities": [
          "text"
        ]
      },
      "supported_parameters": [
        "max_tokens",
        "temperature",
        "top_p",
        "stop",
        "tools",
        "response_format",
        "structured_outputs",
        "reasoning",
        "reasoning_effort"
      ],
      "context_length": 1048576,
      "pricing": {
        "prompt": "0.00000004",
        "completion": "0.0000003",
        "input_cache_read": "0.000000004",
        "request": "0",
        "image": "0.0001",
        "web_search": "0.005",
        "internal_reasoning": "0"
      },
      "top_provider": {
        "is_moderated": false,
        "context_length": 1048576
      }
    }
  ]
}

Authorizations

Authorizationstringheaderrequired

Bearer authentication header of the form Bearer <token>, where <token> is your API key.

Response

application/json

The list of models.

  • objectstringrequired

    Always "list".

    Example: "list"

  • dataobject[]required

    One object per model.

    Show child attributes
    • idstringrequired

      The value to send in model.

      Example: "deepseek-v4.1-flash-1017"

    • objectstringrequired

      Always "model".

    • createdintegerrequired

      Always 0.

    • namestringrequired

      The name of the model.

    • context_lengthinteger

      Context window, in tokens.

      Example: 1048576

    • architectureobjectrequired

      What the model reads and writes.

      Show child attributes
      • input_modalitiesstring[]required

        text, and image if it takes images (Vision).

        Example: ["text", "image"]

      • output_modalitiesstring[]required

        Always ["text"].

    • supported_parametersstring[]required

      The request parameters the model takes, such as tools or reasoning_effort.

    • pricingobject

      Dollars per token, as text. They are «from» prices: what each request cost comes in its usage.cost.

      Show child attributes
      • promptstringrequired

        Input.

      • completionstringrequired

        Output, reasoning included.

      • input_cache_readstringrequired

        Cached input.

      • requeststringrequired

        Always "0", like internal_reasoning. image is the price of each image in the request, and web_search the price of each web search in dollars ("0" on Uncensored models, which don't have it).

    • top_providerobject

      Limits of the model: context_length, and max_completion_tokens when there is an output limit.