Models
List models
Every model with its type, price and input schema.
GET
/v1/modelsAuthorization
AuthorizationstringheaderrequiredBearer ast_gw_.... The key needs themodels:readscope.
Returns every model in the catalog in one response, with no paging. At most 200 entries.
Response
dataarray- The models.
data[].idstring- Send this as
model. data[].model_revisionstring- The model version the catalog describes.
data[].namestring- Readable name.
data[].descriptionstring | null- One line on what it does and its limits.
data[].typestringimageorvideotoday. More types may be added.data[].enabledboolean- Whether the model is for sale. The list only holds models that are, so this is
truetoday; skip any entry where it isfalse. The list isn't filtered per key: a key limited to certain models gets403 model_not_availablefor the rest. data[].priceobject | null- Lowest price:
currency,amount(trailing zeros dropped, such as"0.08") andunit. Set for every model listed today. data[].input_schemaobject | null- JSON Schema for
input. data[].output_schemaobject | null- Shape of the job's
output.