Bearer <YOUR_API_KEY>. See Authentication.
Get job
Retrieve the status and, once complete, the result of a generation job. Poll this endpoint until
status is done or failed.
GET /jobs/{job_id}Headers
Section titled “Headers”Authorization string requiredPath parameters
Section titled “Path parameters”Response
Section titled “Response”job_id stringUUID of the job.
created_at datetimeWhen the job was accepted.
started_at datetime | nullWhen processing began. null while still queued.
finished_at datetime | nullWhen the job reached a terminal state. null until then.
result object | nullPresent only when status is done.
null when the model returned text only.
null for image-only results.
error string | nullFailure reason. Present only when status is failed.
curl -s https://api.moonez.ai/api/v1/jobs/$JOB_ID \ -H "Authorization: Bearer $API_KEY"import requests
job = requests.get( f"https://api.moonez.ai/api/v1/jobs/{job_id}", headers={"Authorization": f"Bearer {API_KEY}"},).json()print(job["status"]){ "job_id": "0193a7f2-1c4a-7e0b-9b3a-2f1d8c6e4a55", "status": "done", "created_at": "2026-06-11T12:00:00Z", "started_at": "2026-06-11T12:00:01Z", "finished_at": "2026-06-11T12:00:09Z", "result": { "image_url": "https://cdn.moonez.ai/results/...?X-Amz-Signature=...", "text": null }, "error": null}{ "job_id": "0193a7f2-1c4a-7e0b-9b3a-2f1d8c6e4a55", "status": "failed", "created_at": "2026-06-11T12:00:00Z", "started_at": "2026-06-11T12:00:01Z", "finished_at": "2026-06-11T12:00:05Z", "result": null, "error": "Provider returned no image"}