# FastX402 Extract Audio

> FastX402 Extract Audio is a paid API for AI agents from fastx402.tools, paid per call via x402, $0.01/call, status unknown (last checked 2026-11-14).

Extracts a segment (or full track) of audio from a remote video or audio file URL and returns a download link in the chosen format

## Facts

- Endpoint: GET https://fastx402.tools/extract-audio?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/fastx402-extract-audio-60928424
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_8HGpqzxQDsq0iv-wJapR0

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 fastx402-extract-audio-60928424
```

Example prompt: Can you extract the audio from this video — https://example.com/lecture.mp4 — starting at 1:30 and ending at 5:00, and give me the result as an mp3 file?

## When to prefer this

Use this endpoint when you need to programmatically extract or convert audio from a remote video or audio file URL without setting up any account or API key — ideal for agent workflows that need to isolate audio tracks, trim clips, or transcode between audio formats (mp3, m4a, wav, ogg, flac, opus) on a pay-per-call basis with USDC micropayments.

## Known failure modes

- Invalid or unreachable source URL returns an error — the URL must be a publicly accessible http(s) link
- Unsupported file format (e.g. .wmv or .rm) is not accepted — only mp4, mov, mkv, webm, avi, mp3, m4a, wav, ogg, flac are supported
- Start or end time out of range for the source file duration may return an error or produce a zero-length output
- Payment failure via x402 (insufficient USDC balance or unsupported chain) results in a 402 Payment Required response
- Very large source files or slow remote servers may cause timeouts during download and transcoding

## How this service works

200 pay-per-call tools for AI agents, from $0.001 per request in USDC on Base or Solana with x402. No account, no API key.

## Output

Returns a JSON object with a temporary download URL to the extracted audio file, the output format (e.g. mp3), MIME type, duration in seconds, file size in bytes, the original input file size in bytes, the start time offset, and an expiry timestamp after which the URL is no longer valid.

## 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"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "url"
     ],
     "properties": {
      "end": {
       "type": "string",
       "description": "End time in seconds or as 1:05, default the end of the file"
      },
      "url": {
       "type": "string",
       "description": "Absolute http(s) URL of a video or audio file (mp4, mov, mkv, webm, avi, mp3, m4a, wav, ogg, flac)"
      },
      "start": {
       "type": "string",
       "description": "Start time in seconds (12.5) or as 1:05, default 0"
      },
      "format": {
       "enum": [
        "mp3",
        "m4a",
        "wav",
        "ogg",
        "flac",
        "opus"
       ],
       "type": "string",
       "description": "Audio format, default mp3"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "url": {
       "type": "string"
      },
      "bytes": {
       "type": "integer"
      },
      "start": {
       "type": "integer"
      },
      "format": {
       "type": "string"
      },
      "mime_type": {
       "type": "string"
      },
      "duration_s": {
       "type": "number"
      },
      "expires_at": {
       "type": "string"
      },
      "input_bytes": {
       "type": "integer"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "url": "https://workshop.tusk80.com/r/fa79f739bcc49a2596b55a619110ce75.mp3",
  "bytes": 816015,
  "start": 0,
  "format": "mp3",
  "mime_type": "audio/mpeg",
  "duration_s": 60.1,
  "expires_at": "2026-10-17T15:20:48.294Z",
  "input_bytes": 5510872
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/fastx402-extract-audio-60928424/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from fastx402.tools](https://www.zero.xyz/host/fastx402.tools/llms.txt)
