# Kokoro TTS — Zapi reference > High-quality multilingual text-to-speech synthesis. **Base URL:** `https://api.zpi.web.id` **Auth:** Send `x-api-key: YOUR_KEY` header on every request. Get a free key at https://zpi.web.id/dashboard/keys. **Response envelope:** `{ status, message, content }` **Rate limit:** 60 req/min on free tier. **Related:** - Detail page: https://zpi.web.id/api/ai/kokoro-tts - Endpoint catalog: https://zpi.web.id/category/ai - Concise index: https://zpi.web.id/llms.txt - Full reference: https://zpi.web.id/llms-full.txt --- ## Kokoro TTS **Category:** ai · **Slug:** `kokoro-tts` **Detail page:** https://zpi.web.id/api/ai/kokoro-tts High-quality multilingual text-to-speech synthesis. **Tags:** tts, audio, voice ### Synthesize Generate speech audio from text input. - **Method:** `POST` - **Endpoint:** `https://api.zpi.web.id/v1/ai:kokoro-tts/synthesize` - **Cache TTL:** 300s **Parameters:** | Name | Type | Location | Required | Description | |------|------|----------|----------|-------------| | `text` | string | body | yes | Text untuk di-convert ke speech. Optimal untuk teks English (US/UK accent). Max 2000 chars. | | `voice` | enum(af_heart|af_bella|af_nicole|af_aoede|af_kore|af_sarah|af_nova|af_sky|af_alloy|af_jessica|af_river|am_michael|am_fenrir|am_puck|am_echo|am_eric|am_liam|am_onyx|am_santa|am_adam|bf_emma|bf_isabella|bf_alice|bf_lily|bm_george|bm_fable|bm_lewis|bm_daniel) | body | no | Voice ID (28 pilihan). Prefix = aksen+gender: af=American Female, am=American Male, bf=British Female, bm=British Male. American female: af_heart (flagship), af_bella, af_nicole, af_aoede, af_kore, af_sarah, af_nova, af_sky, af_alloy, af_jessica, af_river. American male: am_michael, am_fenrir, am_puck, am_echo, am_eric, am_liam, am_onyx, am_santa, am_adam. British female: bf_emma, bf_isabella, bf_alice, bf_lily. British male: bm_george, bm_fable, bm_lewis, bm_daniel. Default af_heart. | | `speed` | number | body | no | Kecepatan bicara (multiplier). Range 0.5 (lambat) - 2.0 (cepat). Default 1.0. | **cURL:** ```bash curl -X POST "https://api.zpi.web.id/v1/ai:kokoro-tts/synthesize" \ -H "x-api-key: YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "text": "Hello! This is Zapi AI speaking. Kokoro renders crisp, natural English in real time.", "voice": "af_heart", "speed": "1.0" }' ``` **JavaScript / TypeScript:** ```javascript const res = await fetch("https://api.zpi.web.id/v1/ai:kokoro-tts/synthesize", { method: "POST", headers: { "x-api-key": process.env.ZAPI_KEY, "Content-Type": "application/json" }, body: JSON.stringify({ "text": "Hello! This is Zapi AI speaking. Kokoro renders crisp, natural English in real time.", "voice": "af_heart", "speed": "1.0" }) }); const data = await res.json(); ``` **Python:** ```python import requests r = requests.post("https://api.zpi.web.id/v1/ai:kokoro-tts/synthesize", headers={"x-api-key": "YOUR_API_KEY"}, json={ "text": "Hello! This is Zapi AI speaking. Kokoro renders crisp, natural English in real time.", "voice": "af_heart", "speed": "1.0" }) data = r.json() ``` **Example response:** ```json { "text": "Halo, perkenalkan saya Zapi AI. Senang berkenalan dengan Anda.", "audio": { "url": "https://remsky-kokoro-tts-zero.hf.space/gradio_api/file=/tmp/gradio/8178a9a13fceab0fd38262452af3118b8ca01d104ed3ae4fd6ba2bc8f115f81b/audio.wav", "mimeType": "audio/wav" }, "speed": 1, "voice": "af_bella", "provider": "kokoro-tts" } ``` --- _Generated: 2026-08-02T14:30:57.556Z_