size field, platform auto-appends to promptgpt-image-211:1 - Square (default)16:9 / 9:16 - Widescreen landscape / portrait4:3 / 3:4 - Standard landscape / portrait3:2 / 2:3 - Classic landscape / portrait5:4 / 4:5 - Near-square landscape / portrait2:1 / 1:2 - Wide landscape / tall portrait21:9 / 9:21 - Ultra-wide landscape / ultra-tall portraitresponse_format, quality, style) are not supported and will be ignored. Task results only return url — please download and convert to base64 yourself if needed.task_id is returned. Poll the task status via GET /v1/tasks/{task_id}, see Task Query API for details.
data.result.images[0].url[0]
| Status | Meaning |
|---|---|
pending | Submitted / queued |
processing | Being processed upstream |
completed | Success, result.images available |
failed | Failed, check error.message |
actual_time 44POST /v1/tasks/batch with body {"task_ids": ["task_xxx", "task_yyy"]}task_id, poll /v1/tasks/{task_id} to get the final image URLprompt is reviewed first — violations are rejected with no billingexpires_at = completed + 24h in the response is a hint field, please download or mirror to your own CDN promptlysize field for aspect ratio — avoid repeating it in prompt to prevent upstream ambiguitytask_id is retained in the database for several days by default (configured by TASK_RETENTION_DAYS) — expired queries return “task does not exist or has expired”