Jobs and polling
Every generation is a job: queued, running, then succeeded or failed.
| Status | Meaning |
|---|---|
queued | Waiting for a free slot. A studio runs up to 10 API jobs at once; more wait in line, oldest first. |
running | Being made. |
succeeded | Done: output has the URLs. |
failed | It didn't work. error says why; nothing was charged. |
cancelled | You cancelled it while it was queued; nothing was charged. |
curl https://www.luce.space/api/v1/jobs/job_api7QmVZk2rT9wXs1bYc \
-H "Authorization: Bearer $LUCE_API_KEY"Polling
Poll every few seconds (3–5 s is plenty) until the status is final. Polling counts against your rate limit; with many jobs, webhooks are kinder.
Failure codes
| error.code | Meaning |
|---|---|
content_blocked | The model declined the request under its content policy. |
timeout | The job took too long and was stopped. |
generation_failed | Anything else. Safe to try again. |
cancelled | Cancelled while queued. |