API 参考
Get generation status
Returns the status, progress, and result assets for a generation task. Poll until status is completed or failed. The id encodes the type (img_… / vid_…) so no type parameter is needed.
Returns the status, progress, and result assets for a generation task. Poll until status is completed or failed. The id encodes the type (img_… / vid_…) so no type parameter is needed.
Authorization
bearerAuth AuthorizationBearer <token>
In: header
Path Parameters
id*string
Response Body
application/json
application/json
application/json
curl -X GET "https://example.com/generations/img_44160"{ "code": 0, "message": "string", "data": { "id": "img_44160", "taskId": "string", "model": "nano-banana-pro", "type": "image", "status": "processing", "progress": 0, "error": "string", "result": { "images": [ "http://example.com" ], "videos": [ "http://example.com" ] } }}{ "code": 0, "message": "string"}{ "code": 0, "message": "string"}