NewAPI v3 · November 2026 Release

Voice cloning API for translated video

Keep every speaker's own voice when your videos speak other languages. The API clones each voice from the source video automatically, or uses a custom voice clone you created once, and returns the dubbed video with the cloned voices, voice tracks and subtitles.
Instant voice clone
Custom voice clones
REST + 5 SDKs
clone, assign, re-dub
API key
# 1. import the video - YouTube, Drive, Vimeo or a direct URL
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": "es-mx"}'

# 3. dub with the speakers' own voices - 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
  }'
GET /v3/jobs/{job_id}
polling, 10s
# 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 voice cloning API does

Clone each speaker from the source video, or use a custom voice clone you created once, in every translated version and in multiple languages. Choose AI voice presets for languages without voice cloning. Add optional lip-sync, billed separately.

Instant Voice Clone

Every speaker gets a clone of their own voice from the source video, with no audio samples to record. It is assigned by default in supported target languages.

Custom voice clones

Create a reusable voice in the Rask app from clean audio samples, or save a speaker’s voice from an existing project to your Voice Clone Library. With the speaker’s consent, reuse that voice across API projects in supported target languages.

One voice per speaker

Speakers are separated automatically and each one keeps their own cloned voice, so interviews, panels and podcasts stay easy to follow.

Lip-sync

Match mouth movement to the cloned voice as an optional task on any finished project, billed separately. Face detection runs first, so you apply it only where it will work.

Background audio preserved

Music, room tone and effects are separated from speech and mixed back under the cloned voice, so the result keeps the sound of the original production.

AI voice presets

For languages without voice cloning, or when a stock voice fits better, choose an AI voice preset with a set gender for any speaker.

Voice identity across languages

The clone speaks Spanish, French or Japanese with the voice of the original speaker, so the presenter still sounds like the presenter to global audiences.

Swap a voice, re-dub one speaker

Assign a different voice to a speaker and regenerate. Only the segments that changed are billed, so nobody needs to re-record anything.

Scale without limits

Every paid operation is priced before it runs, and the price you accept is the ceiling. Dub your full catalogue with cloned voices in parallel, with a monthly spending limit on each key.
See it in action

Hear one speaker in five languages

The original voices in English, then the cloned voices in French, German, Portuguese and Spanish. Each speaker keeps their own voice, and the background audio stays intact.
EN flag
En
FR flag
Fr
DE flag
De
PT flag
Pt
ES flag
Es
Workflow

Three steps from source video to cloned voices

Creating the project starts the dub with Instant Voice Clones. Use the /projects/{id}/dub endpoint after you change voices or edit the script.
1

Upload your video

Send a file as multipart form data, or post a link from YouTube, Google Drive, S3, Vimeo or any direct URL. The speech in this video is the voice sample for each Instant Voice Clone.

POST /v3/media/import
2

Create the project

Pass the media_id and a target language. Each detected speaker receives an Instant Voice Clone in supported languages, and the dub starts immediately.

POST /v3/projects
3

Assign voices and re-dub

List voices for the project, assign a custom clone or a preset to any speaker, then call /generate and download the files when the dub is complete.

PUT /v3/projects/{project_id}/speakers/{speaker_id}/voice
Processing time varies by project. When you change a speaker's voice, only that speaker's segments are re-dubbed and billed.
Built around you

Need a voice outside the catalogue? Talk to our team

Voice cloning for a language that is not supported yet, a larger custom voice library, your own delivery method: when a voice project needs something outside the public catalogue, our team reviews your requirements and the available options.

Languages and voices

Need a language or voice 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 voice cloning API

Platforms with video inside

LMS and customer-education platforms, creator and video platforms and their mobile apps, webinar and virtual event tools, video hosting and workflow SaaS, digital adoption platforms, live shopping. Let creators and instructors keep their own voice across supported voice-cloning languages. Use AI voice presets for other target languages, and make multilingual dubbing a feature of your platform.

Localization and production agencies

Deliver custom voiceovers in the original presenter's voice for every client video. Keep a custom voice clone for each recurring presenter, with consent on file, and reuse it in every project through the API without asking anyone to re-record.

In-house continuous video production

International retail and e-commerce, global franchises, media publishers, corporate universities. Trainers, executives and product experts record once, then use their cloned voice for supported target languages and AI voice presets for other market versions of training videos, product updates and internal messages.
Customer stories

Real teams, measurable results

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

Voice cloning API code examples

One complete example in each language: authenticate, upload, dub with Instant Voice Clones, assign a custom clone to a speaker, re-dub and download.
# pip install rask-sdk
from rask_sdk import Rask

rask = Rask()                                   # reads RASK_API_KEY

uploaded = rask.jobs.wait(rask.uploads.upload_file("keynote.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="es-mx"
)

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

outputs = rask.exports.list_project_outputs(processed.result.project_id).data
print(next(o.url for o in outputs if o.kind == "dubbed_video"))
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": "es-mx"}

# 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()

outputs = requests.get(f"{API}/projects/{project['project_id']}/outputs",
                       headers=h).json()
print(next(o["url"] for o in outputs["data"] if o["kind"] == "dubbed_video"))
requests + polling
no SDK required
// 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: 'es-mx' };

// 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());

const outputs = await fetch(`${API}/projects/${project.project_id}/outputs`, { headers: h })
  .then(r => r.json());
console.log(outputs.data.find(o => o.kind === 'dubbed_video')?.url);
fetch, Node 18+
plain HTTP
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\":\"es-mx\"}"

# 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 dubbed video, in the speakers' own voices
curl -s $API/projects/$ID/outputs -H "$AUTH" \
  | jq -r '.data[] | select(.kind == "dubbed_video") | .url'
POST /v3/voice-clones
API key, Bearer header
<?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' => 'es-mx'];

// 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);

$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 voice cloning project reports progress

A project moves through a documented state machine on the first dub and again after every re-dub, so your users see real progress each time you change a voice. You only need to act on three groups.

Success, stop here

succeeded
Dubbing is complete. Fetch the project once more to retrieve the download links available for your project.

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}/outputs
   0s  queued
   3s  running    transcribing
  48s  running    translating
  72s  running    voicing
 128s  running    merging
 150s  succeeded

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

Cloned voice, dubbed video and subtitles

Download the dubbed video with the cloned voices and translated subtitles in SRT and VTT. On eligible plans, you can also download the cloned voice track on its own as WAV, or mixed with the original background audio.
Field
Format
What it is
dubbed_video
MP4
The dubbed video, ready to publish
voice_track
WAV
Translated speech in the cloned voice only, for your own mix
dubbed_audio
WAV
Translated speech mixed with the original background audio
target_subtitles
.srt .vtt
Subtitles in the target language
onscreen_video
MP4
The video with translated on-screen text
source
MP4
Your source file as stored, for reference
Control

Change a voice, then re-dub only that speaker

Instant clones suit most speakers. When one voice needs a different choice, assign a custom clone or a preset to that speaker and regenerate. Only the changed segments are billed.

Segment-level editing

Segment-level editing
Every project exposes its transcript as segments with speaker labels, so moving a line to another speaker or changing a voice takes one 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 so brand names, product names and technical terms translate the same way in every language, whichever voice speaks them.

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 any of seven video and four audio formats, or send a URL. The speech in the file is the reference for Instant Voice Clone, so clear audio gives the best results.

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 dubbing with cloned voices is billed by the minute.
Security and compliance

Voice data your legal team can approve

Brask Inc holds SOC 2 Type II and operates under GDPR, and publishes live control status in its Trust Center. Custom voice clones are created with the speaker's consent, and for data security your audio is never used to train general models.

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 voice pipeline you build yourself

A text to speech cloning API voices the text you send. Cloned voices in translated video also need transcription, translation, speaker separation, timing and mixing. Here is the same result, assembled two ways.
What you need
Rask API
Assembled from parts
Clone each speaker from the source video
Instant Voice Clone, by default
Collect and upload samples for every speaker
Reusable custom voices
Custom voice clones by voice_id
A voice library you build and maintain
Transcription, translation, synthesis, mixing
One API
Three to four vendors and the code between them
Speaker detection and one voice per speaker
Included
A diarization vendor plus your own voice-assignment logic
Background music and effects preserved
Included
A source-separation step you build and tune
Languages without voice cloning
AI voice presets
Another text to speech vendor
Lip-sync
Optional, billed separately
A separate vendor
Changing one speaker's voice
Re-dub that speaker, billed for changed segments
Re-run the pipeline for the whole file
Spend control
A monthly limit on each API key
Whatever your strictest vendor enforces
A voice or language outside the catalogue
Discussed with our team
Depends on each vendor
FAQ

Voice cloning API: common questions

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

Is there an API for voice cloning?

How does voice cloning work with the API?

What is the difference between Instant Voice Clone and Custom Voice Clone?

Can I create a Custom Voice Clone through the API?

What audio do I need for a Custom Voice Clone?

Which languages support voice cloning?

Can I use the voice cloning API as text to speech?

How do I change a speaker's voice after the dub?

How many custom voices can I save?

Is consent required to clone a voice?

Does the cloned voice keep the speaker's emotion and accent?

Can I use cloned voices for commercial use?

How much does voice cloning cost?

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.