Back to models
Qwen3-TTS-12Hz-1.7B-Base
Alibaba Qwen's 1.7B open-weight text-to-speech base model powered by a 12Hz multi-codebook neural codec, delivering 24kHz streaming audio synthesis, rapid three-second voice cloning, and custom speaker fine-tuning across 10 languages.
What you can do
- 3-second zero-shot voice clone
- Custom speaker TTS fine-tuning
- Multilingual audiobook narration
Input & output
- Input
- Target synthesis text plus ~3s reference audio clip and reference transcript
- Output
- 24kHz mono speech waveform matching the reference voice
Try a prompt like this
Reference transcript: "Welcome to our autonomous cloud platform." Target text: "System deployment completed successfully across all GPU nodes."
Things to know
Apache-2.0 open weights (~5GB VRAM in BF16 including Qwen3-TTS-Tokenizer-12Hz); obtain explicit speaker consent when cloning real human voices.
All listed models publish open weights for self-hosted deployment; check each repository's license before commercial use.
Call it through the API
The platform exposes an OpenAI-compatible API. Use an official SDK or any HTTP client, then set the gateway URL, API key, and model ID.
- Endpoint
POST/v1/audio/speech- Model repo ID
Qwen/Qwen3-TTS-12Hz-1.7B-Base
import os
from openai import OpenAI
client = OpenAI(
base_url=os.environ["API_BASE_URL"],
api_key=os.environ["API_KEY"],
)
speech = client.audio.speech.create(
model="Qwen/Qwen3-TTS-12Hz-1.7B-Base",
voice="default",
input="Reference transcript: \"Welcome to our autonomous cloud platform.\" Target text: \"System deployment completed successfully across all GPU nodes.\"",
)
speech.write_to_file("speech.mp3")Before running a sample, set the API_BASE_URL (gateway URL) and API_KEY environment variables.
Read the full API guide