Skip to main content
You need a Joip account with credits. The API spends the same credits as the app, so there is no sandbox: your first request costs a real caption.
1

Create a key

Open API keys in the dashboard, name the integration and select Create key. Copy the joip_live_... value now. Joip shows it once and keeps only a verifier.If the dashboard asks you to Sign in again, do it and come back. No key is created until that check passes.
2

Put it in your environment

Keep it on your server. A request from a browser is refused.
3

Caption an image

This uses Joip’s public sample image, so it runs as written. The SDK helpers submit the job, wait for it, and hand back the captions.
Illustrated blue-haired subject used as the Joip API quickstart image

Joip's public quickstart image

What came back

captions() returns the finished job, with its items, and one entry per image in the order you sent them (timestamps and IDs trimmed here):
  • What it cost is job.billing.settled_credits. Joip reserves the price when it accepts the job, charges only for completed captions, and releases the rest. Check your balance with GET /v1/credits.
  • A failed image has text: null and an error with a code from the item error list. Failed images cost nothing.
  • A held job (needs_review) makes the helper throw JoipJobHeldError. Keep the job ID and don’t resubmit. See Jobs.
The signed-in Generations library shows the same job, its captions and its cost without any code.

The same thing over raw HTTP

Without an SDK, a caption is three calls: submit, poll, read.
1

Submit

Joip answers 202 Accepted with a job whose state is queued. Save its id. If the connection drops, send the same body with the same Idempotency-Key: you get the same job back, with Idempotent-Replayed: true, never a second one.
2

Poll

Repeat every second or two, backing off to five, until state is completed, partially_completed, failed or redacted. Stop at needs_review too: it is held, not finished.
3

Read

With include=items the job carries every item. A completed caption item looks like this:
GET /v1/jobs/{job_id}/items returns the same items as a paginated list.

Next

SDKs

Retries, paginators, helpers and TypeScript types.

Examples

Rewrites, custom styles, batches and history.

Errors

Every code and exactly what to do.