data.status
SUCCESS
FAILURE
data.data.images
index
mime_type
size
expires_at
data.fail_reason
Authorization: Bearer ********************
curl --location '/v1/images/tasks/' \ --header 'Authorization: Bearer <token>'
{ "success": true, "data": { "task_id": "task_9f2c1a7b4e", "platform": "openai_image", "action": "image_generation", "status": "SUCCESS", "model": "gpt-image-1", "created_at": 1792488481, "data": { "kind": "image_task", "images": [ { "index": 0, "mime_type": "image/png", "size": 1583021, "expires_at": 1792747681 } ], "expires_at": 1792747681, "cleaned": false } } }