Skip to main content
These examples call the live API at https://api.joip.io with the official SDKs. Accepted jobs spend real credits. Use media you have the right and consent to process.

Caption a batch in one call

Up to ten images per job. captions() returns one entry per image, in the order you sent them, so you can zip the results back onto your own records.
A stable Idempotency-Key tied to your record (album-7-captions) means running the script twice never pays twice: the second run gets the original job back.

Custom style

Set style to custom and describe the voice in custom_instructions (up to 4,000 characters).

Rewrite captions

Rewrite modes are improve, spicier, milder, different and custom. See Captions for every style and media rule.

Handle a held job

A job held as needs_review makes the helpers throw. Store the job ID and stop; never resubmit the same media under a new key.

Submit now, collect later

For a queue worker or a web request that can’t wait, submit and store the job ID, then collect it in another process.

Walk your history

The Generations library shows the same history in the dashboard.

Without an SDK

Production retry policy

The SDKs apply the first three rows for you. Record X-Request-Id or the problem’s request_id when diagnosing a failure. Never log Bearer credentials, private media or raw provider payloads.