# 1. import the audio or 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://example.com/interview.mp3"}'
# 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": "en-us"}'
# 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": "en-us",
"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



Send an audio or video file as multipart form data, or post a link from YouTube, Google Drive, S3, Vimeo or any direct URL. You get a media id and the file metadata before you spend anything.
Pass the media_id and a target language. Add the source language or the number of speakers if you know them. Recognition starts immediately.
Read the transcript as soon as its segments are available, while the translated media continues processing. Download subtitle and media files when the project is complete.
# pip install rask-sdk
from rask_sdk import Rask
rask = Rask() # reads RASK_API_KEY
uploaded = rask.jobs.wait(rask.uploads.upload_file("interview.mp3").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']}"}
job = requests.post(f"{API}/media/import", headers=h,
json={"url": "https://example.com/interview.mp3"}).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": "en-us"}
# 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()
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://example.com/interview.mp3' }),
}).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: 'en-us' };
// 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());
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 file, then wait for the media id
JOB=$(curl -s -X POST $API/media/import -H "$AUTH" -H "$JSON" \
-d '{"url": "https://example.com/interview.mp3"}' | 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\":\"en-us\"}"
# 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 transcript and every other output
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://example.com/interview.mp3']])->getBody(), true);
$media = json_decode($http->get("jobs/{$job['id']}?wait_seconds=20")->getBody(), true);
$order = ['media_id' => $media['result']['media_id'], 'target_language' => 'en-us'];
// 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 speaker labels
72s succeeded the transcript is in the project outputs

es-mx and es-es alike. The project records glossary.version, so later edits never silently change finished work.Yes. Speech recognition is the first stage of every Rask project. Import audio or video, create a project, and read the transcript as segments with speaker labels and timestamps from GET /v3/projects/{project_id}/transcript. The same project translates the transcript and returns subtitles and dubbed audio.
The API accepts 75 source languages. Leave source_language empty and the language is detected automatically, or pass a code such as en or de. The transcript can be translated into 135+ language and regional options.
Yes. Upload audio files in MP3, WAV, FLAC or M4A, such as podcasts, interviews and recorded calls, and the project transcribes them the same way as video.
Yes. Different speakers are detected automatically, and each segment carries a speaker label in SPEAKER_XX format. Pass num_speakers if you know the count, and correct the speaker of any segment through the API.
No. Timestamps are segment-level: each segment has a start and an end time in HH:MM:SS,mmm format. That is the timing captions and subtitles use. If you need a timestamp for every word, choose a dedicated speech to text API.
No. Rask transcribes complete, pre-recorded audio and video. For real time captions, voice agents, conversational AI and contact centers, where text has to arrive while a person is still speaking, a streaming speech to text API is the better fit.
Accuracy depends on the audio: microphones, accents, overlapping speech and background noise all matter. Test the API on a sample of your own recordings, and correct any segment through the API before you publish or translate it.
Recognition does not take a custom vocabulary list. Correct specific words in the transcript through the segments endpoint. When the transcript is translated, a glossary keeps product names, proper nouns and domain terms consistent.
The finished project includes subtitle files in SRT and VTT in the target language. The source language transcript comes as JSON segments with start and end times, which convert to SRT in a few lines of code.
Yes. On plans with transcript import, provide an existing source transcript, an approved target-language translation, or both as SRT files or timed text segments when creating the project. Rask can translate your source script or use your approved translation for dubbing.
Projects are billed per minute of audio or video, rounded up to the next whole minute, from the same minutes pool as the Rask app. The price includes transcription, translation, voiceover and subtitles. Additional minutes cost $3/min on eligible standard plans. Enterprise pricing is tailored to your agreement. If you only need a transcript, a dedicated speech to text API costs less.
Start with a free trial in the Rask app, no card required, to test transcription and translation on your own files. 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.