Endpoint
Parameters
Task ID returned from the Generate Task endpoint.
Headers
Response
Task States
Response Fields
JSON string containing
resultUrls array. Only present when state is success. Parse with JSON.parse().Optional final billing snapshot. Present only for models that publish settled billing details in successful terminal responses.
State-Specific Responses
Pending / Processing
Success
Failed
HTTP
200 with state: "failed" means the API request succeeded but the task itself failed. Check failCode and failMsg for the reason. See Errors for all failure codes.Result URLs
TheresultUrls array contains direct links to generated content:
Examples
- cURL
- JavaScript
- Python
Polling Example
- JavaScript
- Python
Error Responses
See Errors for detailed error handling.