Skip to content

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 Meaning Terminal
queued Accepted, waiting to be picked up.
processing Currently generating.
done Completed — result.image_url is ready.
failed Failed — see error.

Poll GET /jobs/{job_id} until status is done or failed. A short interval (e.g. 2 seconds) is typical.

Terminal window
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.