Jobs & polling
Every generation request creates a job that runs asynchronously. Track it by polling
GET /jobs/{job_id} until it reaches a terminal state.
Status values
Section titled “Status values”status | Meaning | Terminal |
|---|---|---|
queued | Accepted, waiting to be picked up. | |
processing | Currently generating. | |
done | Completed — result.image_url is ready. | ✅ |
failed | Failed — see error. | ✅ |
Polling
Section titled “Polling”Poll GET /jobs/{job_id} until status is done or failed. A short interval (e.g. 2 seconds)
is typical.
curl -s https://api.moonez.ai/api/v1/jobs/$JOB_ID \ -H "Authorization: Bearer $API_KEY"See the full Get job reference for the response schema.