$ man video-to-subtitles
/video-to-subtitles(1)
PRICE / CALL
$0.02
USDC · base mainnet · scheme: exact
METHOD
POST
CLUSTER
mediakitCATEGORY
media
STATUS
● live
NAME
video-to-subtitles — srt / vtt subtitle generator from video or audio
SYNOPSIS
POST https://x402.org/v1/video-to-subtitles
Content-Type: application/json
X-PAYMENT: <signed-transferWithAuthorization>
{ ... }↳ first call →
402 Payment Required. Sign USDCtransferWithAuthorization, retry with theX-PAYMENT header.DESCRIPTION
SRT / VTT subtitle generator from video or audio. Whisper v3 powered. Word-wrapped, ready for VLC / Premiere / FFmpeg. Auto-detect language + translate-to-English.
INPUT — request schema
| property | type | description | req? |
|---|---|---|---|
| media_url | string | Public URL of an audio or video file. mp3, mp4, mpeg, mpga, m4a, wav, webm. Max 60 minutes. | required |
| format | string | 'srt' (default) or 'vtt'. enum: srt · vtt | optional |
| language | string | Optional ISO language code. Auto-detected if omitted. | optional |
| task | string | 'transcribe' (default) or 'translate' (translates to English). enum: transcribe · translate | optional |
| max_chars_per_line | number | Max characters per subtitle line. Default 42. Range 16-120. | optional |
OUTPUT — response shape
| field | type | description |
|---|---|---|
| subtitles | string | Full subtitle file content as a string. |
| format | string | Echo of the format used. |
| mime_type | string | MIME type for the subtitle format ('application/x-subrip' or 'text/vtt'). |
| cue_count | number | Number of subtitle cues generated. |
| duration_seconds | number | Source media duration. |
| detected_languages | array | Languages auto-detected in the audio. |
| task | string | Echo of the task performed. |
| source_url | string | Echo of the input URL. |
EXAMPLES — two ways to call
EXAMPLE 1 · curl
curl -X POST https://x402.org/v1/video-to-subtitles \
-H 'Content-Type: application/json' \
-d '{ }'first response =
402 Payment Required with payment requirements; sign + retry with X-PAYMENT.EXAMPLE 2 · mcp
# install once claude mcp add x402 --command "npx x402-deployer-mcp" # then ask Claude Code: # "use the video-to-subtitles tool to ..."
MCP server handles payment automatically — your coding agent just calls the tool by name.
METADATA
- tags
- subtitlessrtvttcaptionswhispertranscription
- env
- FAL_KEY_TRANSCRIBE
- methods
- POST
- cluster
- mediakit
- price
- $0.02 USDC per call
ADJACENT — other endpoints in mediakit
| endpoint | description | price |
|---|---|---|
| audio-loudnorm | Audio loudness normalizer (EBU R128 LUFS). | $0.02 |
| csv-to-jsonl | CSV to JSON / CSV to JSONL converter / data pipeline preprocessor. | $0.02 |
| image-translate | Image translator: vision-OCR + Venice translate. | $0.02 |
| image-upscale | Image upscale / 2x upscaler / 4x upscaler / super-resolution / sharpen image / enlarge image without loss. | $0.02 |
| pdf-watermark | PDF watermark / image watermark / video watermark — text or image overlay on PDFs, PNG/JPG/GIF, or MP4/MOV/WEBM. | $0.02 |
| video-trim | Video trimmer / video cutter / video clip tool. | $0.02 |
| watermark | PDF / image / video watermarking — text or image overlay. | $0.02 |
| watermark-pdf | Add watermark to PDF. | $0.02 |
SEE ALSO