Query Image Task Result
Query the asynchronous image task status by the job_id returned from the submit endpoint. When the status is DONE, data contains result image URLs; when the status is FAIL, error_message usually includes the failure reason.
curl -X POST "https://api.routescope.ai/v1/aiart/openai/image/query" \ -H "Content-Type: application/json" \ -d '{ "job_id": "task_20260529123456_abcd1234" }'{
"status": "WAIT",
"created": 1779993296
}{
"code": "invalid_request",
"message": "job_id is required",
"data": null
}{
"code": "invalid_request",
"message": "prompt or images is required",
"data": null
}{
"code": "invalid_request",
"message": "prompt or images is required",
"data": null
}Authorization
BearerAuth
AuthorizationBearer <token>
Model relay API authentication. Request header: Authorization: Bearer .
In: header
Request Body
application/json
job_id*string
Public task ID returned by the submit endpoint. This field is required.
[key: string]?never
Response Body
application/json
application/json
application/json
application/json
Last updated on