Retrieve a model
const url = 'https://api.saygm.com/v1/models/claude-fable-5';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.saygm.com/v1/models/claude-fable-5Returns a single catalog entry. Model ids may contain a slash (for example Qwen/Qwen3-32B-TEE), so this path parameter can expand to more than one URL segment. Both a literal / and a percent-encoded %2F resolve to the same model. Authentication is optional on the same terms as the list operation.
Authorizations
Section titled “Authorizations”- None
- bearerAuth
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”A model id exactly as it appears in the id field of the list response. Ids containing / may be sent raw or percent-encoded.
Examples
Model id with no slash
claude-fable-5Model id containing a slash
Qwen/Qwen3-32B-TEEResponses
Section titled “Responses”The catalog entry for the requested model.
One entry in the gateway model catalog.
object
The value to send as the model field of a request. May contain a slash, for example Qwen/Qwen3-32B-TEE.
Unix timestamp in seconds, present for OpenAI client compatibility. The gateway reports a fixed value rather than a per-model creation date; do not use it to order or age models.
The organisation that trained or publishes the model.
The confidentiality guarantee the gateway can make for the model. confidential models run inside an Intel TDX TEE that gm attests. frontier and open models are served by an upstream provider under that provider’s own terms.
The upstream the gateway routes this model to. Distinct from owned_by: an open-weight model is often served by a different operator than the one that published it.
Every request format this model accepts. A model is only reachable on the endpoints matching one of these shapes.
Per-token prices for the model.
object
The unit every dimensions rate is expressed in: integer nanodollars (1e-9 of currency) per million tokens. A rate of 150000000 is therefore $0.15 per million tokens.
ISO 4217 currency code for the rates.
Rates in the unit named by pricing.unit. A field is null when the model does not bill that dimension — treat null as “not offered”, not as “free”.
object
Uncached input tokens.
Generated output tokens, including reasoning tokens where the model emits them.
Input tokens served from a prompt cache.
Input tokens written to a prompt cache with a five-minute lifetime.
Input tokens written to a prompt cache with a one-hour lifetime.
Standing charge for holding cached tokens, per million tokens per hour.
Audio input tokens.
Audio output tokens.
Prompt size, in tokens, above which the long-context rates replace the standard input and output rates. null means the model has no long-context tier and the paired long-context rates are null too.
Input rate applied once the prompt exceeds long_context_threshold_tokens.
Output rate applied once the prompt exceeds long_context_threshold_tokens.
Charges that are not per-token, keyed by an opaque surcharge name. Empty for most models.
object
A charge billed per event or per unit of wall-clock time rather than per token. Which rate field is present depends on kind.
object
How the surcharge is metered.
Nanodollars charged per event. Present when kind is per_event.
Nanodollars charged per hour. Present when kind is per_hour.
Whether the gateway is currently accepting inference requests for this model. Listed-but-unavailable models stay in the catalog so that their ids and prices remain resolvable.
Example
{ "id": "claude-fable-5", "object": "model", "owned_by": "anthropic", "tier": "frontier", "gateway_provider": "anthropic", "api_shapes": [ "chat.completions" ], "pricing": { "unit": "ndollars_per_mtok", "currency": "USD", "surcharges": { "additionalProperty": { "kind": "per_event" } } }}An Authorization header was supplied but the gm API key is invalid.
object
object
Examplegenerated
{ "error": { "message": "example", "type": "example", "code": "example" }}No model with that id is in the catalog. The response carries error.code model_not_found.
object
object
Examplegenerated
{ "error": { "message": "example", "type": "example", "code": "example" }}