Skip to navigation

Media · Models · Get the field schema for an image model

View as Markdown

Return the parameters this model accepts, and the valid values for each, for a given capability. Public — no credential required.

This is the authoritative answer to “what can I pass to this model”. Build the parameters object of generateImage from what this returns rather than reusing settings from a different model.

Path parameters

model_idstringRequired

Query parameters

capabilityenumRequired

Which capability's field schema to return. Required — omitting it returns 400.

Allowed values:

Response

Field schema for the model and capability

Errors

400
Bad Request Error