Models
Get model capabilities
One model's input schema and pricing rules.
GET
/v1/capabilitiesAuthorization
AuthorizationstringheaderrequiredBearer ast_gw_.... The key needs themodels:readscope.
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 returns400 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.statusstringavailablewhen the model can be run.model.output_countinteger- Always
1today. For models that can make several outputs,capabilities.output_count_fieldnames the input field (such asnum_images) andcapabilities.max_output_countits maximum. model.pricingobject | null- The lowest rate, as a six-decimal
amountwith itsunit. 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.