Models
Discover authorized models, per-operation capabilities, context windows, and published Credit rates.
Request example
Call GET /v1/models with a Gateway API key to list all direct models and bound Policy logical models authorized for that key in the active Release. The Gateway serves this metadata directly from its loaded Release snapshot without querying the control-plane database or fetching live upstream pricing. There is no separate single-model lookup endpoint.
curl "$SHIELDON_GATEWAY_BASE_URL/models" \
-H "Authorization: Bearer $SHIELDON_GATEWAY_API_KEY"Response metadata
Each model preserves standard OpenAI list fields, capabilities, and per-operation operation_details. Every operation entry includes streaming, tool, usage, and modality flags alongside limits.context_window and published pricing.credit_rates (plus optional pricing.media_rates for media operations).
{
"object": "list",
"data": [
{
"id": "support-chat",
"object": "model",
"created": 1764200000,
"owned_by": "shieldon",
"capabilities": ["chat.completions", "images.generations"],
"operation_details": {
"chat.completions": {
"streaming": true,
"tools": true,
"usage": true,
"input_modalities": ["text", "image"],
"output_modalities": ["text"],
"limits": {
"context_window": 128000,
"max_input_tokens": 120000,
"max_output_tokens": 8192
},
"pricing": {
"credit_rates": {
"input_per_million": 300.000001,
"cached_input_per_million": 25,
"output_per_million": 1000
}
}
},
"images.generations": {
"streaming": false,
"tools": false,
"usage": true,
"input_modalities": ["text"],
"output_modalities": ["image"],
"limits": {
"context_window": null
},
"pricing": {
"credit_rates": {
"input_per_million": 0,
"cached_input_per_million": 0,
"output_per_million": 0
},
"media_rates": [
{
"unit": "images",
"per_million": 3,
"image_size": "1024x1024"
}
]
}
}
}
}
]
}Context window and capacity limits
limits.context_window reports the published total context capacity in tokens, independent of max_input_tokens and max_output_tokens. When undeclared in the catalog or configuration (missing, zero, or null), discovery returns null. The Gateway does not infer context length from input or output limits, and null does not mean unlimited.
Model Marketplace imports preserve verified source context windows through the model catalog API, storage, and Release snapshot. Existing catalog models are not backfilled or automatically republished. For logical models, operation features remain a union across enabled targets for that operation and known capacity limits are maxima, which does not guarantee that every combination is supported simultaneously by a single target.
Published Credit rates
pricing.credit_rates exposes input_per_million, cached_input_per_million, and output_per_million in Credits per million tokens (JSON numbers with up to six decimal places, without fiat currencies or exchange rates). All-zero rates are returned explicitly as 0; this does not change unpriced settlement or Credits budget semantics.
- Direct models: return the effective published rates resolved in the active Release snapshot.
- Logical models: compare only enabled targets that declare the current operation and take the maximum per component, so the highest input, cached input, and output rates may come from different targets.
- Media operations:
images.*,audio.*, andrealtime*operations may includepricing.media_rates, where each item containsunit,per_million, and optionalimage_size. Primary and additional rates are expanded with image-size conditions preserved, taking the maximum within the same unit and image size without comparing across different units or sizes. Explicit zeros are kept and omitted items mean no published tariff, not free usage. Media tariffs replace token tariffs for applicable targets and are not shown on text operations; when a logical model mixes media-billed and token-billed targets, both are shown separately rather than added together.
Boundaries and compatibility
Discovery rates are a per-component maximum summary, not a total request quote or spend cap. Actual settlement uses the selected target, and automatic decision routing, Decision Guardrails, or retries can add separate usage. Responses never expose Provider credentials, internal target identifiers, supplier costs, or fiat currency fields.
Publishing a configuration with a positive context window compiles Gateway Snapshot v21 without requiring a database migration; configurations without it keep prior snapshot version selection. Upgrade the Gateway (and any client that strictly rejects extra response fields) before publishing a Release with context windows, and roll back to a prior Release before downgrading the Gateway binary.