# 1. import your own script as the project transcript
curl -X POST https://api.rask.ai/v3/projects/$ID/transcript/import \
-H "Authorization: Bearer $RASK_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"target": {
"format": "srt",
"content": "1\n00:00:00,000 --> 00:00:04,200\nWelcome to the Q3 release.\n"
}
}'
# 2. the price first - free, and it changes nothing
curl -X POST https://api.rask.ai/v3/projects/$ID/dub/estimate \
-H "Authorization: Bearer $RASK_API_KEY"
# 3. voice it - the price you accepted is the ceiling
curl -X POST https://api.rask.ai/v3/projects/$ID/dub \
-H "Authorization: Bearer $RASK_API_KEY" \
-H "Content-Type: application/json" \
-d '{"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



Upload the video or audio recording your voiceover belongs to, using a file or a supported media URL. Its timeline provides the timing for your script.
Create a transcript from text segments with timestamps and speakers, or from an SRT file, then create the project with a target language and import the script into it.
List the voices, assign a preset or a clone to each speaker, regenerate if needed, then download the voiceover, the video and the subtitle files.
# pip install rask-sdk
from rask_sdk import Rask
rask = Rask() # reads RASK_API_KEY
uploaded = rask.jobs.wait(rask.uploads.upload_file("explainer.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="en-us"
)
# the price you accepted is the ceiling
created = rask.projects.create_project(
media_id=media_id,
target_language="en-us",
expected_cost_minutes=estimate.total_minutes,
)
processed = rask.jobs.wait(created.id)
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']}"}
# your own script becomes the project transcript
requests.post(f"{API}/projects/{project_id}/transcript/import", headers=h, json={
"target": {
"format": "srt",
"content": open("script.srt").read(),
},
})
# the price first - free, and it changes nothing
estimate = requests.post(f"{API}/projects/{project_id}/dub/estimate", headers=h).json()
# the price you accepted is the ceiling
job = requests.post(f"{API}/projects/{project_id}/dub", headers=h,
json={"expected_cost_minutes": estimate["total_minutes"]}).json()
requests.get(f"{API}/jobs/{job['id']}?wait_seconds=20", headers=h).json()// no dependencies, Node 18+ global fetch
import { readFileSync } from 'node:fs';
const API = 'https://api.rask.ai/v3';
const h = {
Authorization: `Bearer ${process.env.RASK_API_KEY}`,
'Content-Type': 'application/json',
};
// your own script becomes the project transcript
await fetch(`${API}/projects/${projectId}/transcript/import`, {
method: 'POST', headers: h,
body: JSON.stringify({
target: { format: 'srt', content: readFileSync('script.srt', 'utf8') },
}),
});
// the price first - free, and it changes nothing
const estimate = await fetch(`${API}/projects/${projectId}/dub/estimate`, {
method: 'POST', headers: h,
}).then(r => r.json());
// the price you accepted is the ceiling
const job = await fetch(`${API}/projects/${projectId}/dub`, {
method: 'POST', headers: h,
body: JSON.stringify({ expected_cost_minutes: estimate.total_minutes }),
}).then(r => r.json());
await fetch(`${API}/jobs/${job.id}?wait_seconds=20`, { headers: h }).then(r => r.json());API=https://api.rask.ai/v3
AUTH="Authorization: Bearer $RASK_API_KEY"
JSON="Content-Type: application/json"
# 1. import your SRT as the project transcript
jq -n --rawfile srt script.srt '{target: {format: "srt", content: $srt}}' \
| curl -s -X POST $API/projects/$ID/transcript/import -H "$AUTH" -H "$JSON" -d @-
# 2. the price first - free, and it changes nothing
CAP=$(curl -s -X POST $API/projects/$ID/dub/estimate -H "$AUTH" | jq -r .total_minutes)
# 3. voice it - the price you accepted is the ceiling
JOB=$(curl -s -X POST $API/projects/$ID/dub -H "$AUTH" -H "$JSON" \
-d "{\"expected_cost_minutes\":$CAP}" | jq -r .id)
# 4. wait on the job, then collect the voiceover
curl -s "$API/jobs/$JOB?wait_seconds=20" -H "$AUTH" | jq .status
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')],
]);
// your own script becomes the project transcript
$http->post("projects/{$projectId}/transcript/import", ['json' => [
'target' => ['format' => 'srt', 'content' => file_get_contents('script.srt')],
]]);
// the price first - free, and it changes nothing
$estimate = json_decode(
$http->post("projects/{$projectId}/dub/estimate")->getBody(), true);
// the price you accepted is the ceiling
$job = json_decode($http->post("projects/{$projectId}/dub", ['json' => [
'expected_cost_minutes' => $estimate['total_minutes'],
]])->getBody(), true);
$http->get("jobs/{$job['id']}?wait_seconds=20"); 0s queued
3s running preparing the transcript
40s running voicing
110s running merging
135s succeeded

es-mx and es-es alike. The project records glossary.version, so later edits never silently change finished work.Yes, for video voiceover. Send your script as timed text segments or an SRT file together with a video, and the API generates natural sounding speech timed to the picture, in AI voices or voice clones, with subtitles and audio tracks in the same project.
Rask generates speech for complete projects and delivers files, which suits published video, training and marketing content. For voice agents, contact centers and other low latency applications that need audio within seconds, a streaming text to speech API is the better fit.
Speech is delivered when generation completes for the project: the voiceover as WAV on eligible plans, the mixed audio and the video. The API does not stream audio chunks or audio bytes while it generates.
Import your own script as the project transcript with POST /v3/projects/{project_id}/transcript/import, as source or target text. Every version is kept, so you can list them, compare them and restore one. Then re-dub the project and the voiceover follows your script.
Every target locale has AI voice presets with a set gender in the voice library. Get the options for a project with GET /v3/projects/{project_id}/voices and assign one per speaker with PUT /v3/projects/{project_id}/speakers/{speaker_id}/voice. In supported voice cloning languages, you can also use voice clones.
Yes. Create a Custom Voice Clone once in the Rask app with the speaker's consent, then assign its voice ID to any speaker through the API in supported voice cloning languages. It works well as a consistent brand voice.
Choose from 135+ language and regional options. Write the script in one language and Rask translates it, or send the script already in the target language. AI voices are available for every target locale.
The API takes plain text per segment. To guide pronunciation, adjust the spelling in the script text. Glossaries control how terms are translated, not how they are pronounced.
The delivery follows the selected voice and your text, including punctuation. For emotional range that matches a real performance, a voice clone of the original speaker keeps more of their voice identity.
You can use a video or an audio recording. Upload the source media and provide a timed script to generate the voiceover along its timeline. An uploaded media file is required.
No. Usage is billed per minute of video, rounded up to the next whole minute, 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 is billed on changed segments, with a one-minute minimum per charged run.
Start with a free trial in the Rask app, no card required, to hear the voices on your own video. API access is available on Creator Pro, Business and Enterprise plans, with capabilities determined by your plan.
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.