Models

Get model capabilities

One model's input schema and pricing rules.

GET/v1/capabilities

Authorization

Authorizationstringheaderrequired
Bearer ast_gw_.... The key needs the models:read scope.

Returns one model's pinned input schema, pricing rules and limits.

Query parameters

modelstringrequired
The exact ID from GET /v1/models, URL-encoded. Sending it missing, empty or twice returns 400 invalid_request.

Response

model.idstring
The model ID.
model.model_revisionstring
Version of this contract.
model.input_schemaobject
JSON Schema for input. Some fields that set the price are optional with a default; send them to be sure of the price.
model.statusstring
available when the model can be run.
model.output_countinteger
Always 1 today. For models that can make several outputs, capabilities.output_count_field names the input field (such as num_images) and capabilities.max_output_count its maximum.
model.pricingobject | null
The lowest rate, as a six-decimal amount with its unit.
model.capabilities.billingobject
How the price is worked out: the unit, the input fields that pick the rate (rate_fields), the field that gives the length in seconds for per-second models (seconds_from) and every rate.