##All APIs require Bearer Token authentication##
Get API Key:
Visit API Key Management Page to get your API Key
Add to request header:
Authorization: Bearer YOUR_API_KEY
Task ID, ignore {} when querying, append the id from the async task response body at the end of the path
Task status details
Task creation timestamp
1756817821
Task ID
"task-unified-1756817821-4x3rx6ny"
Model used
"gemini-3.1-flash-image-preview"
Task type
image.generation.task, video.generation.task, audio.generation.task "image.generation.task"
Task progress percentage
0 <= x <= 100100
Task result list (provided when completed)
["http://example.com/image.jpg"]
Task status
pending, processing, completed, failed "completed"
Error information when the task fails (only present when status is "failed"). Note: error.code here is a string-type business error code, different from HTTP status codes. See the Error Codes Reference for the complete list.
Task detailed information
Task type
image, video, audio, text "image"