{"uid":"cap_T0_rSRfWvn7_epUYgHRk8","slug":"x-ai-text-to-speech-xona-agent-base-mainnet-87c1ddd8","name":"X.AI Text-to-Speech (xona-agent, Base Mainnet)","description":"X.AI text-to-speech: convert text to speech (MP3) (Base Mainnet).","url":"https://api.xona-agent.com/base-main/audio/x-text-to-speech?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string","description":"Text to convert to speech"},"voice_id":{"type":"string","description":"Voice: Eve, Ara, Leo, Rex, or Sal"},"output_format":{"type":"string","description":"Optional: codec, sample_rate, bit_rate"}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_IyPKpQYsXi70kXMY827J0","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts input text to spoken audio (MP3) using X.AI voices, payable via USDC on Base Mainnet.","exampleAgentPrompt":"Convert this script to speech using the Eve voice: 'Welcome to our platform. We're glad you're here.' and give me the MP3.","exampleUseCases":null,"resultDescription":"An MP3 audio file containing the synthesized speech of the provided text, spoken in the selected voice with optional audio format parameters applied.","failureModes":["Invalid voice_id value (must be Eve, Ara, Leo, Rex, or Sal) — returns validation error","Text input missing or empty — returns bad request error","Payment not completed or insufficient USDC balance — returns 402 Payment Required","Unsupported output format parameters — returns codec/format error","Text too long — may return length limit error"],"whenToPreferThis":"Choose this endpoint when you need AI-powered text-to-speech with X.AI voices (Eve, Ara, Leo, Rex, Sal) and are operating on the Base blockchain with USDC micropayments. Ideal for agents building voice content, narrations, or audio from text in a pay-per-call on-chain model.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":1,"lastUsedAt":"2026-09-16T16:37:47.821Z","lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T01:13:24.383Z","isFirstParty":false,"canonicalSlug":"x-ai-text-to-speech-xona-agent-base-mainnet-87c1ddd8"}