Models

code
GET /api/v1/models

List all available models. No authentication required.

A bare GET /api/v1/models (what OpenAI SDKs send) returns the strict OpenAI format: {"object": "list", "data": [{"id", "object", "created", "owned_by"}]}. GET /api/v1/models/{id} retrieves a single model the same way.

Adding any of the query parameters below switches to the rich format with pricing, throughput, and latency stats.

Query parameters

ParameterTypeDescription
qstringFree-text search across name, ID, and description
orderstringSort: top-weekly, newest, pricing-low-to-high, pricing-high-to-low, context-high, throughput-high, latency-low
providerstringFilter by provider slug (e.g. openai, anthropic)
modalitystringFilter by modality: text, image, etc.
minCtx / maxCtxnumberContext length range
pricingMin / pricingMaxnumberPrice-per-million range
activebooleanfalse to include inactive models

Response

json
{  "data": [    {      "id": "cuid",      "openrouterId": "openai/gpt-4o",      "slug": "gpt-4o",      "name": "GPT-4o",      "description": "OpenAI's flagship multimodal model...",      "contextLength": 128000,      "pricing": {        "prompt": 0.000005,        "completion": 0.000015,        "image": 0,        "request": 0      },      "modalities": ["text"],      "provider": "openai",      "authorName": "OpenAI",      "avgThroughputTps": 123.4,      "avgLatencyMs": 450,      "isActive": true    }  ]}
Pricing values in the response already include the 1.20× markup.