Skip to main content
Caption operations are asynchronous. A successful request returns a job with HTTP 202; read the captions from GET /v1/jobs/{job_id}?include=items or /v1/jobs/{job_id}/items when the job is done.

Generate captions

POST /v1/captions/generate
Named styles are joi, forced-bi, beta, cbt, and cuckold. For a custom style, set style to custom and provide nonblank custom_instructions up to 4,000 characters.

Rewrite captions

POST /v1/captions/rewrite
Named rewrite modes are improve, spicier, milder, and different. Custom mode requires nonblank custom_instructions.

Media requirements

  • One to ten items per request.
  • Every URL must use public https://.
  • Joip validates hosts, redirects, media responses, and size limits before dispatch.
  • Private, loopback, link-local, credential-bearing, or otherwise unsafe URLs are rejected.
  • The caller must have the right and consent to process the supplied adult content.

Idempotent submission

Every caption request needs an Idempotency-Key header of 8 to 255 characters. Use one key per logical request, such as your own record ID plus the operation, and keep it for every retry of that request.
The first acceptance never carries Idempotent-Replayed. A replay is how you know a retried request after a dropped connection reached Joip the first time. Keys are scoped to your account and the route. The SDKs send a key on every submission and reuse it on their automatic retries. The accepted job’s replayed property tells you whether Joip replayed it.

Get the captions

A 202 job is only the start. Read the captions with GET /v1/jobs/{job_id}?include=items once the job is terminal (Jobs), or let the SDKs’ captions() and rewrite() helpers submit, wait and return them in one call.