# 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. create the dubbing 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": "es-mx",
"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파일을 멀티파트 폼 데이터(multipart form data)로 전송하거나 링크를 게시하세요. 지원되는 링크 소스는 YouTube, Google Drive, S3, Vimeo 및 모든 직접 다운로드 URL입니다. 비용이 청구되기 전에 미디어 ID와 전체 기술 메타데이터를 반환합니다.
미디어 ID를 media_id로 전달하고 목표 언어를 설정하세요. 선택사항으로 자체 대본이나 용어집을 첨부할 수 있습니다. 더빙이 즉시 시작됩니다.
status가 succeeded에 도달할 때까지 확인한 다음, 더빙된 동영상, 오디오 트랙 및 자막 파일을 다운로드하세요.
# pip install rask-sdk
from rask_sdk import Rask
rask = Rask() # reads RASK_API_KEY
uploaded = rask.jobs.wait(rask.uploads.upload_file("q3-launch.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"))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"))// 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);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
curl -s $API/projects/$ID/outputs -H "$AUTH" \
| jq -r '.data[] | select(.kind == "dubbed_video") | .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' => '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); 0s queued
3s running transcribing
48s running translating
72s running voicing
128s running merging
150s succeeded

es-mx 및 es-es 지원합니다. 프로젝트는 용어집 버전을 기록하므로, 나중에 수정해도 완료된 작업이 예기치 않게 변경되지 않습니다.API 접근 권한은 Creator Pro, Business, Enterprise 요금제에서 이용할 수 있으며, 기능은 요금제에 따라 다릅니다. 앱에서 API 키를 생성하고 즉시 사용을 시작할 수 있습니다. Enterprise 계약 조건, 대량 할인 및 맞춤형 언어 지원은 저희 팀으로 문의해 주세요.
Authorization: Bearer 헤더에 하나의 API 키만 입력하면 됩니다. 토큰 교환이나 갱신 절차가 없습니다. 각 연동에 필요한 권한을 가진 전용 키를 부여하고 월별 사용 한도를 설정하세요.
대기 기능이 내장된 비동기 방식입니다. 프로젝트를 생성하면 작업이 즉시 반환됩니다. GET /v3/jobs/{job_id}?wait_seconds=20을 호출하면 더빙이 완료되는 순간 요청이 반환되므로, 대기하고 반복 조회하는 루프를 만들 필요가 없습니다.
모든 유료 작업은 청구와 동일한 가격 함수를 실행하는 무료 견적 기능을 제공합니다. 해당 숫자를 expected_cost_minutes로 전송하면 상한선으로 설정됩니다. 이 가격과 같거나 그 이하일 경우 그대로 청구되며, 더 높은 경우 요청이 실패하고 비용이 청구되지 않습니다. 각 API 키마다 월별 사용 한도도 설정할 수 있습니다.
스페인어, 프랑스어, 독일어, 포르투갈어, 힌디어, 일본어, 한국어를 포함한 135개 이상의 목표 언어를 지원하며, 필요한 경우 지역별 변형도 지원하므로 target_language에 'es' 대신 'es-mx'를 사용할 수 있습니다. 원본 언어는 자동으로 감지되거나 직접 설정할 수 있습니다. 전체 원본 및 목표 언어 코드는 API 문서에서 확인할 수 있습니다. 지원 목록에 없는 언어의 경우, 가능 여부와 이용 가능한 옵션에 대해 저희 팀에 문의해 주세요.
즉시 목소리 복제 기능은 지원되는 언어에 한해 원본 동영상의 목소리를 그대로 사용합니다. 나중에 계속 사용할 수 있는 맞춤 목소리 복제 기능은 발표자의 동의를 얻어 Rask AI 앱에서 만든 후 API를 통해 적용할 수 있습니다. 결과는 원본 오디오, 선택한 언어 및 목소리에 따라 달라질 수 있습니다.
동영상 길이, 발표자 수, 목표 언어 및 대기열 상태에 따라 다릅니다. 텍스트 변환부터 영상 병합까지 모든 단계의 진행 상황을 프로젝트마다 확인할 수 있어 사용자에게 실시간 진행 상태를 보여줄 수 있습니다.
7가지 동영상 형식(MP4, MOV, MKV, AVI, WebM, M4V, 3GP)과 4가지 오디오 형식(MP3, WAV, FLAC, M4A)을 지원합니다. 파일을 직접 업로드하는 대신 유튜브, 구글 드라이브, S3, 비메오 또는 직접 링크를 통해 영상을 불러올 수도 있습니다.
원본 오디오에서 발표자를 자동으로 감지하여 분리한 후, 목표 언어에 맞는 목소리를 각각 지정합니다. 발표자별로 지정된 목소리를 변경할 수도 있고, 발표자 수를 이미 알고 있다면 프로젝트를 만들 때 미리 입력할 수도 있습니다.
네, 가능합니다. .srt 파일을 업로드해 텍스트를 만들고 프로젝트 생성 시 해당 ID를 입력하면 됩니다. 먼저 API로 텍스트를 자동 생성한 뒤 문장별로 직접 수정할 수도 있습니다.
작업이 완료된 모든 프로젝트는 더빙 시간에 맞춰진 .srt 및 .vtt 형식의 자막 파일을 동영상 및 오디오 트랙과 함께 제공합니다.
TypeScript, Python, Go, Java, PHP 등 5가지 언어를 지원하며, 동일한 OpenAPI 사양에서 생성되어 함께 배포됩니다. 각 SDK는 견적 및 작업 대기 기능을 포함하여 총 82개의 전체 작업 기능을 제공합니다. 코딩 없이 파이프라인을 구축할 수 있는 n8n 노드도 제공됩니다.
변경된 부분에 대해서만 비용이 청구됩니다. 수정되거나 추가된 구간의 길이를 합산하여 1분 단위로 반올림되므로, 몇 줄만 수정하는 경우 약 1분의 비용만 청구됩니다.