OpenAI
Retrieve an image generation task
Poll an async GPT image generation task on RunBridge AI and retrieve its final Base64 image data.
GET
cURL
Use this endpoint after you create an image with
POST /v1/images/generations and async: true. The create request returns data.task_id, and this endpoint returns the task state plus final image data when the task succeeds.
Poll an image task
1
Create the task
Send
POST /v1/images/generations with async: true, then store data.task_id.2
Poll the task
Call this endpoint with the stored task ID until
data.status is success or failure.3
Read the image data
When
data.status is success, read the first item in data.data. Decode b64_json to save image bytes, or download url when it is present.Status values
pending: The task is queued or generating.success: The task finished anddata.datacontains the generated image data.failure: The task failed. Checkdata.fail_reasonwhen it is returned.
Authorizations
Bearer token authentication. Use your RunBridge AI key.
Path Parameters
Task ID returned in data.task_id by the async create request.
Last modified on October 9, 2026