Request body
Fields
| Field | Type | Default | Notes |
|---|---|---|---|
prompt | string or object | required | Object form supports positive, optional negative, and enhance. |
model | string | "auto" | A model ID or "auto". Set a specific model in production. |
size | string or object | "auto" | Presets, structured aspect ratios, or "auto". |
count | number | 1 | Minimum 1, maximum 100. |
inputs | array | [] | String URLs or structured image input objects. |
output | object | — | format (png, jpg, webp) and quality (0-100). |
webhook | object | — | enabled (boolean) and custom (array of { url }). |
content_rating | object | — | enabled (boolean) and optional levels array. |
metadata | object | — | Arbitrary JSON, maximum 2 KB. Returned with the task and webhook payloads. |
access | object | — | pat.enabled (boolean). Controls whether a task-scoped access token is returned. |
Object details
prompt object:
inputs entry:
reference, context, init.
webhook object:
access object:
publicAccessToken for browser-safe polling. See Browser Polling.
Prompt enhancement values
prompt.enhance accepts:
falseprefer_magicprefer_native
Size presets
squareportraitlandscapeportrait_talllandscape_wide1:12:33:23:44:34:55:49:1616:921:92:11:21:1_4k2:3_4k3:2_4k3:4_4k4:3_4k4:5_4k5:4_4k9:16_4k16:9_4k21:9_4k2:1_4k1:2_4k
Structured size objects
Aspect ratio
1:12:33:23:44:34:55:49:1616:921:92:11:2
scale values:
4k
scale: "4k" is requested, models with dedicated 4K pricing are billed at their 4K rate.