List Available Models
Get a list of all available AI models with their details and pricing
Endpoint
GET https://api.firstrouter.ai/v1/models
Headers
Bearer token for authentication. Format: Bearer YOUR_API_KEY
Request Parameters
This endpoint does not require any parameters.
Response
Returns an array of available models with their details.
Array of model objects containing detailed information about each available model.
Show 10 properties
Unique model identifier used in API requests
Human-readable display name of the model
Detailed description of the model's capabilities and characteristics
Pricing information with prompt and completion token costs (USD / 1M tokens)
Maximum number of tokens the model can process in a single request
The organization or company that created the model
Model uptime percentage as a decimal (e.g., 0.998 = 99.8%)
Average response latency in milliseconds
Whether the model is available for free usage
Array of sub-model identifiers associated with this model
Status message from the API response (usually empty on success).
Indicates whether the request was successful (true) or failed (false).
Request Example
curl -X GET "https://api.firstrouter.ai/v1/models" \
-H "Authorization: Bearer YOUR_API_KEY"
Response Example
{
"data": [
{
"id": "openai/gpt-4o-mini",
"name": "GPT 4o mini",
"description": "Large multimodal model that can solve difficult problems with greater accuracy than any of our previous models",
"pricing": {
"prompt": "0.0000007",
"completion": "0.0000007"
},
"context_length": 128000,
"author": "openai",
"uptime": 0.998,
"avg_latency": 1101,
"is_free": false,
"sub_model_keys": [
"openai/gpt-4o-mini",
"openai/gpt-4o-mini-2024-07-18"
]
},
{
"id": "anthropic/claude-3.7-sonnet",
"name": "Claude 3 Sonnet",
"description": "Balanced model with strong performance across a wide range of tasks",
"pricing": {
"prompt": "0.0000005",
"completion": "0.0000005"
},
"context_length": 200000,
"author": "anthropic",
"uptime": 0.995,
"avg_latency": 950,
"is_free": false,
"sub_model_keys": [
"anthropic/claude-3.7-sonnet",
"anthropic/claude-3.7-sonnet-thinking"
]
}
],
"message": "",
"success": true
}