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_url
and arequest_id
. - Continuously poll the
status_url
(or use the/status/{request_id}
endpoint) until thestatus
field indicates a terminal state.
IN_PROGRESS
– The request has been accepted and is currently being processed.
Continue polling until the status changes to eitherCOMPLETED
or an error state.COMPLETED
– The request was successfully processed.
The response includes theresult.image_url
containing the generated image.
For some endpoints, additional optional fields (seed
,prompt
,refined_prompt
) may be included.ERROR
– A processing error occurred in the pipeline.
The response includes anerror
object with details about the failure. Polling should be stopped.UNKNOWN
– An unexpected internal error occurred (equivalent to an HTTP500
in asynchronous workflows).
This status should not occur under normal circumstances. If it does, contact Support. and provide therequest_id
.
https://engine.prod.bria-api.com/v2/