Video

Burn captions into a video

Changed on

Burns styled captions of the speech in input.video_url into the video: input.style is a preset (simple by default) and input.language the spoken locale, like en-US. Use it for social video watched with the sound off; to translate the speech itself use POST /v1/videos/dub. Billed per started minute of the clip. Returns the queued job immediately; poll GET /v1/jobs/{id} for status and results. Credits are charged only when the job completes successfully.

post/videos/captions

Request

  • Base URL
    https://api.crevio.co/v1
  • Auth
    API key in header Authorization

Headers

Idempotency-Key, string

Makes this write safe to retry: a repeat with the same key replays the first response instead of creating a second resource. Scoped to the account, remembered for 24 hours; reusing a key with a different payload is an error.

Request body

CaptionVideoRequest required
model, string

any fal.ai endpoint id runs as sent. Defaults to veed/subtitles.

input, object required

Burn styled captions into a video. Files: a URL, a file_… id from POST /v1/files, or a base64 data URI up to 10 MB.

Example request

{
  "input": {
    "language": "en-US"
  }
}

Response

Job queued

ProviderJob required
id, string required
object, string required
type, string required
status, 'queued' | 'processing' | 'completed' | 'failed' | 'cancelled' required
model, string required
progress, integer required
input, object required
result, object nullable required
error, string nullable required
error_code, string nullable required
credits_used, integer nullable required
provider_request_id, string nullable required
created_at, string date-time required
started_at, string date-time nullable required
completed_at, string date-time nullable required

Changes