NewAPI v3 · November 2026 Release

Subtitle API for translated SRT and VTT files

Upload a video once and get subtitle files in SRT and WebVTT for every target language, timed to the spoken content. Correct any line through the API, then download updated files for your player, app or video editing software.
SRT and WebVTT
135+ language and regional options
REST + 5 SDKs
upload, create, download
API key
# 1. import the video
curl -X POST https://api.rask.ai/v3/media/import \
  -H "Authorization: Bearer $RASK_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url": "https://youtu.be/..."}'

# 2. the price first - free, and it changes nothing
curl -X POST https://api.rask.ai/v3/projects/estimate \
  -H "Authorization: Bearer $RASK_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"media_id": "...", "target_language": "de-de"}'

# 3. create the project - the price you accepted is the ceiling
curl -X POST https://api.rask.ai/v3/projects \
  -H "Authorization: Bearer $RASK_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "media_id":              "...",
    "target_language":       "de-de",
    "expected_cost_minutes": 12
  }'
GET /v3/jobs/{job_id}
.srt + .vtt
# Wait on the job instead of polling: one request, up to 20 seconds.
curl -s "https://api.rask.ai/v3/jobs/$JOB_ID?wait_seconds=20" \
  -H "Authorization: Bearer $RASK_API_KEY" | jq .status
Used by global teams
Capabilities

Everything the subtitle API returns

Create translated SRT and WebVTT files from video or audio recordings, including podcasts and interviews. Choose a target language for each project and get subtitle files alongside the transcript, translation and dubbed content.

SRT and WebVTT files

Every finished project returns a .srt file and a .vtt file in the target language: SRT for video editing software and most platforms, WebVTT for web video playback.

Subtitles in another language

Remove language barriers for viewers in every market: create one project per target language, such as es-mx, pt-br or fr-ca, from the same upload. The source language is detected automatically.

Timed to the spoken content

Each subtitle follows a transcript segment with a start and an end time, so every line appears on screen while it is spoken.

Captions in the original language

The transcript holds the source text of every segment with timestamps. Convert it into an SRT or VTT file for same-language captions in a few lines of code.

Speaker labels for dialogue

Each transcript segment carries a speaker label, so you can add speaker identification to captions for interviews, panels and dialogue.

Edit a line before you publish

Correct the text or timing of any segment through the API and regenerate. Unclear words, names and accents get fixed once, in every format.

Consistent terms in every language

A glossary keeps product names and technical terms identical across all subtitle languages, or in the original language on purpose.

Subtitles and a dubbed version

The same project also returns the translated video and audio tracks, so subtitles and a dubbed version come from one upload.

Scale without limits

Every paid operation is priced before it runs, and the price you accept is the ceiling. Subtitle your whole video library in every target language in parallel, with a monthly spending limit on each key.
See it in action

One video, five language versions

The same clip in English, French, German, Portuguese and Spanish. Each language version comes with its own SRT and VTT subtitle files.
EN flag
En
FR flag
Fr
DE flag
De
PT flag
Pt
ES flag
Es
Workflow

Three requests from video upload to subtitle file

Creating the project starts transcription, translation and the dubbed version in one run. Use the /projects/{id}/dub endpoint after you edit subtitle lines.
1

Upload your video

Send the video as a file, or post a link from YouTube, Google Drive, S3, Vimeo or any direct URL. One upload serves every subtitle language.

POST /v3/media/import
2

Create the project

Pass the media_id and one target language per project. Projects for different languages run in parallel.

POST /v3/projects
3

Download the subtitle files

Wait on the job until it succeeds, then render the subtitles with GET /v3/projects/{project_id}/subtitles as .srt or .vtt and store them on your side.

GET /v3/projects/{project_id}/subtitles
Processing time varies with video length, the number of speakers and the target language. In one observed run, a 3:47 video was finished in 165 seconds.
Built around you

Need a subtitle format or delivery that is not listed? Talk to our team

Another caption format, delivery to your own storage, a language outside the catalogue or higher throughput: our team reviews what your production workflow needs and the available options.

Languages and voices

Need subtitles in a language outside the public catalogue? Talk to our team about your requirements and the available options.

Delivery and integration

Delivery into your own storage, custom endpoints, dedicated capacity. Tell us how your pipeline expects to be fed.

Volume and throughput

Batch sizes, target languages per action and processing priority are all contract terms, not fixed product limits.

Security and hosting

Data residency, SSO and SAML, retention rules and security review support are handled as part of enterprise onboarding.
Use cases

Who uses a subtitle API

Platforms with video inside

LMS and customer-education platforms, creator and video platforms, webinar and virtual event tools, video hosting and workflow SaaS, digital adoption platforms, live shopping. Turn subtitles in every language into a feature of your video uploads.

Localization and production agencies

Deliver SRT and VTT files for every client language from one upload. Reviewers correct lines through the API, and the files update without anyone retiming them.

In-house continuous video production

International retail and e-commerce, global franchises, media publishers, corporate universities. Make training and product video content accessible to every market and to viewers who watch without sound.
Customer stories

Real teams, measurable results

How companies localize video with Rask, in their own numbers.
arrow
arrow
Code

Subtitle API code examples

One complete example in each language: upload a video, create a project per subtitle language, wait, then save the .srt and .vtt files or add them to an HTML5 player.
# pip install rask-sdk
from rask_sdk import Rask

rask = Rask()                                   # reads RASK_API_KEY

uploaded = rask.jobs.wait(rask.uploads.upload_file("webinar.mp4").id)
media_id = uploaded.result.media_id

# the price first - free, and it changes nothing
estimate = rask.projects.estimate_project(
    media_id=media_id, target_language="de-de"
)

# the price you accepted is the ceiling
created = rask.projects.create_project(
    media_id=media_id,
    target_language="de-de",
    expected_cost_minutes=estimate.total_minutes,
)
processed = rask.jobs.wait(created.id)

# the .srt and .vtt files are among the project outputs
for o in rask.exports.list_project_outputs(processed.result.project_id).data:
    print(o.kind, o.url)
github.com/braskai/rask-sdk
async, typed models
import os, requests

API = "https://api.rask.ai/v3"
h = {"Authorization": f"Bearer {os.environ['RASK_API_KEY']}"}

job = requests.post(f"{API}/media/import", headers=h,
                    json={"url": "https://youtu.be/..."}).json()
media_id = requests.get(f"{API}/jobs/{job['id']}?wait_seconds=20",
                        headers=h).json()["result"]["media_id"]

order = {"media_id": media_id, "target_language": "de-de"}

# the price first - free, and it changes nothing
estimate = requests.post(f"{API}/projects/estimate", headers=h, json=order).json()

# the price you accepted is the ceiling
project = requests.post(f"{API}/projects", headers=h,
                        json={**order,
                              "expected_cost_minutes": estimate["total_minutes"]}).json()

# the .srt and .vtt files are among the project outputs
outputs = requests.get(f"{API}/projects/{project['project_id']}/outputs",
                       headers=h).json()
for o in outputs["data"]:
    print(o["kind"], o["url"])
requests + polling
same-language captions
// no dependencies, Node 18+ global fetch
const API = 'https://api.rask.ai/v3';
const h = {
  Authorization: `Bearer ${process.env.RASK_API_KEY}`,
  'Content-Type': 'application/json',
};

const imported = await fetch(`${API}/media/import`, {
  method: 'POST', headers: h,
  body: JSON.stringify({ url: 'https://youtu.be/...' }),
}).then(r => r.json());

const job = await fetch(`${API}/jobs/${imported.id}?wait_seconds=20`, { headers: h })
  .then(r => r.json());
const order = { media_id: job.result.media_id, target_language: 'de-de' };

// the price first - free, and it changes nothing
const estimate = await fetch(`${API}/projects/estimate`, {
  method: 'POST', headers: h, body: JSON.stringify(order),
}).then(r => r.json());

// the price you accepted is the ceiling
const project = await fetch(`${API}/projects`, {
  method: 'POST', headers: h,
  body: JSON.stringify({ ...order, expected_cost_minutes: estimate.total_minutes }),
}).then(r => r.json());

// the .srt and .vtt files are among the project outputs
const outputs = await fetch(`${API}/projects/${project.project_id}/outputs`, { headers: h })
  .then(r => r.json());
outputs.data.forEach(o => console.log(o.kind, o.url));
fetch, Node 18+
HTML5 track elements
API=https://api.rask.ai/v3
AUTH="Authorization: Bearer $RASK_API_KEY"
JSON="Content-Type: application/json"

# 1. import the video, then wait for the media id
JOB=$(curl -s -X POST $API/media/import -H "$AUTH" -H "$JSON" \
  -d '{"url": "https://youtu.be/..."}' | jq -r .id)
MEDIA=$(curl -s "$API/jobs/$JOB?wait_seconds=20" -H "$AUTH" | jq -r .result.media_id)

ORDER="{\"media_id\":\"$MEDIA\",\"target_language\":\"de-de\"}"

# 2. the price first - free, and it changes nothing
CAP=$(curl -s -X POST $API/projects/estimate -H "$AUTH" -H "$JSON" \
  -d "$ORDER" | jq -r .total_minutes)

# 3. the price you accepted is the ceiling
ID=$(curl -s -X POST $API/projects -H "$AUTH" -H "$JSON" \
  -d "$(jq -c --argjson cap "$CAP" '. + {expected_cost_minutes:$cap}' <<<"$ORDER")" \
  | jq -r .project_id)

# 4. collect the .srt and .vtt files
curl -s $API/projects/$ID/outputs -H "$AUTH" \
  | jq -r '.data[] | "\(.kind)\t\(.url)"'
download .srt and .vtt
shell script
<?php
use GuzzleHttp\Client;

$http = new Client([
    'base_uri' => 'https://api.rask.ai/v3/',
    'headers'  => ['Authorization' => 'Bearer ' . getenv('RASK_API_KEY')],
]);

$job = json_decode($http->post('media/import',
    ['json' => ['url' => 'https://youtu.be/...']])->getBody(), true);

$media = json_decode($http->get("jobs/{$job['id']}?wait_seconds=20")->getBody(), true);
$order = ['media_id' => $media['result']['media_id'], 'target_language' => 'de-de'];

// the price first - free, and it changes nothing
$estimate = json_decode($http->post('projects/estimate',
    ['json' => $order])->getBody(), true);

// the price you accepted is the ceiling
$project = json_decode($http->post('projects', ['json' => $order + [
    'expected_cost_minutes' => $estimate['total_minutes'],
]])->getBody(), true);

// the .srt and .vtt files are among the project outputs
$outputs = json_decode(
    $http->get("projects/{$project['project_id']}/outputs")->getBody(), true);
Guzzle 7
plain HTTP
Python is the official SDK. The Node, PHP and cURL tabs are plain HTTP examples against the same endpoints.
Progress

How a subtitle project reports progress

Every project moves through documented statuses, so users who upload video in your app can follow the progress of each subtitle language. You only need to act on three groups.

Success, stop here

succeeded
The subtitle files are ready. Fetch the project once more to get fresh download links.

In progress, keep polling

queued
uploading
transcribing
separating_audio
detecting_speakers
translating
voicing
merging
The job stays running while these move, and a progress bar can follow stage and progress. The stage list is open, so tolerate values you do not know.

Failure, stop and report

failed
media_processing_failed
transcription_failed
translation_failed
audio_separation_failed
speaker_detection_failed
no_audio_track
no_speech_detected
source_unavailable
no_audio_track, no_speech_detected and source_unavailable are specific enough to show directly to your own user.
Observed run, 3:47 source video, en → es-mx
GET /v3/projects/{project_id}/subtitles
   0s  queued
   3s  running    transcribing
  48s  running    translating
  70s  succeeded  the .srt and .vtt files are in the project outputs

Or skip polling entirely

Wait on a job and the request returns the moment the work is done, so your queue reacts to each change without a polling loop.
Read the docs
preserveAspectRatio="xMidYMid meet" aria-hidden="true" role="img">
Output

Subtitle files first, everything else alongside

Every finished project exposes both subtitle formats, the transcript segments behind them and the dubbed media. Download links are presigned and valid for one hour, so copy the files to your own storage.
Field
Format
What it is
target_subtitles
.srt
Subtitles in the target language, for editing software and most video platforms
target_subtitles_speakers
.vtt
The same subtitles with [SPEAKER_NN] labels, for review and QA
/transcription
JSON
Source text, translation, speaker label and timestamps for every segment
dubbed_video
MP4
The dubbed video, if you also publish a voiced version
dubbed_audio
WAV
Translated speech mixed with the original music and sound effects
source
MP4
Your source file as stored, for reference
Control

Fix a subtitle line, regenerate only that part

Subtitles come from transcript segments. Edit the text or the timing of one line, regenerate, and the subtitle files and the dubbed version update together. Billing covers the changed segments, with a one-minute minimum per run.

Segment-level editing

Segment-level editing
Every project exposes its transcript as addressable segments, so a wrong word or a late subtitle is one patch request.
Fetch the transcript and its segments
Patch the source text and we re-translate it
Patch the translated text directly to keep your own wording
Adjust timestamps, add segments, delete segments
Reassign the voice attached to any speaker

Glossaries for terminology

Glossaries for terminology
Attach a glossary and brand names and technical terms read the same in the subtitles of every language, or stay in the original language on purpose.

A glossary covers one language pair and applies across all regional variants of that target language, so one Spanish glossary serves es-mx and es-es alike. The project records glossary.version, so later edits never silently change finished work.
Input

Supported file formats

Upload a supported video or audio recording, or use a supported media URL. Create a project for each target language and download its SRT and WebVTT files.

Video

7 formats
.mp4
.mov
.mkv
.avi
.webm
.m4v
.3gp

Audio

4 formats
.mp3
.wav
.flac
.m4a

Metadata before you spend

The media endpoint returns duration, file size, video codec, frame rate, resolution, audio codec, sample rate and channel layout. Validate a file and estimate cost in advance, because projects are billed by the minute of video.
Security and compliance

Security and compliance for your video content

Brask Inc holds SOC 2 Type II and operates under GDPR, and publishes live control status in its Trust Center for your security review.

Certifications

SOC 2 Type II
GDPR
CAI and C2PA member

Encryption

TLS 1.2 in transit
AES-256 at rest
SSE-S3 managed keys
Key rotation at least every 12 months

Your content

Closed AI environment
Never used to train general models
Full export, no lock-in

Access

SSO and SAML
Role-based access control
API key, Bearer header

Enterprise

Data residency options
Custom SLAs
Dedicated account manager

Voice rights

Synthetic voices with usage rights
Consent-based voice cloning
AI safety controls, human in the loop
Comparison

Rask API vs a subtitle pipeline you build yourself

Subtitles in another language need transcription, translation, timing and file export. Here is the same result, assembled two ways.
What you need
Rask API
Assembled from parts
Transcription with timestamps
Included
A speech to text API
Subtitles in another language
135+ language and regional options
A translation API plus re-timing
SRT and WebVTT export
Both formats in every project
Your own file writer
Consistent terminology
Glossaries
Custom post-processing
Correcting one line
One patch request, then regenerate
Edit every file by hand
A dubbed version of the same video
Included in the same project
A TTS vendor plus your own mixing
Spend control
A monthly limit on each API key
Whatever your providers enforce
Subtitles burned into the video
In the Rask web app, not yet in the API
Your own video rendering
Font, size and layout
Set in your video player
Set in your video player
FAQ

Subtitle API: common questions

Can't find what you're looking for? Contact sales.

Does Rask have a subtitle API?

Which subtitle formats does the API return?

Can I get subtitles in the original language?

Which languages are supported?

Can the API burn subtitles into the video?

Can I change the font, size or layout of the subtitles?

Do subtitles describe music and sound effects?

Are speakers identified?

How do I correct a subtitle line?

How long are the download links valid?

Can I bring my own subtitles?

How is the subtitle API billed?

How do I get API access and an API key?

Start dubbing in one afternoon

Make your first request today, and talk to us when you need volume terms or a language nobody else has.