# 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
}'# 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



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.
Pass the media_id and one target language per project. Projects for different languages run in parallel.
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.
# 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)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"])// 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));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)"'<?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); 0s queued
3s running transcribing
48s running translating
70s succeeded the .srt and .vtt files are in the project outputs

es-mx and es-es alike. The project records glossary.version, so later edits never silently change finished work.Yes. Every Rask project returns subtitle files in SRT and WebVTT in the target language. Upload a video, create a project for each subtitle language, and download the files when the project is complete.
Two formats for every project: an SRT file and a WebVTT (VTT) file in the target language. The transcript is also available as JSON segments with timestamps, if your platform needs another caption format.
The subtitle files are in the target language. For captions in the original language, read the transcript segments: each one has the source text with a start and an end time, which converts to an SRT or VTT file in a few lines of code.
Subtitles are available in 135+ language and regional options, such as es-mx, pt-br and fr-ca, from 75 source languages. Each project takes one target language; create a project per language from the same upload.
Not yet. The API returns subtitle files for your player or video editing software. To get a video with subtitles burned in, use the Rask web app.
The files contain text and timing. Font, size, color and position are set in your video player, app or editing software, which keeps one subtitle file usable everywhere.
The files contain the spoken dialogue. Descriptions of music and sound effects for deaf and hard of hearing viewers are not generated automatically; add them in your own caption editing step.
Each transcript segment carries a speaker label in SPEAKER_XX format, so you can add speaker names when you build captions for interviews and dialogue.
Patch the text or timing of the segment through the API and regenerate the project. The subtitle files are updated together with the dubbed version. Regeneration is billed on the changed segments, with a one-minute minimum per run.
Download links are presigned and valid for one hour. Save the files to your own storage, or fetch the project again to get new links.
Yes. On plans with transcript import, upload source-language subtitles, an approved target-language SRT, or both when creating the project. Use existing captions as the source, or keep your approved translation for the target-language subtitles and dubbing.
Projects are billed per minute of video, rounded up to the next whole minute, from the same minutes pool as the Rask app. The price includes transcription, translation, subtitles and the dubbed version. Additional minutes cost $3/min on eligible standard plans. Enterprise pricing is tailored to your agreement.
API access is available on Creator Pro, Business and Enterprise plans, with capabilities determined by your plan. You create an API key in the app and start calling immediately. Enterprise terms, volume pricing and custom language coverage go through our team.