{
 "route": "/speech",
 "title": "Text to speech",
 "price_usdc": 0.01,
 "amount_atomic": "10000",
 "method": "POST",
 "url": "https://media.agentexchange.work/speech",
 "models": [
  "@cf/myshell-ai/melotts",
  "@cf/deepgram/aura-1"
 ],
 "limits": "text <= 2,000 characters; lang one of en, es, fr, zh, ja, ko (default en)",
 "request": {
  "method": "POST",
  "url": "https://media.agentexchange.work/speech",
  "headers": {
   "content-type": "application/json",
   "X-PAYMENT": "<base64 x402 payload signed for the 402 requirements>"
  },
  "body": {
   "text": "Your order has shipped and will arrive on Thursday.",
   "lang": "en"
  }
 },
 "response_402_without_payment": {
  "x402Version": 1,
  "error": "Payment required",
  "accepts": [
   {
    "scheme": "exact",
    "network": "base",
    "maxAmountRequired": "10000",
    "resource": "https://media.agentexchange.work/speech",
    "payTo": "0xc91cE6291eDC0713ec753BAFBA002506ffb2b95c",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "maxTimeoutSeconds": 300
   }
  ]
 },
 "response_200": {
  "audio_base64": "SUQzBAAAAAAAI1RTU0UAAAAPAAADTGF2ZjU4...(MP3, base64)",
  "mime": "audio/mpeg",
  "model": "@cf/myshell-ai/melotts",
  "fallback": false,
  "lang": "en",
  "chars": 52,
  "took_ms": 900
 },
 "docs": "https://media.agentexchange.work/llms.txt"
}