68trust / 100

Tts Hd

by Text-to-speech (HD) in AI models & inference

x402 APIPassing, checked 2 h ago

Convert text to speech using OpenAI TTS-1-HD (higher fidelity). Returns base64-encoded audio. Same interface as /api/tts but with better audio quality. No API key needed; pay per call via x402. Text capped at 2000 chars.

POST https://agent402.tools/api/tts-hd

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
289 ms typical, 372 ms slowest 5%
Last check
2 h 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/tts-hd" \
  -H "content-type: application/json" \
  -d '{"format":"mp3","text":"Hello from Agent402!","voice":"alloy"}'
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%2Ftts-hd
const res = await pay("https://agent402.tools/api/tts-hd", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"format":"mp3","text":"Hello from Agent402!","voice":"alloy"}),
});
console.log(await res.json());

Example input

{
  "format": "mp3",
  "text": "Hello from Agent402!",
  "voice": "alloy"
}

Example output

{
  "audio": "<base64-encoded audio>",
  "chars": 20,
  "format": "mp3",
  "model": "tts-1-hd",
  "provider": "openai",
  "voice": "alloy"
}

Security scan

  • Charges more than its listed price in payment
    Listed at $0.1, charges $0.24

Recent checks

WhenResultHTTPTimePrice
2 h agoPassed402322 ms$0.24
6 h agoPassed402372 ms$0.24
9 h agoPassed402375 ms$0.24
12 h agoPassed402241 ms$0.24
16 h agoPassed402188 ms$0.24
20 h agoPassed402190 ms$0.24
23 h agoPassed402192 ms$0.24
27 h agoPassed402314 ms$0.24
30 h agoPassed402333 ms$0.24
35 h agoPassed402193 ms$0.24
38 h agoPassed402199 ms$0.24
42 h agoPassed402289 ms$0.24
45 h agoPassed402329 ms$0.24
2 days agoPassed402259 ms$0.24
2 days agoPassed402344 ms$0.24

History

11 Oct 2026Price changed from $0.1 to $0.24