Overview
The Status Service provides progress tracking for asynchronous requests. This functionality is supported exclusively for V2 endpoints.
- Submit a request with
sync=false(default behavior). - The API returns a
status_urland arequest_id. - Continuously poll the
status_url(or use the/status/{request_id}endpoint) until thestatusfield indicates a terminal state.
IN_PROGRESS– The request has been accepted and is currently being processed.
Continue polling until the status changes to eitherCOMPLETEDor an error state.COMPLETED– The request was successfully processed.
The response includes eitherresult.image_urlfor images orresult.video_urlfor videos, , or structured_prompt (for structured prompt generation)."
For some endpoints, additional optional fields (seed, prompt, refined_prompt, structured_prompt) may be included.ERROR– A processing error occurred in the pipeline.
The response includes anerrorobject with details about the failure. Polling should be stopped.UNKNOWN– An unexpected internal error occurred (equivalent to an HTTP500in asynchronous workflows).
This status should not occur under normal circumstances. If it does, contact Support. and provide therequest_id.