Get a Model
Get detailed information about a specific AI model
Endpoint
GET https://api.firstrouter.ai/v1/models/:model-id
Headers
Bearer token for authentication. Format: Bearer YOUR_API_KEY
Path Parameters
The model ID to retrieve information for. This should be a valid model identifier available in your system.
Response Fields
Model information object containing all details about the requested model.
Show 10 properties
Unique model identifier
Model display name
Model description and capabilities
Pricing information with prompt and completion rates (USD / 1M tokens)
Maximum context length in tokens
Model provider/author organization
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
Additional message or status information from the API response.
Indicates whether the request was processed successfully.
Request Example
curl -X GET "https://api.firstrouter.ai/v1/models/openai/gpt-4o-mini" \
-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.995,
"avg_latency": 950,
"is_free": false,
"sub_model_keys": [
"openai/gpt-4o-mini",
"openai/gpt-4o-mini-2024-07-18"
]
},
"message": "",
"success": true
}