Skip to content
Software capabilities
OpenRouter

List models available through OpenRouter

List OpenRouter models with the REST API or TypeScript SDK. Check model IDs, supported modalities, context lengths, and listed pricing before choosing a model.

Documentation reviewed · 2 methods with sources

Ways to do it

  1. API: GET /api/v1/models
  2. SDK: openRouter.models.list()
API

GET /api/v1/models

Fetch the catalog of models and their properties. Use offset and limit when a bounded page is preferable.

Read source: OpenRouter models API
Requirements
An HTTPS client. The public catalog is available without credentials. Pass Authorization: Bearer when using an OpenRouter key.
Limitations
Results default to text-output models. Use output_modalities=all to include other modalities. An explicit limit cannot exceed 1,000.

Example shell

curl --fail "https://openrouter.ai/api/v1/models?output_modalities=all&limit=20"
SDK

openRouter.models.list()

Iterate over model pages through the official OpenRouter TypeScript SDK.

Read source: OpenRouter TypeScript models SDK
Requirements
Node.js, the @openrouter/sdk package, and an SDK client initialized with an OpenRouter API key.
Limitations
The SDK returns an asynchronous paginated result. Consume the iterator rather than assuming every model is in one response.

Example text

const result = await openRouter.models.list();
for await (const page of result) console.log(page);