# Audio & Video Transcription API

> Fast speech to text for audio and video: timestamps, speaker labels, SRT/VTT and AI summaries.

Podcasts, interviews, meetings, lectures, voice notes, videos: send a **file link** or **upload the file**, get back a **verbatim transcript** with **timestamps**, in the language actually spoken. Ask for **speaker labels**, **SRT / WebVTT subtitles** and an **AI summary** in the same call.

- Host: `audio-video-transcription-speech-to-text.p.rapidapi.com`
- Base URL: `https://audio-video-transcription-speech-to-text.p.rapidapi.com/v1/transcription`
- Auth: headers `X-RapidAPI-Key` and `X-RapidAPI-Host`
- OpenAPI: https://helenis-api.com/docs/transcription/openapi.json

## Endpoints

### 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 | Required | Description | Example |
|---|---|---|---|---|---|
| `url` | body | `string` | yes | Direct link to an audio or video file (MP3, M4A, WAV, OGG, FLAC, MP4, MOV, WEBM...). Up to 150 MB and 120 minutes. | `https://archive.org/download/short_story_047_1102_librivox/shortstory047_eman...` |
| `language` | body | `string` | no | Spoken language, if you know it (e.g. 'en', 'French'). Detected automatically otherwise. |  |
| `speakers` | body | `boolean` | no | Label who speaks (S1, S2...) on every segment. 2 credits per minute instead of 1. Default `False`. |  |
| `summary` | body | `boolean` | no | 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"[]` | no | Subtitle files to include in the response: 'srt', 'vtt'. | `["srt"]` |
| `max_minutes` | body | `integer` | no | Refuse (400 media_too_long, not billed) files longer than this. Default `120`. |  |

```bash
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"
    ]
  }'
```

#### 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 | Required | Description | Example |
|---|---|---|---|---|---|
| `file` | form | `file` | yes | Audio or video file, up to 30 MB. |  |
| `language` | form | `string` | no | Spoken language, if you know it (e.g. 'en', 'French'). Detected automatically otherwise. |  |
| `speakers` | form | `boolean` | no | Label who speaks (S1, S2...) on every segment. 2 credits per minute instead of 1. Default `False`. |  |
| `summary` | form | `boolean` | no | 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"[]` | no | Subtitle files to include in the response: 'srt', 'vtt'. Default `[]`. |  |
| `max_minutes` | form | `integer` | no | Refuse (400 media_too_long, not billed) files longer than this. Default `120`. |  |

```bash
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"
```

## Sample call

Transcribe from URL: `POST /v1/transcription/transcribe`.

```bash
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"
    ]
  }'
```

## Response

```json
{
  "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

1. **Download** (or upload) of the file: MP3, M4A, AAC, WAV, OGG, OPUS, FLAC, WEBM, MP4, MOV, MKV and most other formats.
2. **Split** into five-minute parts; the audio track is copied as-is whenever possible, so nothing is lost to re-encoding.
3. **Transcribe** every part in parallel with a speech-capable AI model, then stitch the timestamps back together.
4. **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:

```json
{ "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. |

## Pricing

1 credit per minute of audio (2 with speakers), +1 per 5 minutes for the summary. Failed calls are never billed.

| Plan | Price | Credits included | Above the quota |
|---|---|---|---|
| BASIC | Free | 5 / day | resets every day |
| PRO | $4.99/month | 1,200 / month | $0.05 per credit |
| ULTRA | $14.99/month | 3,600 / month | $0.05 per credit |
| MEGA | $49.99/month | 12,000 / month | $0.05 per credit |

Apify actor **Audio & Video Transcription - Speech to Text**: billed per event; free-plan users get 3 files of 10 minutes per run.

| Event | Charged for | Price |
|---|---|---|
| `audio-minute` | each minute transcribed | $0.0035 |
| `speaker-labels-minute` | each minute with speaker labels | $0.002 |
| `ai-summary-minute` | each minute summarised | $0.0005 |

## Links

- API reference (HTML): https://helenis-api.com/docs/transcription
- OpenAPI: https://helenis-api.com/docs/transcription/openapi.json
- Overview and pricing: https://helenis-api.com/apis/transcription/
- RapidAPI listing: https://rapidapi.com/helenis-api-helenis-api-docs/api/audio-video-transcription-speech-to-text?utm_source=helenis&utm_medium=site&utm_campaign=transcription&utm_content=markdown
- Apify actor: https://apify.com/helenisapi/audio-video-transcription-speech-to-text?utm_source=helenis&utm_medium=site&utm_campaign=transcription&utm_content=markdown
- MCP server (Apify): https://mcp.apify.com?tools=helenisapi/audio-video-transcription-speech-to-text

MCP: Works in Claude, Cursor, VS Code and any MCP client; billed per event through Apify (your Apify token).

## Conventions (every Helenis API)

- Auth: two headers on every call, `X-RapidAPI-Key` (your key) and `X-RapidAPI-Host` (the API's host). One RapidAPI key works for every API you subscribe to.
- Billing in credits: one for a simple call, more for heavier work (a minute of audio, a page read by AI). Each API states its rule.
- Failed calls are never billed: a `4xx` bills zero credits and a `5xx` is never counted.
- Errors share one envelope: `{"error": {"status", "code", "message"}}` with a stable machine-readable `code`.
- `400`: fix the input (validation errors are always 400, never 422); not billed.
- `429`: rate limit; wait for `Retry-After`. `503`: temporary upstream or AI failure (`ai_error`, `upstream_timeout`); retry later, not billed.
- Values the source does not give come back as `null`, never invented.
