{"uid":"cap_Nob6_4ZSwCW1GxDinqcMW","slug":"delx-kokoro-speech-ff84cc6e","name":"Delx Kokoro Speech","description":"Delx Commerce text to speech API for agents at $0.002 USDC. Call when you need short narration, voiceover, IVR prompts, or notification clips without a TTS subscription. Kokoro WAV + SHA-256 via x402 on Base. Accepts native `text` or OpenAI-shaped `input`/`voice`/`speed` (up to 500 characters). Not a phone carrier or realtime voice session.","url":"https://api.delx.ai/api/v1/x402/speech","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string","maxLength":500,"minLength":1,"description":"Text to synthesize into a short speech clip."},"input":{"type":"string","maxLength":500,"minLength":1,"description":"OpenAI-compatible alias for `text`."},"model":{"enum":["kokoro","kokoro-82m","tts-1"],"type":"string","default":"kokoro","description":"`tts-1` is accepted as a compatibility alias; delivery uses Kokoro 82M."},"speed":{"type":"number","default":1,"maximum":2,"minimum":0.5},"voice":{"enum":["af_bella","af_nicole","af_sarah","am_fenrir","am_michael","bf_emma","bm_george","ff_siwis","hf_alpha","hm_omega","alloy","echo","fable","onyx","nova","shimmer"],"type":"string","default":"af_bella"},"response_format":{"enum":["wav"],"type":"string","default":"wav","description":"The hosted result is currently delivered as WAV."}}},"responseSchema":{"type":"json","example":{"bytes":48128,"model":"jaaari/kokoro-82m","speed":1,"voice":"af_bella","sha256":"cb45a6e6fa30b28b791a6256f9f522f13fc9c6de5b407030bd853cab62523d63","channels":1,"provider":"replicate","audio_url":"https://api.delx.ai/api/v1/generated-audio/0de6f22023df47f4a96c260bd980257a.wav","media_type":"audio/wav","duration_ms":1000,"generation_id":"0de6f22023df47f4a96c260bd980257a","sample_rate_hz":24000,"sale_price_usdc":0.002,"provider_attempts":1,"sample_width_bits":16,"prompt_policy_version":"raw/v1"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_FFWoLlQqDcpUxqsQB1bC2","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts text to speech audio using the Kokoro TTS model, returning a durable audio URL and SHA-256 receipt, paid per-clip via x402 micropayment at $0.001 USDC.","exampleAgentPrompt":"Read this aloud using the af_sarah voice at normal speed and give me a link to the audio clip: 'Welcome to our platform. We're glad you're here.'","exampleUseCases":[{"title":"Podcast intro narration","prompt":"Can you turn this intro script into a spoken audio clip using the bm_george voice at 1x speed? The text is: 'Hello and welcome to Tech Talks, the show where we explore the future of artificial intelligence.'"},{"title":"Accessibility audio for web content","prompt":"I need an audio version of this paragraph for screen-reader users — use the bf_emma voice at 0.9 speed: 'Our return policy allows you to send back any item within 30 days of purchase for a full refund.'"},{"title":"Multilingual voice preview selection","prompt":"Generate a speech sample using the ff_siwis voice at 1.2 speed so I can preview how it sounds — use this sentence: 'Bonjour, bienvenue sur notre service de synthèse vocale.'"}],"resultDescription":"Returns a durable audio URL pointing to the synthesized speech clip, a SHA-256 receipt confirming payment and content integrity, and metadata about the voice and parameters used. The audio URL is persistent and can be linked or embedded directly.","failureModes":["Text exceeds 500-character limit — request rejected with validation error","Payment via x402 fails or USDC balance insufficient — returns 402 Payment Required","Invalid voice enum value — returns schema validation error","Speed value outside 0.5–2.0 range — rejected with parameter error","Empty or missing text field — returns 400 Bad Request","Network timeout during synthesis — may return 503 or timeout error"],"whenToPreferThis":"Choose this endpoint when you need ultra-low-cost per-clip TTS ($0.001 USDC) without an API key or subscription, especially for AI agent workflows that call TTS sporadically. It is ideal when you need a durable audio URL and a verifiable SHA-256 receipt for auditability. Prefer it over subscription TTS services when usage is low-volume or unpredictable. Use when Kokoro voice quality meets your needs and you want x402 micropayment integration.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T19:02:55.041Z","isFirstParty":false}