Create a key and get your first caption back in two minutes
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
export JOIP_API_KEY="joip_live_REPLACE_ME"
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.
Joip's public quickstart image
curl https://api.joip.io/v1/captions/generate \ --header "Authorization: Bearer $JOIP_API_KEY" \ --header "Content-Type: application/json" \ --header "Idempotency-Key: $(uuidgen)" \ --data '{"media_urls": ["https://joip.com/assets/landing/art-captions.webp"], "style": "joi"}'# Then read the job with its captions (use the id from the response):curl "https://api.joip.io/v1/jobs/JOB_ID?include=items" \ --header "Authorization: Bearer $JOIP_API_KEY"
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.
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.
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: