GET /v1/models/{id}
Get one canonical model by ID or enabled alias, including key-specific pricing.
GET /v1/models/{id}
The identifier can be a canonical model ID or an enabled alias.
Request
curl https://api.model-gate.com/v1/models/ch-47 \
-H "Authorization: Bearer mg_live_..."
Response
The response has the same model object as an item returned by GET /v1/models. Conditional batch_cost and batch_pricing fields appear only when the authenticated account pricing template has a batch coefficient different from 1. The id field is always the canonical model ID, while aliases contains the accepted aliases.
context_window equals context_length; max_input_tokens and max_output_tokens expose configured client limits. A limit value of 0 means the value is not configured in Model Gate and should not be interpreted as an actual zero-token limit.
{
"id": "claude-opus-4.7",
"object": "model",
"aliases": ["ch-47"],
"currency": "USD",
"pricing_unit": "per_1m_tokens",
"context_length": 200000,
"context_window": 200000,
"max_input_tokens": 180000,
"max_output_tokens": 20000,
"max_completion_tokens": 20000,
"cost": {"input": "0.2", "output": "1", "cache_read": "0.02", "cache_write": "0.25", "reasoning": "1"},
"usage_cost": {"input": "10", "output": "50", "cache_read": "1", "cache_write": "12.5", "reasoning": "50"},
"usage_pricing": {"basis": "official_price", "multiplier": "10", "inherited_from": "key"},
"batch_cost": {"input": "0.1", "output": "0.5", "cache_read": "0.01", "cache_write": "0.125", "reasoning": "0.5"},
"batch_pricing": {"multiplier": "0.5", "applies_to": "claude_openai_compat_batches"}
}
Not found
{
"error": {
"type": "invalid_request_error",
"code": "model_not_found",
"message": "Model not found."
}
}