# 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동영상 파일을 전송하거나 YouTube, Google Drive, S3, Vimeo 링크 또는 미디어에 직접 연결되는 URL을 제출하세요. 한 번 업로드한 동영상으로 모든 언어의 자막을 만들 수 있습니다.
프로젝트마다 media_id와 대상 언어 하나를 전달하세요. 언어가 다른 프로젝트는 병렬로 실행됩니다.
작업이 성공적으로 완료되면 GET /v3/projects/{project_id}/subtitles 요청으로 .srt 또는 .vtt 자막을 생성해 자체 저장소에 저장하세요.
# 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 및 es-es 에 똑같이 적용할 수 있습니다. 프로젝트에 glossary.version항목이 기록되므로 나중에 편집해도 완료된 작업이 모르는 사이에 바뀌지 않습니다.네. 모든 Rask 프로젝트는 대상 언어의 자막 파일을 SRT 및 WebVTT 형식으로 제공합니다. 동영상을 업로드하고 자막 언어별로 프로젝트를 만든 뒤, 프로젝트가 완료되면 파일을 다운로드하세요.
모든 프로젝트에서 대상 언어의 자막을 SRT 파일과 WebVTT(VTT) 파일 두 가지 형식으로 제공합니다. 플랫폼에 다른 자막 형식이 필요한 경우 타임스탬프가 포함된 JSON 형식의 스크립트 구간도 사용할 수 있습니다.
자막 파일은 대상 언어로 제공됩니다. 원본 언어 자막이 필요하면 스크립트 구간을 불러오세요. 각 구간에는 원문과 시작 및 종료 시간이 있어 코드 몇 줄로 SRT 또는 VTT 파일로 변환할 수 있습니다.
75개 원본 언어에서 es-mx, pt-br, fr-ca 등 지역별 언어를 포함해 135개가 넘는 언어 옵션으로 자막을 만들 수 있습니다. 프로젝트마다 대상 언어 하나를 지정하므로 한 번 업로드한 파일로 언어별 프로젝트를 만드세요.
아직 지원하지 않습니다. API는 플레이어나 동영상 편집 소프트웨어에서 사용할 자막 파일을 제공합니다. 자막을 입힌 동영상이 필요하면 Rask 웹 앱을 사용하세요.
자막 파일에는 텍스트와 표시 시간이 들어 있습니다. 글꼴, 크기, 색상, 위치는 동영상 플레이어, 앱 또는 편집 소프트웨어에서 설정하므로 자막 파일 하나를 어디서나 사용할 수 있습니다.
자막 파일에는 실제로 말한 대사가 들어 있습니다. 농인 및 난청 시청자를 위한 음악과 효과음 설명은 자동으로 생성되지 않으므로 자막 편집 단계에서 직접 추가하세요.
스크립트의 각 구간에는 SPEAKER_XX 형식의 화자 레이블이 있어 인터뷰나 대화 자막을 만들 때 화자 이름을 넣을 수 있습니다.
API로 해당 구간의 텍스트나 타이밍을 수정한 뒤 프로젝트를 다시 생성하세요. 자막 파일과 더빙 버전이 함께 업데이트됩니다. 다시 생성할 때는 수정한 구간에 대해서만 요금이 부과되며, 실행당 최소 과금 시간은 일 분입니다.
다운로드 링크는 사전 서명된 링크로, 한 시간 동안 유효합니다. 파일을 자체 저장소에 저장하거나 프로젝트를 다시 조회해 새 링크를 받으세요.
네. 스크립트 가져오기를 지원하는 요금제에서는 프로젝트를 만들 때 원본 언어 자막과 승인된 번역 언어의 SRT 파일 중 하나 또는 둘 다 업로드할 수 있습니다. 기존 자막을 번역 원문으로 사용하거나 승인된 번역을 자막과 더빙에 그대로 적용하세요.
프로젝트별로 동영상 길이를 분 단위로 올림해 계산하며, Rask 앱과 같은 잔여 분에서 차감합니다. 요금에는 음성 텍스트 변환, 번역, 자막, 더빙 버전이 포함됩니다. 추가 사용이 가능한 일반 요금제에서는 분당 $3가 부과됩니다. Enterprise 요금은 계약 조건에 따라 결정됩니다.
Creator Pro, Business, Enterprise 요금제에서 API를 이용할 수 있으며, 지원 기능은 요금제에 따라 달라집니다. 앱에서 API 키를 생성하면 바로 API를 호출할 수 있습니다. Enterprise 계약 조건, 대량 이용 요금, 맞춤 언어 지원은 저희 팀에 문의하세요.