# FastX402 Media Convert

> FastX402 Media Convert is a paid API for AI agents from fastx402.tools, paid per call via x402, $0.02/call, status unknown (last checked 2026-11-28).

Converts and trims video or audio files between formats (mp4, mov, mkv, webm, mp3, wav, etc.) via a pay-per-call API using x402 micropayments

## Facts

- Endpoint: GET https://fastx402.tools/media-convert?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-28
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/fastx402-media-convert-e2001d91
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_t9nOk2DH9N0yH9hvZZ-jD

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-media-convert-e2001d91
```

Example prompt: Can you convert this video file to mp3 and trim it from 0:30 to 2:15? Here's the URL: https://example.com/myvideo.mp4

## When to prefer this

Choose this endpoint when an AI agent needs to programmatically convert or trim audio/video files without provisioning an account or managing API keys. It is ideal for lightweight, on-demand media format conversion tasks paid per-call via USDC micropayments on Base or Solana. Prefer this over heavy self-hosted FFmpeg setups or subscription-based media APIs when cost per conversion matters and the agent needs a stateless, serverless approach.

## Known failure modes

- Invalid or inaccessible source URL returns an error (file must be publicly reachable via https)
- Unsupported input format (only mp4, mov, mkv, webm, avi, mp3, m4a, wav, ogg, flac accepted)
- Invalid start/end time values or start >= end cause processing failure
- Payment failure via x402 prevents the call from being processed
- Output URL expires after a set time — agent must download or use the file before expiry
- Very large files may time out or exceed processing limits

## 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

A JSON object containing a temporary URL to the converted media file, the output format, MIME type, file size in bytes, duration in seconds, start offset, and an expiry timestamp after which the URL will no longer be 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",
      "format"
     ],
     "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": [
        "mp4",
        "mov",
        "mkv",
        "webm",
        "mp3",
        "m4a",
        "wav",
        "ogg",
        "flac",
        "opus"
       ],
       "type": "string",
       "description": "Output format"
      }
     }
    }
   },
   "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/d47a52c0a40b76aa78ac39e1f99cce3d.webm",
  "bytes": 5935046,
  "start": 0,
  "format": "webm",
  "mime_type": "video/webm",
  "duration_s": 60.1,
  "expires_at": "2026-10-17T15:20:47.225Z",
  "input_bytes": 5510872
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/fastx402-media-convert-e2001d91/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)
