List models
const url = 'https://api.saygm.com/v1/models?api_shape=messages';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?api_shape=messages'Returns the live catalog of canonical buyer model ids. Each entry reports API shapes, maker identity, gateway provider, pricing, composite billing metadata, capabilities, and advisory availability. Authentication is optional. Catalog responses include ETag and Cache-Control headers; send If-None-Match to revalidate. With Authorization, the gateway validates the key to filter composites.
Authorizations
Section titled “Authorizations”- None
- bearerAuth
Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Filter to models that support this API shape. Unknown or empty values return an empty list. Omit the parameter to list every model.
Examples
Models reachable through the Anthropic Messages API
messagesModels reachable through OpenAI Chat Completions
chat.completionsHeader Parameters
Section titled “Header Parameters”Revalidate the representation using its ETag.
Responses
Section titled “Responses”The live model catalog. Unknown or empty api_shape values return an empty data list.
The complete model catalog; there is no pagination.
object
One catalog entry. Direct and cascade products have a pricing card; fusion products omit pricing and price_range and carry billing and fusion metadata.
object
Canonical buyer model id to send in a request.
Fixed Unix timestamp retained for OpenAI SDK compatibility.
Organization credited with the model.
Trust boundary, derived from confidential and model_class: confidential is in-TEE inference; open and frontier are served by an upstream provider under that provider’s own terms. Unreviewed models report frontier.
Reviewed weights class. Omitted until GM has reviewed the model; an omitted field claims nothing.
true when inference runs inside a TEE. Omitted until GM has reviewed the model; an omitted field claims nothing.
Curated human-readable name. Omitted when GM has none, and for composites.
GM’s provider namespace for the model, usually its maker. It does not identify the upstream service that receives a request; a model can be served by several upstream providers, which X-GM-Providers can restrict. Composite products report gm.
Reasoning effort values supported by this model.
Accepted reasoning effort aliases and their native values.
object
One rate card for direct and cascade products. Omitted for fusion products because a fusion is billed per leg.
object
Pricing unit: per million tokens for token models, or per generated video second for video models.
Rates in nano-dollars. Per-token dimensions are per million tokens; output_per_image_ndollars is per generated image; output_per_video_second_ndollars is per generated video second. Dimensions are omitted when not offered and never serialized as null.
object
Video output price per generated second in nano-dollars.
Direct-product bounds. Omitted for composites without a single rate card; optional fields are omitted, never null.
object
Pricing unit: per million tokens for token models, or per generated video second for video models.
object
Rates in nano-dollars. Per-token dimensions are per million tokens; output_per_image_ndollars is per generated image; output_per_video_second_ndollars is per generated video second. Dimensions are omitted when not offered and never serialized as null.
object
Video output price per generated second in nano-dollars.
object
Rates in nano-dollars. Per-token dimensions are per million tokens; output_per_image_ndollars is per generated image; output_per_video_second_ndollars is per generated video second. Dimensions are omitted when not offered and never serialized as null.
object
Video output price per generated second in nano-dollars.
object
Rates in nano-dollars. Per-token dimensions are per million tokens; output_per_image_ndollars is per generated image; output_per_video_second_ndollars is per generated video second. Dimensions are omitted when not offered and never serialized as null.
object
Video output price per generated second in nano-dollars.
Present only for fusion products; omitted for direct and cascade products.
object
Present only for fusion products.
object
object
object
Whether the gateway is currently accepting inference requests for this model.
true for an announced model that cannot be called yet. Such a model is unavailable and has no pricing or price_range.
Hard capability flags and any published image or video generation limits.
object
Image API that serves the product, for example openai_images or gemini_generate_content.
Example
{ "object": "list", "data": [ { "id": "gpt-5.5", "object": "model", "owned_by": "anthropic", "tier": "frontier", "model_class": "open", "gateway_provider": "anthropic", "api_shapes": [ "chat.completions" ], "pricing": { "unit": "ndollars_per_mtok", "currency": "USD", "basis": "cheapest_eligible_offer", "surcharges": { "additionalProperty": { "kind": "per_event" } } }, "price_range": { "unit": "ndollars_per_mtok", "currency": "USD", "floor": { "basis": "cheapest_eligible_offer" }, "route_ceiling": { "basis": "cheapest_eligible_offer" }, "ceiling": { "basis": "cheapest_eligible_offer" } }, "billing": { "mode": "metered_per_leg" }, "fusion": { "strategy": "rank_then_fuse" }, "capabilities": { "api": "gemini_generate_content", "supported_frame_roles": [ "first_frame" ] } } ]}Headers
Section titled “Headers”Model catalog revalidation policy.
Weak validator for the current model representation.
The current representation matches If-None-Match.
Headers
Section titled “Headers”Model catalog revalidation policy.
Weak validator for the current model representation.
An Authorization header was supplied but the SayGM API key is invalid. Omit the header entirely to read the catalog anonymously.
OpenAI-shaped gateway error. Image errors after dispatch may also include billing fields at the top level.
object
object
Machine-readable error code. Account request limits use rate_limit_exceeded.
Gateway request identifier.
Settled charge in nano-dollars; present when billing_status is settled.
Example
{ "billing_status": "settled"}Headers
Section titled “Headers”The response is not stored.
When Authorization is present, the credit service is unavailable (ums_unavailable).
OpenAI-shaped gateway error. Image errors after dispatch may also include billing fields at the top level.
object
object
Machine-readable error code. Account request limits use rate_limit_exceeded.
Gateway request identifier.
Settled charge in nano-dollars; present when billing_status is settled.
Examples
{ "error": { "message": "Credit service unavailable.", "type": "server_error", "code": "ums_unavailable", "param": null }}Headers
Section titled “Headers”The response is not stored.