API reference
Audio & Video Transcription API
Fast speech to text for audio and video: timestamps, speaker labels, SRT/VTT and AI summaries.
- Host
audio-video-transcription-speech-to-text.p.rapidapi.com- Base path
/v1/transcription- Auth
X-RapidAPI-Key,X-RapidAPI-Host- For agents
openapi.json·transcription.md
Overview and pricing · Tutorial: Speech to Text API · RapidAPI playground (opens in a new tab) ↗ · Apify actor (opens in a new tab) ↗
Transcription
Audio or video to a timestamped transcript, subtitles and summary.
Transcribe from URL
POST /v1/transcription/transcribe
Transcribe an audio or video file from its URL. Transcribe an audio or video file from its URL: verbatim timestamped segments in the spoken language, optional speakers, SRT/VTT and AI summary. Up to 120 minutes and 150 MB. 1 credit per started minute (2 with speakers); the summary adds 1 per started 5 minutes (2 at least).
| Parameter | In | Type | Description |
|---|---|---|---|
url required |
body | string |
Direct link to an audio or video file (MP3, M4A, WAV, OGG, FLAC, MP4, MOV, WEBM...). Up to 150 MB and 120 minutes. |
language |
body | string |
Spoken language, if you know it (e.g. 'en', 'French'). Detected automatically otherwise. |
speakers |
body | boolean |
Label who speaks (S1, S2...) on every segment. 2 credits per minute instead of 1. Default False. |
summary |
body | boolean |
Add an AI summary: key points, chapters with timestamps and action items. +1 credit per 5 minutes (2 at least). Default False. |
formats |
body | "srt" | "vtt"[] |
Subtitle files to include in the response: 'srt', 'vtt'. |
max_minutes |
body | integer |
Refuse (400 media_too_long, not billed) files longer than this. Default 120. |
curl -X POST "https://audio-video-transcription-speech-to-text.p.rapidapi.com/v1/transcription/transcribe" \
-H "X-RapidAPI-Key: YOUR_API_KEY" \
-H "X-RapidAPI-Host: audio-video-transcription-speech-to-text.p.rapidapi.com" \
-H "Content-Type: application/json" \
-d '{
"url": "https://archive.org/download/short_story_047_1102_librivox/shortstory047_beforethelaw_ava_64kb.mp3",
"speakers": true,
"summary": true,
"formats": [
"srt"
]
}'
import requests
url = "https://audio-video-transcription-speech-to-text.p.rapidapi.com/v1/transcription/transcribe"
payload = {
"url": "https://archive.org/download/short_story_047_1102_librivox/shortstory047_beforethelaw_ava_64kb.mp3",
"speakers": True,
"summary": True,
"formats": [
"srt"
]
}
headers = {
"X-RapidAPI-Key": "YOUR_API_KEY",
"X-RapidAPI-Host": "audio-video-transcription-speech-to-text.p.rapidapi.com",
}
r = requests.post(url, json=payload, headers=headers)
print(r.json())
const res = await fetch("https://audio-video-transcription-speech-to-text.p.rapidapi.com/v1/transcription/transcribe", {
method: "POST",
headers: {
"X-RapidAPI-Key": "YOUR_API_KEY",
"X-RapidAPI-Host": "audio-video-transcription-speech-to-text.p.rapidapi.com",
"Content-Type": "application/json",
},
body: JSON.stringify({
"url": "https://archive.org/download/short_story_047_1102_librivox/shortstory047_beforethelaw_ava_64kb.mp3",
"speakers": true,
"summary": true,
"formats": [
"srt"
]
}),
});
console.log(await res.json());
Transcribe Uploaded File
POST /v1/transcription/transcribe/upload
Transcribe an uploaded audio or video file. Same as /transcribe, for a file sent as multipart/form-data (field `file`). Up to 30 MB (about 60 minutes of MP3 at 64 kbit/s).
| Parameter | In | Type | Description |
|---|---|---|---|
file required |
form | file |
Audio or video file, up to 30 MB. |
language |
form | string |
Spoken language, if you know it (e.g. 'en', 'French'). Detected automatically otherwise. |
speakers |
form | boolean |
Label who speaks (S1, S2...) on every segment. 2 credits per minute instead of 1. Default False. |
summary |
form | boolean |
Add an AI summary: key points, chapters with timestamps and action items. +1 credit per 5 minutes (2 at least). Default False. |
formats |
form | "srt" | "vtt"[] |
Subtitle files to include in the response: 'srt', 'vtt'. Default []. |
max_minutes |
form | integer |
Refuse (400 media_too_long, not billed) files longer than this. Default 120. |
curl -X POST "https://audio-video-transcription-speech-to-text.p.rapidapi.com/v1/transcription/transcribe/upload" \
-H "X-RapidAPI-Key: YOUR_API_KEY" \
-H "X-RapidAPI-Host: audio-video-transcription-speech-to-text.p.rapidapi.com" \
-F "file=@./my-file"
import requests
url = "https://audio-video-transcription-speech-to-text.p.rapidapi.com/v1/transcription/transcribe/upload"
headers = {
"X-RapidAPI-Key": "YOUR_API_KEY",
"X-RapidAPI-Host": "audio-video-transcription-speech-to-text.p.rapidapi.com",
}
with open("my-file", "rb") as f:
r = requests.post(url, headers=headers, files={"file": f})
print(r.json())
import { readFile } from "node:fs/promises";
const form = new FormData();
form.append("file", new Blob([await readFile("my-file")]), "my-file");
const res = await fetch("https://audio-video-transcription-speech-to-text.p.rapidapi.com/v1/transcription/transcribe/upload", {
method: "POST",
headers: {
"X-RapidAPI-Key": "YOUR_API_KEY",
"X-RapidAPI-Host": "audio-video-transcription-speech-to-text.p.rapidapi.com",
},
body: form,
});
console.log(await res.json());
Response
{
"source": "https://archive.org/download/.../shortstory047_beforethelaw_ava_64kb.mp3",
"duration_seconds": 309.37,
"minutes_billed": 6,
"language": "en",
"text": "S1: Before the Law, by Franz Kafka.\nS1: Translated by Ian Johnston.\n...",
"segments": [
{ "start": 0.0, "end": 3.0, "speaker": "S1", "text": "Before the Law, by Franz Kafka." },
{ "start": 3.0, "end": 6.0, "speaker": "S1", "text": "Translated by Ian Johnston." }
],
"speakers": ["S1"],
"subtitles": { "srt": "(the whole SRT file, as text)" },
"insights": {
"summary": "A LibriVox reading of Franz Kafka's 'Before the Law'. A man from the country waits all his life at the gate of the law...",
"key_points": ["A gatekeeper refuses the man entry", "The man waits for years and bribes the gatekeeper"],
"chapters": [
{ "start": "00:00:00", "title": "Introduction" },
{ "start": "00:00:18", "title": "Before the Law" }
],
"action_items": []
}
}
A real response on a public-domain LibriVox recording, shortened. Without speakers, text is one paragraph and segments have no speaker.
How it works
- Download (or upload) of the file: MP3, M4A, AAC, WAV, OGG, OPUS, FLAC, WEBM, MP4, MOV, MKV and most other formats.
- Split into five-minute parts; the audio track is copied as-is whenever possible, so nothing is lost to re-encoding.
- Transcribe every part in parallel with a speech-capable AI model, then stitch the timestamps back together.
- Summarise the full transcript on request, using only what is said.
Privacy
Files are downloaded, transcribed and discarded: neither the audio nor the transcript is stored by the API. The AI sub-processor may keep requests temporarily for abuse monitoring. Only send recordings you have the right to process.
Errors
Every failure uses one envelope:
{ "error": { "status": 400, "code": "media_too_long", "message": "The recording is longer than 120 minutes." } }
| Status | code |
Meaning |
|---|---|---|
| 400 | invalid_url, invalid_request |
Fix the input. |
| 400 | site_unreachable, site_blocked, file_too_large |
The file could not be downloaded (down, protected, over 150 MB). |
| 400 | unsupported_file, media_too_long, no_speech |
Not an audio/video file, too long, or silent. |
| 400 | plan_limit |
Free BASIC plan: recordings of up to 5 minutes per call. Paid plans go up to 120 minutes. Not billed. |
| 429 | daily_limit_reached |
Daily safety limit of your plan; resets at 00:00 UTC. |
| 503 | ai_error |
The AI provider failed. Retry. Not billed. |
| 503 | capacity_exhausted |
Temporary capacity limit; see Retry-After. Not billed. |
Use it from an AI agent
Add this MCP server and the Audio & Video Transcription - Speech to Text actor becomes a tool your agent can call. Works in Claude, Cursor, VS Code and any MCP client; billed per event through Apify.
https://mcp.apify.com?tools=helenisapi/audio-video-transcription-speech-to-text
Prefer plain HTTP? Give your agent the OpenAPI document or the Markdown reference.