Create captions

POSThttps://api-staging.talksign.co/v1/jobs

Adds captions to a video in the background and answers 202 Accepted at once. You get an MP4 with burned-in captions plus SRT and VTT files. Billed at $0.99 / min of video of source video. Send the video as multipart video or upload it first with POST /v1/uploads.

Headers

AuthorizationstringRequired

Bearer authentication of the form Bearer <token>, where the token is your API key (sk-live-… or sk-test-…).

Idempotency-KeystringOptional

Any unique string (up to 255 characters). A retry with the same key and body returns the first answer and is never charged twice. See Idempotency.

Request body

JSON or multipart/form-data.

typeenumRequired

Must be captions.

captions
videofileOptional

MP4, MOV or WebM, up to 500 MB and 10 minutes. Or use video_upload_id.

video_upload_idstringOptional

An upl_… id from POST /v1/uploads, instead of video.

captionsarrayOptional

Your own lines, { start, end, text } in seconds (up to 300). Leave out for an automatic transcript.

languagestringOptional

Spoken language of the video.

burn_inbooleanOptional

Burn captions into the MP4. Defaults to true.

resolutionenumOptional

Output resolution.

720p1080p

Response

Returns a job. Poll Get a job or use a webhook. When succeeded, result holds:

video_urlstringOptional

The captioned MP4 (with your key). download_url works without a key for 1 hour.

srt_urlstringOptional

Captions as SRT.

vtt_urlstringOptional

Captions as WebVTT.

linesintegerOptional

Number of caption lines.

transcriptstringOptional

The automatic transcript, when you sent no captions.

Errors

StatusNameWhen
400Bad requestA required field is missing or a value is not allowed (invalid_request).
401UnauthorizedThe API key is missing or not valid (invalid_api_key).
402Payment requiredYour wallet does not have enough funds for this request (insufficient_credits). Nothing is charged.
404Not foundUnknown video_upload_id (upload_not_found).
413Payload too largeThe video is too big or too long.
429Too many requestsYou hit a rate limit. Wait for Retry-After seconds. See Rate limits.

Example request

curl https://api-staging.talksign.co/v1/jobs \
  -H "Authorization: Bearer $TALKSIGN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "type": "captions",
    "video_upload_id": "upl_0a1b2c3d4e5f60718293a4b5"
  }'

Example response

202
Response
{
  "id": "job_8c1d2e3f4a5b6c7d8e9f0a1b",
  "object": "job",
  "type": "captions",
  "status": "queued",
  "created_at": "2026-11-22T12:00:00.000Z"
}

Read more in the full reference: Jobs and uploads.

Was this page helpful?
Esc