AI models
The platform’s own read-only catalogue of the models an agent can run on, with what each one can do.
List AI models
The models an AI agent can run on, with what each one can do. The catalogue belongs to the platform: read it to choose an agent's preferred_model_id. Prices are not part of a model — platform_priced says only whether there is one; what a run costs is recorded on the run.
query Parameters
page_sizeRows per page. Over the maximum is clamped, not rejected.
page_tokenOpaque token from a previous next_page_token. A token minted under a different order_by/filter is rejected.
skipRows to skip before the page (AIP-158). skip + page_size is capped at 10000; beyond that is OUT_OF_RANGE.
order_byComma-separated field [asc|desc], at most 3 keys. Default: display_name asc. Sortable: create_time, display_name.
filterAIP-160 subset (§8). Filterable: capabilities, create_time, display_name, external_id, provider, state, tier. A field outside the list is INVALID_ARGUMENT.
List AI models › Responses
One page of ai_models.
This page of ai_models, in the requested order.
next_page_tokenOpaque. Absent or empty means this was the last page.
total_sizeRows in the whole filtered collection, not in this page.
Get AI model
The models an AI agent can run on, with what each one can do. The catalogue belongs to the platform: read it to choose an agent's preferred_model_id. Prices are not part of a model — platform_priced says only whether there is one; what a run costs is recorded on the run.
path Parameters
ai_model_idId of the parent ai_model.
Headers
If-None-MatchA matching etag answers 304 with no body (§16).
Get AI model › Responses
The resource.
nameThe resource name (§5) — the identity of this resource, and the path that addresses it: websites/{website}/cms_pages/{cms_page}. It is the handle to store, not a human label.
idThe last segment of name on its own, for a client that needs to build a child URL. Unique inside its parent, never across the platform.
create_timeWhen the resource was created (RFC 3339, UTC).
update_timeWhen the resource last changed (RFC 3339, UTC).
etagVersion of the persisted state. Send it back in If-Match on Update or Delete and the write is rejected with ABORTED if anyone else changed the resource meanwhile (§14).
providerThe provider that serves this model, by the platform's name for it.
external_idThe provider's own identifier for the model — what a run sends it. It can move to a newer snapshot of the model while id, the name agents store, stays the same.
display_nameThe model's name as a person reads it, for a picker.
capabilitiesWhat the model can do. TEXT_GENERATION to run a text agent at all; STRUCTURED_OUTPUT to run an agent whose output_format is JSON; EFFORT to accept an agent's effort; IMAGE_GENERATION to run an IMAGE agent; IMAGE_EDITING to draw a picture from pictures it is given to work from; TRANSPARENT_BACKGROUND to draw a picture on no background; VISION and TOOL_CALLING are listed for later use.
max_input_tokensThe largest prompt the model accepts, in tokens.
max_output_tokensThe largest max_tokens an agent may set and still run on this model.
stateAVAILABLE models run. DEPRECATED and DISABLED ones do not, and an agent cannot be pointed at one — the platform takes a model out of service with this field, without a release.
tierA rough place on the speed-to-capability scale: FAST, BALANCED or POWERFUL.
platform_pricedWhether the platform has a price for what this model does — for an IMAGE_GENERATION model, a price for pictures in the unit its provider bills them by (per picture, or by tokens) — so a run on the platform's key can be charged. When it is false, a run on the platform's key is refused with MODEL_NOT_PRICED, and the model runs only on the account's own connection to its provider.