# Qwen TTS — Zapi reference > Text-to-speech via Qwen TTS — 7 voice characters, instant audio URL. **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/qwen-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 --- ## Qwen TTS **Category:** ai · **Slug:** `qwen-tts` **Detail page:** https://zpi.web.id/api/ai/qwen-tts Text-to-speech via Qwen TTS — 7 voice characters, instant audio URL. **Tags:** ai, tts, qwen ### Synthesize - **Method:** `POST` - **Endpoint:** `https://api.zpi.web.id/v1/ai:qwen-tts/synthesize` - **Cache TTL:** 3600s **Parameters:** | Name | Type | Location | Required | Description | |------|------|----------|----------|-------------| | `text` | string | body | yes | Teks yang mau di-convert ke audio. Bilingual: Mandarin + English boleh dicampur dalam satu kalimat. Min 1 char, max 1000 char. | | `voice` | enum(Dylan|Sunny|Jada|Cherry|Ethan|Serena|Chelsie) | body | no | Voice character (7 pilihan). Cherry/Ethan/Serena/Chelsie = standard bilingual (Mandarin+English). Dialek regional: Dylan = Beijing, Jada = Shanghai, Sunny = Sichuan. Default Cherry. | **cURL:** ```bash curl -X POST "https://api.zpi.web.id/v1/ai:qwen-tts/synthesize" \ -H "x-api-key: YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "text": "你好,欢迎来到 Zapi。Hello, welcome to Zapi public API.", "voice": "Cherry" }' ``` **JavaScript / TypeScript:** ```javascript const res = await fetch("https://api.zpi.web.id/v1/ai:qwen-tts/synthesize", { method: "POST", headers: { "x-api-key": process.env.ZAPI_KEY, "Content-Type": "application/json" }, body: JSON.stringify({ "text": "你好,欢迎来到 Zapi。Hello, welcome to Zapi public API.", "voice": "Cherry" }) }); const data = await res.json(); ``` **Python:** ```python import requests r = requests.post("https://api.zpi.web.id/v1/ai:qwen-tts/synthesize", headers={"x-api-key": "YOUR_API_KEY"}, json={ "text": "你好,欢迎来到 Zapi。Hello, welcome to Zapi public API.", "voice": "Cherry" }) data = r.json() ``` **Example response:** ```json { "text": "你好,欢迎来到 Zapi。Hello, welcome to Zapi public API.", "audio": { "url": "https://qwen-qwen-tts-demo.hf.space/gradio_api/file=/tmp/gradio/ad91b8988c1e2c765491db4942da4607b8513020f99ca4971decb981c40f8da0/tmp1zzfppff.wav", "mimeType": "audio/wav" }, "voice": "Cherry", "provider": "qwen-tts" } ``` --- _Generated: 2026-08-02T14:30:57.554Z_