Skip to main content
Every caption request creates a job. The job tracks state and billing; its items hold the captions, one per image, in the order you sent them.

Job states

queued, dispatching, submitted, polling and processing are active. needs_review is held and not terminal. completed, partially_completed, failed and redacted are terminal.

Read a job with its captions

GET /v1/jobs/{job_id}?include=items returns the job with an items array: every item, in input order. One call gives you the state, the cost and every caption.
Without include the job comes back without items, exactly as before. include accepts only items; anything else returns 400 invalid_query with param set to include. settled_credits is what the job cost. A completed item carries result.caption_text. A failed item carries a sanitized error with only code and message (see item errors) and costs nothing. Provider payloads and credentials are never exposed. GET /v1/jobs/{job_id}/items returns the same items as a cursor-paginated list, for when you want them a page at a time.

Poll until it’s done

Or skip polling entirely: the SDKs’ captions() and rewrite() submit, wait and return the captions in one call (SDKs). If you poll yourself:
  • Start about one second after acceptance and back off to five seconds.
  • Stop on a terminal state or needs_review.
  • On 429, wait Retry-After seconds. Each poll counts toward the key’s 120 requests per minute.
  • After a network error or 503 on submission, retry with the original Idempotency-Key.

Held for review

A job reaches needs_review when Joip can’t confirm what the caption provider did with an item. Joip holds the job’s remaining reservation until it reconciles the outcome, which takes far longer than a polling loop. Stop polling and keep the job ID. The SDK polling methods return a held job instead of waiting, and the one-call helpers throw JoipJobHeldError. Never resubmit a held job’s media under a new idempotency key: you would pay twice if the first attempt succeeded. Contact support with the job ID and X-Request-Id.

Find jobs

GET /v1/jobs lists your jobs, newest first, and accepts two optional filters beside limit and cursor:
An unknown value returns 400 invalid_query with param naming the filter. The SDKs’ iterJobs({ state, type }) and iter_jobs(state=..., type=...) walk every page for you. Jobs are account-scoped. Another account’s job ID returns 404 job_not_found.

Generations library

The signed-in Generations library shows this same job and item history inside Joip. Active generations refresh automatically; expand one to read its captions, sanitized errors and settled cost.