Translate speech, generate subtitles, and localize video content for global audiences. Context-aware AI translation that preserves meaning and tone.
{
"video_url": "https://example.com/video.mp4",
"source_language": "en",
"target_language": "ja",
"output_format": "subtitles",
"include_transcript": true
}
// Response
{
"success": true,
"data": {
"task_id": "trans_abc123",
"status": "processing",
"estimated_time": 120
}
}
Automated translation pipeline from audio extraction to final output.
Provide a video URL with source and target languages.
AI transcribes all speech with timestamps and speaker detection.
Context-aware translation preserves meaning, idioms, and cultural nuance.
Download translated subtitles, transcripts, or fully dubbed video.
import requests, time
API_KEY = "ak_your_key_here"
BASE = "https://mobileapi.aienvoy.dev/api/v1"
headers = {"X-API-Key": API_KEY}
# 1. Start translation
resp = requests.post(f"{BASE}/dubbing/translate",
headers=headers,
json={
"video_url": "https://example.com/video.mp4",
"source_language": "en",
"target_language": "ja",
"output_format": "subtitles",
"include_transcript": True
}
)
task_id = resp.json()["data"]["task_id"]
# 2. Poll until done
while True:
status = requests.get(
f"{BASE}/dubbing/{task_id}/status",
headers=headers
).json()
if status["data"]["status"] == "completed":
print(status["data"]["subtitles_url"])
print(status["data"]["transcript"])
break
time.sleep(10)
const API_KEY = "ak_your_key_here";
const BASE = "https://mobileapi.aienvoy.dev/api/v1";
const headers = {
"X-API-Key": API_KEY,
"Content-Type": "application/json"
};
// 1. Start translation
const res = await fetch(`${BASE}/dubbing/translate`, {
method: "POST",
headers,
body: JSON.stringify({
video_url: "https://example.com/video.mp4",
source_language: "en",
target_language: "ja",
output_format: "subtitles",
include_transcript: true
})
});
const { data } = await res.json();
// 2. Poll until done
const poll = setInterval(async () => {
const s = await fetch(
`${BASE}/dubbing/${data.task_id}/status`,
{ headers }
).then(r => r.json());
if (s.data.status === "completed") {
clearInterval(poll);
console.log(s.data.subtitles_url);
}
}, 10000);
Choose the output that fits your workflow.
SRT and VTT subtitle files with precise timestamp alignment.
SRT / VTTFull text transcript in the target language with speaker labels.
JSON / TXTCombine with the Dubbing API for a fully dubbed video output.
MP4AI understands context, idioms, and domain-specific terminology for accurate translations.
Each translated segment is attributed to the correct speaker for multi-person content.
Word-level timestamps for perfect subtitle synchronization with video.
Translate between any pair of supported languages, including right-to-left scripts.
Translate multiple videos in parallel for large-scale localization pipelines.
Chain with the Dubbing API for end-to-end video localization.
Add multilingual subtitles to grow global audience
Localize educational courses for international learners
Translate depositions, hearings, and legal proceedings
Translate medical training and patient education videos
Get your free API key and start translating video content today.