Unique identifier of the request.
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/
Request
Retrieves the current status of an asynchronous request.
Behavior
- Under normal operation, this endpoint returns
200 OK
, regardless of whether the request is in progress, completed, or has failed at the job level. - The
status
field in the response (IN_PROGRESS
,COMPLETED
,ERROR
,UNKNOWN
) indicates the state of the job. - When the job fails (status=
ERROR
), details of the failure are provided in theerror
object, but the HTTP status remains200
.
Other Possible Responses
404 NOT_FOUND
– Returned when the specifiedrequest_id
does not exist or has expired.5XX
– Returned when the Status Service itself experiences an internal error. For real-time updates, check Bria's Status Page. You can also contact our Support.When
status=COMPLETED
,result
may also include:seed
– Deterministic seed used for generation (if supported by the endpoint).prompt
– Original prompt provided by the user (if applicable).refined_prompt
– System-enhanced version of the input prompt (if applicable).
https://engine.prod.bria-api.com/v2/status/{request_id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://engine.prod.bria-api.com/v2/status/{request_id}'
{ "status": "COMPLETED", "result": { "image_url": "https://example.com/generated_image.png" }, "request_id": "123456" }