# MP4 to MP3 Audio Extractor (x402-deployer)

> MP4 to MP3 Audio Extractor (x402-deployer) is a paid API for AI agents from x402-deployer.x402-deployer.workers.dev, paid per call via x402, $0.1/call, status unknown (last checked 2026-09-15).

Converts video files (MP4, MOV, WebM, MKV, AVI, M4V, FLV) to MP3 audio at selectable bitrates via CloudConvert, supporting files up to 500MB and 60 minutes.

## Facts

- Endpoint: POST https://x402-deployer.x402-deployer.workers.dev/mp4-to-mp3
- Price: $0.1/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-deployer-x402-deployer-workers-dev-fb231ba2
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_T0XoS_eSPJo1k-wqUtgBx

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability x402-deployer-x402-deployer-workers-dev-fb231ba2 -d '<json body>'
```

Example prompt: Extract the audio from this video file as an MP3 at 192 kbps: https://example.com/my-presentation.mp4

## When to prefer this

Use this endpoint when you need to extract or convert audio from any common video format (MP4, MOV, WebM, MKV, AVI, M4V, FLV) to MP3, especially when you need bitrate control. Best for files under 500MB and under 60 minutes. Prefer this over general transcription endpoints when you only need the audio file itself, not a transcript.

## Known failure modes

- File exceeds 500MB limit — returns error indicating file too large
- Video duration exceeds 60-minute maximum — returns error
- Unsupported video format provided — returns format error
- Invalid bitrate value specified — returns validation error
- CloudConvert service unavailable — returns upstream error
- Payment not provided or insufficient — returns 402 payment required
- File URL inaccessible or invalid — returns fetch/download error

## How this service works

MP4 to MP3 audio extractor. Any video format (mov, webm, mkv, avi, m4v, flv) to MP3 via CloudConvert. Selectable bitrate (96/128/192 kbps). 60-min / 500MB max.

## Output

Returns an MP3 audio file extracted from the input video, encoded at the requested bitrate (96, 128, or 192 kbps). The response contains the converted audio file or a download URL for the resulting MP3.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "required": [
      "video_url"
     ],
     "properties": {
      "bitrate": {
       "enum": [
        96,
        128,
        192
       ],
       "type": "number",
       "description": "Output MP3 bitrate in kbps. 96 (smaller, voice), 128 (default, balanced), 192 (higher quality)."
      },
      "video_url": {
       "type": "string",
       "description": "Public URL of the source video. Max 500MB / 60 minutes."
      }
     }
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "bitrate": {
       "type": "integer"
      },
      "audio_url": {
       "type": "string"
      },
      "source_url": {
       "type": "string"
      },
      "file_size_bytes": {
       "type": "integer"
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-deployer-x402-deployer-workers-dev-fb231ba2/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-deployer.x402-deployer.workers.dev](https://www.zero.xyz/host/x402-deployer.x402-deployer.workers.dev/llms.txt)
