Jobs and polling

Every generation is a job: queued, running, then succeeded or failed.

StatusMeaning
queuedWaiting for a free slot. A studio runs up to 10 API jobs at once; more wait in line, oldest first.
runningBeing made.
succeededDone: output has the URLs.
failedIt didn't work. error says why; nothing was charged.
cancelledYou 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.codeMeaning
content_blockedThe model declined the request under its content policy.
timeoutThe job took too long and was stopped.
generation_failedAnything else. Safe to try again.
cancelledCancelled while queued.
Jobs and polling — Luce API