Models

Get total count of available models

Changed on
get/models/count

Request

  • Base URL
    https://openrouter.ai/api/v1
  • Auth
    HTTP bearer

Query parameters

output_modalities, string

Filter models by output modality. Accepts a comma-separated list of modalities (text, image, embeddings, audio, video, rerank, decisions, speech, transcription) or "all" to include all models. Defaults to "text".

Example:text

Response

Returns the total count of available models

ModelsCountResponse required

Model count data

data, object required

Model count data

Example response

{
  "data": {
    "count": 150
  }
}

Changes

    • info

      added the non-success response with the status

    • info

      added the optional property openrouter_metadata to the response with the status

    • info

      added the optional property openrouter_metadata to the response with the status