> ## Documentation Index
> Fetch the complete documentation index at: https://docs.venice.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Kokoro Text to Speech API

> Venice 上的 Kokoro Text to Speech API：文本转语音，提供 54 种音色，每 1M 字符 $3.50（约每分钟 $0.0029）。私有运行，零数据保留。

> [accordion] 纯文本规格说明
>
> ## Kokoro Text to Speech API
>
> Kokoro Text to Speech 是 hexgrad 推出的文本转语音模型，在 Venice API 上以 `tts-kokoro` 提供。以私有方式运行，零数据保留。
>
> ### Kokoro Text to Speech API 价格
>
> | 模型 ID | 变体 | 隐私 | 价格 |
> | - | - | - | - |
> | `tts-kokoro` | 标准 | Private | \$3.50 / 1M 字符 |
>
> ### Kokoro Text to Speech 规格
>
> | 规格 | 值 |
> | - | - |
> | 提供商 | hexgrad |
> | 发布日期 | 2025年3月19日 |
> | 隐私 | Private |
> | 状态 | 稳定 |
> | 开放权重 | 是 |
> | 音色 | 54 |
> | 格式 | mp3, opus, aac, flac, wav, pcm |
>
> ### 如何使用 Kokoro Text to Speech API
>
> 使用 `"model": "tts-kokoro"` 和您的 API 密钥向 `POST https://api.venice.ai/api/v1/audio/speech` 发送请求。
>
> ```bash theme={"system"}
> curl https://api.venice.ai/api/v1/audio/speech \
>   -H "Authorization: Bearer $VENICE_API_KEY" \
>   -H "Content-Type: application/json" \
>   -d '{
>     "model": "tts-kokoro",
>     "input": "Private AI for everyone.",
>     "voice": "af_alloy",
>     "response_format": "mp3"
>   }' --output speech.mp3
> ```
>
> ### 相关模型
>
> * [Inworld TTS-1.5 Max API](https://docs.venice.ai/zh/models/inworld-tts-1-5-max.md): \$12.50 / 1M 字符
> * [xAI TTS v1 API](https://docs.venice.ai/zh/models/xai-tts-v1.md): \$18.75 / 1M 字符
> * [Chatterbox HD (Resemble AI) API](https://docs.venice.ai/zh/models/chatterbox-hd.md): \$50.00 / 1M 字符
> * [Gradium TTS API](https://docs.venice.ai/zh/models/gradium-tts.md): \$47.50 / 1M 字符


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.