For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
ModelsChatRankingsDocs
DocsAPI ReferenceClient SDKsAgent SDKCookbookChangelog
DocsAPI ReferenceClient SDKsAgent SDKCookbookChangelog
  • API Guides
    • Overview
    • Streaming
    • Embeddings
    • Limits
    • Authentication
    • Parameters
    • Errors and Debugging
  • API Reference
      • GETList all models and their properties
      • GETGet total count of available models
      • GETList models filtered by user provider preferences, privacy settings, and guardrails
LogoLogo
ModelsChatRankingsDocs
API ReferenceModels

Get total count of available models

GET
https://openrouter.ai/api/v1/models/count
GET
/api/v1/models/count
$curl https://openrouter.ai/api/v1/models/count \
> -H "Authorization: Bearer <token>"
1{
2 "data": {
3 "count": 150
4 }
5}
Was this page helpful?
Previous

List models filtered by user provider preferences, privacy settings, and guardrails

Next
Built with

Authentication

AuthorizationBearer
API key as bearer token in Authorization header

Query parameters

output_modalitiesstringOptional

Filter models by output modality. Accepts a comma-separated list of modalities (text, image, audio, embeddings) or “all” to include all models. Defaults to “text”.

Response

Returns the total count of available models
dataobject
Model count data

Errors

400
Bad Request Error
500
Internal Server Error