zapi.
APIsPricingDocsMCP
APIsPricingDocsMCPSign in
zapi.
APIsPricingDocsMCP
APIsPricingDocsMCPSign in
On this page
  • Playground
  • Code examples
  • Full reference
  • Related APIs
Artificial Intelligence/Kokoro TTS
Logo Kokoro TTS

Kokoro TTS

High-quality multilingual text-to-speech synthesis.

Endpoints
1
Requests
9
Updated
2 months ago
For LLMs
llms.txt
Endpoint health2 hours ago
  • synthesizefailed the last check
0/1 passingdaily 01:00 WIB

Playground

1 endpoint
POST/v1/ai:kokoro-tts/synthesize5m cache3 paramschecking key…
Parameters
textstringrequired
text/plain

Text untuk di-convert ke speech. Optimal untuk teks English (US/UK accent). Max 2000 chars.

voiceenum

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.

speednumber

Kecepatan bicara (multiplier). Range 0.5 (lambat) - 2.0 (cepat). Default 1.0.

·
Response
EXAMPLE
{
  "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"
}

Code examples

Synthesize
zpi-sdkrecommended
// npm i zpi-sdk
import { ZpiClient } from "zpi-sdk";

const client = new ZpiClient({ apiKey: "zpi_xxxxxxxxxxxxxxxxxxxxxxxx" });

const data = await client.run("ai:kokoro-tts", "synthesize", {
  "text": "Hello! This is a short speech sample rendered in real time.",
  "voice": "af_heart",
  "speed": 1
});
console.log(data);
Full SDK reference →
request.sh
curl -X POST "https://api.zpi.web.id/v1/ai:kokoro-tts/synthesize" \
  -H "x-api-key: zpi_xxxxxxxxxxxxxxxxxxxxxxxx" \
  -H "content-type: application/json" \
  --data '{"text":"Hello! This is a short speech sample rendered in real time.","voice":"af_heart","speed":1}'

Full reference

1 endpoint · plain text
POSTSynthesize/v1/ai:kokoro-tts/synthesizeGenerate speech audio from text input.

Parameters

textstringrequiredin body
Text untuk di-convert ke speech. Optimal untuk teks English (US/UK accent). Max 2000 chars.
voiceenumoptionalin body
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. Values: af_heart, af_bella, af_nicole, af_aoede, af_kore, af_sarah, af_nova, af_sky, af_alloy, af_jessica, af_river, af_jadzia, 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.
speednumberoptionalin body
Kecepatan bicara (multiplier). Range 0.5 (lambat) - 2.0 (cepat). Default 1.0.

Request

curl -X POST "https://api.zpi.web.id/v1/ai:kokoro-tts/synthesize" \
  -H "x-api-key: zpi_xxxxxxxxxxxxxxxxxxxxxxxx"

Example response

{
  "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"
}

Related APIs

More in ai

Copilot AI

ai/copilot

Microsoft Copilot — chat completion OpenAI-compatible, support streaming SSE

816 calls·10m cache

ChatGPT (chatgpt.com)

ai/chatgpt

ChatGPT (mode anonim, tanpa login) dari OpenAI. Endpoint kompatibel OpenAI Chat Completions (stream & non-stream).

298 calls·no cache

Chatex

ai/chatex

Chatex chat — OpenAI-compatible chat completions.

208 calls·no cache

Felo AI

ai/felo

AI search assistant dengan web real-time — OpenAI-compatible, support streaming, return sumber referensi.

200 calls·no cache

Dolphin AI

ai/dolphin

Dolphin 24B uncensored chat — chat completion OpenAI-compatible, support streaming SSE

77 calls·10m cache

Google AI (g.ai)

ai/google-aimode

Asisten penelusuran AI dari Google (AI Mode / g.ai) — jawaban grounded ke web realtime dengan sitasi. OpenAI-compatible chat completions.

37 calls·no cache
Browse APIsPricingDocsMCP serverGet an API key
zapi.One key, one response shape.
TermsPrivacyCookiesAUPRefunds© 2026