Media Convert
media_convertConvert or transcode a public audio/video/image file via a self-hosted FFmpeg container: pass a source URL and a target format (mp3, mp4, webm, wav, png, …) and receive a public output URL. Pay per call with USDC or USDT on Base via x402 – no API key, no signup. 3 free calls per wallet.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Public URL of the source file. | |
| wallet | No | Your EVM wallet address (0x...). Unlocks the free tier (3 free calls per wallet). | |
| api_key | No | Optional AMR enterprise API key. | |
| operation | No | Named operation, e.g. extract-audio, thumbnail, transcode. | |
| x_payment | No | Optional signed x402 payment payload (base64 JSON) for USDC/USDT on Base. | |
| target_format | Yes | Output format, e.g. mp3, mp4, webm, wav, png. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| token | No | Token actually used for payment (USDC, USDT or FREE). | USDC |
| source | Yes | ||
| routing | Yes | How the request was routed (provider, fallback, cache, latency). | |
| cost_usdc | Yes | Price charged in stablecoin units (USDC/USDT 1:1); 0 on the free tier. | |
| operation | No | ||
| fetched_at | No | UTC timestamp when the data was fetched. | |
| output_url | Yes | ||
| source_url | Yes | ||
| output_bytes | No | ||
| target_format | Yes | ||
| duration_seconds | No | ||
| freshness_seconds | Yes | Age of the underlying data in seconds (0 = fetched live). | |
| x_payment_response | No | Base64-encoded x402 settlement receipt (mirrors the X-PAYMENT-RESPONSE header). Only present when the call was paid with `x_payment`. |