List models
Returns the models the current token can call, determined by the token's group and model restrictions. It does not include prices; see the model square for prices.
GET
https://api.codingrouter.ai/v1/modelsOpenAI format
bash
curl https://api.codingrouter.ai/v1/models \
-H "Authorization: Bearer $CODINGROUTER_KEY"json
{
"object": "list",
"data": [
{"id": "claude-sonnet-5-5", "object": "model", "owned_by": "claude", "supported_endpoint_types": ["anthropic", "openai"]}
]
}supported_endpoint_types shows which API formats the model supports: openai (Chat Completions), openai-response, anthropic, gemini, embeddings, image-generation, openai-video.
Anthropic format
When both x-api-key and anthropic-version are sent, the Anthropic format is returned:
bash
curl https://api.codingrouter.ai/v1/models \
-H "x-api-key: $CODINGROUTER_KEY" \
-H "anthropic-version: 2023-06-01"json
{
"data": [
{"id": "claude-sonnet-5-5", "type": "model", "display_name": "claude-sonnet-5-5", "created_at": "..."}
]
}Gemini format
GET
https://api.codingrouter.ai/v1beta/modelsbash
curl https://api.codingrouter.ai/v1beta/models \
-H "x-goog-api-key: $CODINGROUTER_KEY"json
{
"models": [
{"name": "gemini-3.5-flash", "displayName": "gemini-3.5-flash"}
]
}Calling /v1/models with ?key= also returns the Gemini format.
