List Models
Lists currently available OpenAI-style models. CostRouter can also route Anthropic and Gemini model-list requests by headers.
Make your first request with curl
Replace sk-xxxx with your full API Key, then copy and paste the entire block into a macOS or Linux terminal. Once you receive a normal response, continue with the code, SDK, or client settings below. Keep each trailing backslash in place with no spaces after it.
curl Example
curl -X GET \
"https://costrouter.ai/v1/models" \
-H "Authorization: Bearer sk-xxxx"After the test: Configure your integration
Choose the option that matches your request tool, code, SDK, or third-party client, then use the request details below to complete the integration.
I'm configuring a request in a tool or code
Open the request's Headers settings and add an item: enter the header name below on the left and its value on the right.
I'm entering a key in an app or SDK
Find the app's API Key, Token, or Secret field and paste your full key, such as sk-xxxx. Do not include Authorization or Bearer.
Response Example
{
"object": "list",
"data": [
{
"id": "gpt-5.6-luna",
"object": "model",
"owned_by": "openai"
}
]
}