Extract the audio track as MP3 (or WAV / M4A)

Extracts the audio track as MP3, WAV or M4A.

Request

POSThttps://video-tools.p.apihiver.com/v1/extract-audio

Upload the video in the file field (max 50 MB). Instead of a file you can send JSON: {"url": "https://…"} for a public video URL, or {"base64": "…"} — the options below then go in the same JSON object.

*
No file chosen
File. The video file (MP4, MOV, WebM, MKV, AVI…).
String. mp3, wav or m4a.
Integer. Bitrate for MP3/M4A.

Parameters and body structure are inherited from this endpoint's definition. Changes here only apply to this test run.

Language
Client
1curl --request POST \
2  --url https://video-tools.p.apihiver.com/v1/extract-audio \
3  --header 'Accept: application/json' \
4  --header 'X-API-Key: YOUR_API_KEY' \
5  --header 'content-type: multipart/form-data' \
6  --form file=@file.bin \
7  --form format=mp3 \
8  --form bitrate_kbps=128

Extract the audio track as MP3 (or WAV / M4A): Video Tools API reference

Extracts the audio track as MP3, WAV or M4A. This endpoint is part of the Video Tools API: Get video info, grab thumbnails, make storyboard contact sheets, extract audio (MP3/WAV/M4A) and convert clips to GIF.

Example response (200, audio/mpeg)

The audio file (type follows `format`).

Errors

  • 400 — A required parameter is missing or a value has the wrong format.
    1{
    2  "error": {
    3    "code": "INVALID_INPUT",
    4    "message": "Provide a file upload, 'url', or 'base64'."
    5  }
    6}

Gateway errors (missing key, no subscription, rate limits) are listed in Error codes.