English
cURL
curl --request GET \ --url https://api.example.com/inference/router/openrouter/models
{ "data": [ { "id": "<string>", "name": "<string>", "created": 123, "input_modalities": [ "<string>" ], "output_modalities": [ "<string>" ], "quantization": "int4", "context_length": 123, "max_output_length": 123, "pricing": { "prompt": "<string>", "completion": "<string>", "image": "<string>", "request": "<string>", "input_cache_reads": "<string>", "input_cache_writes": "<string>" }, "supported_sampling_parameters": [ "temperature" ], "supported_features": [ "tools" ], "datacenters": [ { "country_code": "<string>" } ] } ] }
Returns a list of models that are available to be used with OpenRouter.
This API is available without authentication.
Successful Response
Show child attributes
Was this page helpful?