/openrouter/models/search

POST /api/openrouter/models/search

Price: 1 credit

Search the OpenRouter model catalogue

How to use it

Use this to shortlist models by capability, price or benchmark score before asking for one model's hosting details. A model that sells several billing variants comes back once per variant, so the same `alias` can appear twice with a different `id` and price. The price bounds are USD per 1M tokens and only constrain the default endpoint, which is one provider out of several — pass the model to /openrouter/models/endpoints for the full spread. `authors` takes the segment before the slash in an alias, so 'openai' for 'openai/gpt-4o'.

Parameters

Request body

Response

Errors

Response headers