mingyan
Nano Banana - Query Task
Query the status and results of image generation tasks
Query Image Generation Task
Use the task ID to query the status and results of image generation tasks.
Authentication
Get KeyAll requests require a Bearer token in the request header:
cURL
Authorization: Bearer {{key}}
Base URL
https://zcbservice.aizfw.cn/kyyReactApiServerbaseUrl is the shared prefix for all public APIs. The api field in the current page frontmatter shows the full endpoint. Use this baseUrl as the common prefix when reading or composing request paths.Path Parameters
idstringrequiredUnique identifier for the image generation task, returned from the create task interface
Response Parameters
idstringUnique identifier for the image generation task
objectstringObject type, always
image.generationcreatedintegerTask creation timestamp
modelstringModel name used
statusstringTask status:
queued- Queuedprocessing- Processingcompleted- Completedfailed- Failed
image_urlstringGenerated image URL, returned when status is
completederrorstringError message, returned when status is
failedStatus Flow
queued
Task created and added to queue, waiting for processing
processing
Task is being processed, AI model is generating the image
completed
Task completed, image generated successfully, result available via
image_urlPolling Recommendations
Polling Strategy:
- Recommended polling interval: 2-5 seconds
- Avoid overly frequent requests to prevent rate limiting
- Stop polling when status is
completedorfailed
Image URL Information
Important:
- Generated image URLs typically expire after 24 hours
- Please download and save images to your storage system promptly
- URLs will be inaccessible after expiration

