81trust / 100

Audio Convert

by Audio convert (to MP3) in Documents & files

x402 APIPassing, checked 36 min ago

Extract/convert the audio track of any media URL (mp4, mov, wav, m4a, ogg…) to MP3 - the "mp4 to mp3" conversion, deterministic ffmpeg, no AI. Body: {"url":"https://…/video.mp4","bitrate":"192k"?}. Returns the MP3 as base64.

POST https://agent402.tools/api/audio-convert

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
199 ms typical, 199 ms slowest 5%
Last check
36 min ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X POST "https://agent402.tools/api/audio-convert" \
  -H "content-type: application/json" \
  -d '{"url":"https://agent402.tools/fixtures/sample-audio.wav"}'
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client().register(
  "eip155:8453",
  new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fagent402.tools%2Fapi%2Faudio-convert
const res = await pay("https://agent402.tools/api/audio-convert", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"url":"https://agent402.tools/fixtures/sample-audio.wav"}),
});
console.log(await res.json());

Example input

{
  "url": "https://agent402.tools/fixtures/sample-audio.wav"
}

Example output

{
  "bitrate": "192k",
  "bytes": 18765,
  "format": "mp3",
  "mp3Base64": "SUQzBAAAAA…"
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
36 min agoPassed402199 ms$0.02
4 h agoPassed402191 ms$0.02
9 h agoPassed402274 ms$0.02