80trust / 100

Audio Speech

by OpenAI tts-1-hd in AI models & inference

x402 APIPassing, checked 2 h ago

tts-1-hd: OpenAI TTS 1 HD text to speech, paid per call in USDC. OpenAI list $30 per 1M characters, plus $0.0005 (Base) or $0.0005 (Solana) per call; up to 4096 characters; voices: alloy, ash, coral, echo, fable, onyx, nova, sage, shimmer. Returns the audio bytes (mp3 by default). Rates: https://openai.mm.family/x402/pricing

POST https://openai.mm.family/x402/v1/models/tts-1-hd/audio/speech

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
142 ms typical, 176 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://openai.mm.family/x402/v1/models/tts-1-hd/audio/speech" \
  -H "content-type: application/json" \
  -d '{"input":"Say hello","model":"tts-1-hd","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%2Fopenai.mm.family%2Fx402%2Fv1%2Fmodels%2Ftts-1-hd%2Faudio%2Fspeech
const res = await pay("https://openai.mm.family/x402/v1/models/tts-1-hd/audio/speech", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"input":"Say hello","model":"tts-1-hd","voice":"alloy"}),
});
console.log(await res.json());

Example input

{
  "input": "Say hello",
  "model": "tts-1-hd",
  "voice": "alloy"
}

Example output

{
  "body": "binary audio bytes (mp3 by default)",
  "content_type": "audio/mpeg"
}

Security scan

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

Recent checks

WhenResultHTTPTimePrice
2 h agoPassed40229 ms$0.001
5 h agoPassed402142 ms$0.001
9 h agoPassed402232 ms$0.001
13 h agoPassed402176 ms$0.001
16 h agoPassed402145 ms$0.001
20 h agoPassed40295 ms$0.001
23 h agoPassed40230 ms$0.001
27 h agoPassed40231 ms$0.001
32 h agoPassed402147 ms$0.001