{"uid":"cap_XaLSAWlwxDdByQXhlL7vp","slug":"grist-tools-audio-convert-d5863d9b","name":"grist.tools Audio Convert","description":"One endpoint does one thing, always the same way, for a fraction of a cent. Payment is verified before the handler runs and settled only after it succeeds, so a rejected or failed call is never a charged call.","url":"https://grist.tools/v1/audio-convert?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","required":["url"],"properties":{"to":{"enum":["wav","mp3","flac","aac","opus"],"type":"string","description":"Output format: wav (16-bit PCM), mp3 (LAME), flac, aac (ADTS stream) or opus (in an Ogg container); defaults to mp3."},"url":{"type":"string","description":"Absolute http(s) URL of the source file, up to 2048 characters; the first audio stream of a recognised container (MP4/MOV, Matroska/WebM, AVI, Ogg, WAV, FLAC, AIFF or MP3) is converted, and it must last at most 3600 seconds."},"sample_rate":{"type":"integer","description":"Output sample rate in Hz, one of 8000, 11025, 16000, 22050, 32000, 44100 or 48000; when omitted ffmpeg chooses the rate, normally the source rate."},"bitrate_kbps":{"type":"integer","description":"Target bit rate in kbps, lossy formats only (mp3, aac, opus): 8 to 512, and at most 192 for aac."}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_VgqOEA4ADT7vOh3-06RHe","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts an audio or video file (by URL) to a target audio format such as MP3, WAV, FLAC, AAC, or Opus using ffmpeg, for $0.003 per call.","exampleAgentPrompt":"Convert the audio at https://example.com/podcast.mp4 to mp3 at 128 kbps and 44100 Hz sample rate.","exampleUseCases":[{"title":"Podcast episode format conversion","prompt":"I have a podcast episode hosted at https://media.mypodcast.com/ep42.wav — can you convert it to mp3 at 128 kbps so it's smaller for distribution?"},{"title":"Extract audio from video for transcription","prompt":"Grab the audio from this video at https://cdn.example.com/interview.mp4 and convert it to a 16000 Hz wav file so I can send it to a speech-to-text service."},{"title":"Convert music to Opus for web streaming","prompt":"Convert this flac file at https://storage.example.com/track.flac to opus at 96 kbps so I can stream it efficiently on my web app."}],"resultDescription":"Returns the converted audio file in the requested format (mp3, wav, flac, aac, or opus). The output is the raw audio stream or container corresponding to the chosen format, processed from the first audio stream of the source file.","failureModes":["Source URL is unreachable or returns a non-200 response — conversion fails with an error","Source file format is not a recognized container (MP4/MOV, MKV/WebM, AVI, Ogg, WAV, FLAC, AIFF, MP3) — unsupported format error","Audio duration exceeds 3600 seconds — rejected before processing","Unsupported bitrate value outside 8–512 kbps range (or >192 for AAC) — validation error","Invalid sample_rate value not in the allowed set — validation error","Payment rejected or insufficient — call never executes","Network timeout fetching the source URL — conversion fails"],"whenToPreferThis":"Choose this endpoint when you need a simple, pay-per-call audio format conversion without managing ffmpeg infrastructure. It is ideal for agents that occasionally need to transcode audio files on demand (e.g. before sending to a speech-to-text API, normalizing podcast audio, or preparing files for web streaming). At $0.003/call it is cost-effective for low-to-medium volume workflows. Prefer it over self-hosted ffmpeg when you want zero infrastructure overhead and atomic per-call billing.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T01:14:18.413Z","isFirstParty":false,"canonicalSlug":"grist-tools-audio-convert-d5863d9b"}