Skip to content
Open app

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.

statusMeaningTerminal
queuedAccepted, waiting to be picked up.
processingCurrently generating.
doneCompleted — result.image_url is ready.✅
failedFailed — 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.