# 1. import the video once
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 of each market - free, and it changes nothing
for LANG in es-mx de-de ja-jp pt-br; do
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": "'$LANG'"}'
done
# 3. one project per market - 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": "es-mx",
"expected_cost_minutes": 12
}'# Wait on each 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



Create a glossary for each language pair, save custom voices for recurring presenters, and choose the regional locale for each market you publish in.
Upload the source video once, then create a project for each target locale with your glossary, or with an approved translation imported from SRT.
Read the translated text side by side, edit what reviewers flag, re-dub the changed segments and download the localized video and subtitles.
# pip install rask-sdk
from rask_sdk import Rask
rask = Rask() # reads RASK_API_KEY
uploaded = rask.jobs.wait(rask.uploads.upload_file("launch.mp4").id)
media_id = uploaded.result.media_id
for language in ("es-mx", "de-de", "ja-jp", "pt-br"):
# the price first - free, and it changes nothing
estimate = rask.projects.estimate_project(
media_id=media_id, target_language=language
)
# the price you accepted is the ceiling
created = rask.projects.create_project(
media_id=media_id,
target_language=language,
expected_cost_minutes=estimate.total_minutes,
)
processed = rask.jobs.wait(created.id)
outputs = rask.exports.list_project_outputs(processed.result.project_id).data
print(language, next(o.url for o in outputs if o.kind == "dubbed_video"))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"]
for language in ("es-mx", "de-de", "ja-jp", "pt-br"):
order = {"media_id": media_id, "target_language": language}
# 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()
print(language, project["project_id"])// 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 mediaId = job.result.media_id;
for (const language of ['es-mx', 'de-de', 'ja-jp', 'pt-br']) {
const order = { media_id: mediaId, target_language: language };
// 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());
console.log(language, project.project_id);
}API=https://api.rask.ai/v3
AUTH="Authorization: Bearer $RASK_API_KEY"
JSON="Content-Type: application/json"
# 1. import the video once, 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)
# 2. one project per market, each priced before it runs
for LANG in es-mx de-de ja-jp pt-br; do
ORDER="{\"media_id\":\"$MEDIA\",\"target_language\":\"$LANG\"}"
CAP=$(curl -s -X POST $API/projects/estimate -H "$AUTH" -H "$JSON" \
-d "$ORDER" | jq -r .total_minutes)
curl -s -X POST $API/projects -H "$AUTH" -H "$JSON" \
-d "$(jq -c --argjson cap "$CAP" '. + {expected_cost_minutes:$cap}' <<<"$ORDER")" \
| jq -r '"'$LANG' \(.project_id)"'
done<?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);
$mediaId = $media['result']['media_id'];
foreach (['es-mx', 'de-de', 'ja-jp', 'pt-br'] as $language) {
$order = ['media_id' => $mediaId, 'target_language' => $language];
// 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);
} 0s queued
3s running transcribing
48s running translating
72s running voicing
128s running merging
150s succeeded

es-mx and es-es alike. The project records glossary.version, so later edits never silently change finished work.A video localization API turns one source video into different versions for other markets through automation in your own code: translated and voiced speech, captions, consistent terminology and optional lip-sync. With Rask, each market version is a project you create, review and download through one REST API.
Translation changes the words. Localization prepares the same video for a specific market: the regional language variant, brand terms that stay consistent, the speakers' voices, captions and a review step before publishing. The Rask API supports all of these in one workflow.
Yes. Create a project for each target locale, such as es-mx for Mexico and es-es for Spain, and reuse one Spanish glossary for consistent brand terms. Review the wording for each market. When a regional accent matters, choose an available AI voice preset for that locale; voice cloning uses the base language model and does not guarantee a distinct regional accent.
Create a glossary for each language pair and attach it when you create the project. Each project records the glossary version it used, so editing a glossary later never changes finished work. A glossary cannot be added to a project after it is created.
Yes, on plans with SRT upload. Import your approved target-language SRT when creating the project; a separate source-language SRT is optional. You can also provide both files when you have them. Rask uses your approved translation for dubbing.
Cultural relevance needs human judgment. The API gives reviewers every segment to adapt references, idioms and examples for the market before publishing, and Rask can add human QA to the workflow when your team cannot review every video.
Yes. After the dub, POST /v3/projects/{project_id}/onscreen translates the titles, captions and slide text that are part of the picture and renders them back into the video, returned as onscreen_video. A localization run can order it together with the dub and lip-sync for one price. See the on-screen text translation API page for the detail.
Localize into multiple languages from 135+ language and regional options, including Mexican and European Spanish, Brazilian and European Portuguese, and Canadian French. Each project takes one target locale. The full list is in the API documentation, and our team can discuss options outside it.
Yes, in supported voice cloning languages. Use Instant Voice Clone to preserve the speaker’s identity, or a saved Custom Voice Clone for a recurring presenter. Cloning uses the base language model, so selecting a regional locale does not guarantee that region’s accent. Choose an available AI voice preset when the regional accent is the priority.
Lip-sync is an optional step for footage where a real person speaks on camera. Run it on the localized version after review. Each full-video lip-sync generation is billed separately from dubbing, including generations after later edits.
API usage is billed per minute of video for each market version, from the same minutes pool as the Rask app. Additional minutes cost $3/min on eligible standard plans. Enterprise pricing is tailored to your agreement. Re-dubbing after review is billed on the combined duration of changed segments, with a one-minute minimum per run, and lip-sync is billed separately. Try localization in the Rask app with a free trial, no card required. To evaluate the API, book a demo with our team.
Yes. For recurring volume, our team can help map your current process, define review and approval stages, configure terminology and voices, connect Rask to your CMS or LMS, and add human QA where it is needed.
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.