Skip to main content
Qwen TTS turns text into natural speech, with a choice of voices, speed, and a one-sentence instruction for tone and emotion. The endpoint is compatible with OpenAI’s speech API and returns the audio file directly.
  • Model ID: qwen-audio-3.1-tts-plus
  • Endpoint: POST https://refillapi.com/v1/audio/speech (synchronous)
  • Price

Request

string
required
qwen-audio-3.1-tts-plus
string
required
Text to speak. Up to 20,000 billable characters per request.
string
Voice ID from the table below (case-sensitive). Omitted, or an OpenAI voice name such as alloy, uses the default longanhuan_v3.1.
string
default:"mp3"
mp3, wav, pcm or opus.
number
default:"1"
0.5–2.
string
Tone, emotion or accent in plain words, e.g. “cheerful and energetic”.
number
default:"50"
0–100.
number
default:"1"
0.5–2.
integer
8000, 12000, 16000, 22050, 24000, 44100 or 48000.
string
Language hint, e.g. en, zh, ja.

Voices

Other voice IDs return 400 with the list of valid voices, and are not billed.

Example

Billing

Per character synthesized, priced per 10,000 characters. Latin letters, digits, punctuation and spaces count as 1; each Chinese character, Japanese kana or Korean character counts as 2. Failed requests are not billed. Streaming (stream_format: "sse") is not supported; the audio is returned in one piece.