81trust / 100

Tts Elevenlabs

by x402engine.app in AI models & inference

x402 APIPassing, checked 13 min ago

Premium text-to-speech with ElevenLabs — ultra-realistic voices, multilingual support, custom voice IDs

POST https://x402engine.app/api/tts/elevenlabs

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
388 ms typical, 388 ms slowest 5%
Last check
13 min ago
Next check
in 19 min

How to call it

# See the payment challenge (nothing is charged)
curl -i -X POST "https://x402engine.app/api/tts/elevenlabs" \
  -H "content-type: application/json" \
  -d '{"format":"mp3_44100_128","model_id":"eleven_multilingual_v2","text":"Hello world","voice_id":"21m00Tcm4TlvDq8ikWAM"}'
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%2Fx402engine.app%2Fapi%2Ftts%2Felevenlabs
const res = await pay("https://x402engine.app/api/tts/elevenlabs", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"format":"mp3_44100_128","model_id":"eleven_multilingual_v2","text":"Hello world","voice_id":"21m00Tcm4TlvDq8ikWAM"}),
});
console.log(await res.json());

Example input

{
  "format": "mp3_44100_128",
  "model_id": "eleven_multilingual_v2",
  "text": "Hello world",
  "voice_id": "21m00Tcm4TlvDq8ikWAM"
}

Security scan

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

Recent checks

WhenResultHTTPTimePrice
13 min agoPassed4021.3 s$0.02
4 h agoPassed402339 ms$0.02
9 h agoPassed402388 ms$0.02