{"uid":"cap_8RZ7ecv9G-dObpsB0NBeJ","slug":"grist-tools-audio-extract-5d6e2631","name":"grist.tools Audio Extract","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-extract?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 for the extracted track: 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 a video or audio file, up to 2048 characters, in a recognised container (MP4/MOV, Matroska/WebM, AVI, Ogg, WAV, FLAC, AIFF or MP3); the selected audio stream must last at most 3600 seconds."},"stream":{"type":"integer","description":"Zero-based index among the audio streams only (0 is the first audio track), 0 to 63; an index the file does not have is refused as unprocessable."}}},"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_2jzielCGTCQFcytO4yiRQ","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":"Extracts and converts audio from a remote video or audio file URL into a chosen audio format (MP3, WAV, FLAC, AAC, or Opus)","exampleAgentPrompt":"Can you extract the audio from this MP4 video — https://example.com/lecture.mp4 — and give it to me as a WAV file?","exampleUseCases":[{"title":"Rip audio from a lecture video","prompt":"I have this lecture video at https://university.edu/lectures/session1.mp4 — can you pull out the audio and save it as an MP3 so I can listen on my phone?"},{"title":"Extract lossless audio for editing","prompt":"Please extract the audio from https://cdn.example.com/raw-footage.mov as a FLAC file so I can bring it into my audio editor without any quality loss."},{"title":"Grab alternate audio track from multi-track file","prompt":"This MKV file at https://media.example.com/movie.mkv has multiple audio tracks — can you extract the second audio track (index 1) as an AAC file?"}],"resultDescription":"Returns the converted audio file in the requested format (defaulting to MP3). The file contains the extracted audio stream from the source video or audio container, transcoded using the appropriate codec (LAME for MP3, 16-bit PCM for WAV, FLAC, ADTS stream for AAC, or Ogg-wrapped Opus). Payment is only charged on success.","failureModes":["URL is not reachable or returns a non-200 response","File format is not a recognised container (must be MP4/MOV, MKV/WebM, AVI, Ogg, WAV, FLAC, AIFF, or MP3)","Audio stream duration exceeds 3600 seconds","Requested stream index does not exist in the file (returns unprocessable error)","Stream index out of allowed range (0–63)","URL exceeds 2048 characters","Payment verification fails before processing begins"],"whenToPreferThis":"Choose this endpoint when you need a simple, pay-per-call audio extraction or format conversion from a publicly accessible video or audio URL, without managing your own FFmpeg infrastructure. It is ideal for one-off conversions at $0.003/call with no subscription. It supports a wide range of input containers and five common output formats, and it handles multi-track files via stream selection.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T01:14:21.260Z","isFirstParty":false,"canonicalSlug":"grist-tools-audio-extract-5d6e2631"}