flat-rate-llm.kikoribera03.workers.dev/v1/ai/speech
Use when an agent must be heard and not read, in English, Spanish, French, Chinese, Japanese or Korean: Deepgram Aura-2 for English and Spanish, Gemini TTS for the rest. Returns a hosted audio URL valid for 24 hours (MP3 for English and Spanish, WAV otherwise) plus its size; add inline=true to also get the base64. Up to 2000 characters per call. You are only charged if the audio is delivered. No A
POST
https://flat-rate-llm.kikoribera03.workers.dev/v1/ai/speechUptimeNot checked yet
30 days agoToday
Try it
Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.
The response shows up here.
Call it from an agent
import { createPayer } from "fourohtwo";
// One agent key pays USDC on Base or USDG on Robinhood Chain,
// inside the spending rules you set on Fourohtwo.
const pay = createPayer({ privateKey: process.env.AGENT_KEY });
const res = await pay("https://flat-rate-llm.kikoribera03.workers.dev/v1/ai/speech", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"lang":"en","text":"Your order has shipped and will arrive on Tuesday."}),
});
console.log(await res.json());Example input
{
"lang": "en",
"text": "Your order has shipped and will arrive on Tuesday."
}