Qwen 3 TTS - Text to Speech [1.7B]
alibaba/qwen-3-tts/1.7bQwen 3 Tts 1.7b is Alibaba's text-to-speech AI model. Generate human-like voiceovers with expressive intonation, multilingual support, and customizable voice characteristics.
- Preço base
- $0.0001USD / execução
- Execução
- async
- Tipo de modelo
- audio
- Campos de entrada
- 15
Testar o modelo
Playground
O que você gostaria de fazer em seguida?
Exemplos
Selecione um exemplo para carregar as entradas e o resultado no playground.
- Abrir resultado ↗
Entrada
{ "prompt": "Very happy." }
Cartão do modelo
Especificações
Preços
- Preço base
- $0.0001 / execução
Contexto e modalidades
- Entrada
- Definido pelo schema
- Saída
- audio
Capacidades
- Chat
- Não suportado
- Visão
- Não suportado
- Raciocínio
- Não suportado
- Saída estruturada
- Não suportado
- Chamada de função
- Não suportado
- Entrada de áudio
- Não suportado
Acesso
- Provedor
- Alibaba
- ID do modelo
- alibaba/qwen-3-tts/1.7b
- Execução
- async
- URL base
- https://api.sandbase.ai
- API
- Unified Run API
- Endpoint
- /v1/run
README da API
Qwen 3 TTS - Text to Speech [1.7B]
Qwen 3 TTS 1.7B, the open-weights Qwen speech model: text to speech in 10 languages with nine preset voices, or a cloned voice from a speaker-embedding file. The 1.7B model gives more natural prosody than 0.6B.
Fields
| Field | Type | Default | Notes |
|---|---|---|---|
prompt | string, required | — | Text to speak. |
text | string | — | Alias of prompt; if both are sent, text is used. |
subtalker_temperature | number 0–1 | 0.9 | Sub-model temperature. |
speaker_voice_embedding_file_url | string | — | Optional cloned-voice embedding (safetensors) to use instead of a preset voice. |
repetition_penalty | number | 1.05 | Reduces repeated sounds. |
language | Auto / English / Chinese / Spanish / French / German / Italian / Japanese / Korean / Portuguese / Russian | Auto | Spoken language; Auto detects it. |
subtalker_top_p | number 0–1 | 1 | Sub-model sampling setting. |
top_p | number 0–1 | 1 | Sampling setting. |
reference_text | string | — | Transcript used when the embedding was created; improves cloned-voice quality. |
top_k | integer | 50 | Sampling setting; leave at default unless delivery is unstable. |
subtalker_top_k | integer | 50 | Sub-model sampling setting. |
temperature | number 0–1 | 0.9 | Higher values give more varied delivery. |
voice | Vivian / Serena / Uncle_Fu / Dylan / Eric / Ryan / Aiden / Ono_Anna / Sohee | — | Preset voice; ignored when a speaker embedding is supplied. |
max_new_tokens | integer 1–8192 | 200 | Caps the generated audio length; raise it for long text. |
subtalker_dosample | boolean | true | Sampling switch for the acoustic sub-model. |
Billing
$0.09 per 1,000 characters of input text, billed per character.
| Text | Price |
|---|---|
| 100 characters | $0.009 |
| 1,000 characters | $0.09 |
| 5,000 characters | $0.45 |
Failed runs are not charged.
Prompting
- Use punctuation to control pauses; break long passages into paragraphs.
- Pick a voice whose primary language matches the text.
Limits
max_new_tokens(default 200) caps the audio length; long text needs a higher value.
Also on SandBase
Related: alibaba/qwen-3-tts/0.6b.
Comece a construir
Envie sua primeira solicitação
Endpoint compatível com OpenAI com autenticação unificada e rastreamento de uso.
# The quoted heredoc keeps Unicode and shell metacharacters unchanged.
result=$(curl --fail-with-body --silent \
-X POST "https://api.sandbase.ai/v1/run" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
--data-binary @- <<'SANDBASE_JSON'
{
"model": "alibaba/qwen-3-tts/1.7b",
"text": "I am solving the equation: x = [-b ± √(b²-4ac)] / 2a? Nobody can — it's a disaster (◍•͈⌔•͈◍), very sad!",
"top_k": 50,
"top_p": 1,
"voice": "Vivian",
"prompt": "Very happy.",
"language": "English",
"temperature": 0.9,
"max_new_tokens": 200,
"reference_text": "Okay. Yeah. I resent you. I love you. I respect you. But you know what? You blew it! And it is all thanks to you.",
"subtalker_top_k": 50,
"subtalker_top_p": 1,
"repetition_penalty": 1.05,
"subtalker_dosample": true,
"subtalker_temperature": 0.9,
"speaker_voice_embedding_file_url": "https://static.sandbase.ai/examples/alibaba/qwen-3-tts/1.7b/output_url_0.safetensors"
}
SANDBASE_JSON
)
run_id=$(printf '%s' "$result" | jq -r .id)
for attempt in $(seq 1 120); do
status=$(printf '%s' "$result" | jq -r .status)
case "$status" in completed|failed|timeout) break ;; esac
sleep 2
result=$(curl --fail-with-body --silent \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
"https://api.sandbase.ai/v1/run/$run_id")
done
status=$(printf '%s' "$result" | jq -r .status)
[ "$status" = completed ] || { echo "Generation ended: $status" >&2; exit 1; }
printf '%s\n' "$result"Esquema de entrada
15 parâmetros · 1 obrigatórios · 14 opcionais
| Parâmetro | Tipo | Obrigatório | Descrição |
|---|---|---|---|
prompt | string | Obrigatório | Optional prompt to guide the style of the generated speech. This prompt will be ignored if a speaker embedding is provided. |
text | string | Opcional | The text to be converted to speech. |
top_k | integer | Opcional | Top-k sampling parameter. · Mín.: 0 · Padrão: 50 |
top_p | number | Opcional | Top-p sampling parameter. · Mín.: 0 · Máx.: 1 · Padrão: 1 |
voice | string | Opcional | The voice to be used for speech synthesis, will be ignored if a speaker embedding is provided. Check out the **[documentation](https://github.com/QwenLM/Qwen3-TTS/tree/main?tab=readme-ov-file#custom-voice-generate)** for each voice's details and which language they primarily support. · Opções: Vivian, Serena, Uncle_Fu, Dylan, Eric, Ryan, Aiden, Ono_Anna, Sohee VivianSerenaUncle_FuDylanEricRyanAidenOno_AnnaSohee |
language | string | Opcional | The language of the voice. · Opções: Auto, English, Chinese, Spanish, French, German, Italian, Japanese, Korean, Portuguese, Russian · Padrão: "Auto" AutoEnglishChineseSpanishFrenchGermanItalianJapaneseKoreanPortugueseRussian |
temperature | number | Opcional | Sampling temperature; higher => more random. · Mín.: 0 · Máx.: 1 · Padrão: 0.9 |
max_new_tokens | integer | Opcional | Maximum number of new codec tokens to generate. · Mín.: 1 · Máx.: 8192 · Padrão: 200 |
reference_text | string | Opcional | Optional reference text that was used when creating the speaker embedding. Providing this can improve synthesis quality when using a cloned voice. |
subtalker_top_k | integer | Opcional | Top-k for sub-talker sampling. · Mín.: 0 · Padrão: 50 |
subtalker_top_p | number | Opcional | Top-p for sub-talker sampling. · Mín.: 0 · Máx.: 1 · Padrão: 1 |
repetition_penalty | number | Opcional | Penalty to reduce repeated tokens/codes. · Mín.: 0 · Padrão: 1.05 |
subtalker_dosample | boolean | Opcional | Sampling switch for the sub-talker. · Padrão: true |
subtalker_temperature | number | Opcional | Temperature for sub-talker sampling. · Mín.: 0 · Máx.: 1 · Padrão: 0.9 |
speaker_voice_embedding_file_url | string | Opcional | URL to a speaker embedding file in safetensors format, from `fal-ai/qwen-3-tts/clone-voice` endpoint. If provided, the TTS model will use the cloned voice for synthesis instead of the predefined voices. |
Esquema de saída
| Campo | Tipo | Descrição |
|---|---|---|
id | string | Identificador exclusivo da tarefa de geração |
status | string | Status da tarefa: pending, running, completed, failed, timeout |
model | string | Modelo usado para a geração |
outputs | array | Vetor de itens de saída |
outputs[].url | string | URL do artefato gerado |
outputs[].content_type | string | Tipo MIME (por exemplo, image/png, video/mp4) |
error | object | null | Detalhes do erro se houver falha, null em caso de sucesso |
error.type | string | Código do tipo de erro legível por máquina |
error.message | string | Descrição do erro legível por humanos |
Fluxo assíncrono
Este modelo é executado de forma assíncrona. Envie uma solicitação e depois faça polling pelo resultado.
- Enviar: faça POST para /v1/run e leia o
idretornado. - Fazer polling: faça GET em /v1/run/{id} até o status ser
completed,failedoutimeout. - Recuperar: leia
outputsda resposta concluída.
Escolha seu modelo
Comparar modelos
| Modelo | Tipo | Preço padrão | Lançado |
|---|---|---|---|
Qwen 3 TTS - Text to Speech [1.7B]Este modelo Alibaba | Áudio | $0.00 / execução | 26 de jan. de 2026 |
Alibaba | Áudio | $0.05 / execução | 29 de jul. de 2026 |
Alibaba | Áudio | $0.09 / execução | 26 de jan. de 2026 |
Alibaba | Áudio | $0.00 / execução | 26 de jan. de 2026 |
Alibaba | Áudio | $0.00 / execução | 26 de jan. de 2026 |
Alibaba | Áudio | $0.00 / execução | 26 de jan. de 2026 |
Perguntas
FAQ
Como faço chamadas ao Alibaba Qwen 3 TTS - Text to Speech [1.7B] pela SandBase?
Crie uma chave de API da SandBase e depois envie solicitações com o ID do modelo "alibaba/qwen-3-tts/1.7b" para Unified Run API (/v1/run) em https://api.sandbase.ai. Os exemplos de requisição nesta página mostram a carga exata.
Preciso de uma conta Alibaba separada?
Não. Uma única chave de API e saldo da SandBase dão acesso a Alibaba Qwen 3 TTS - Text to Speech [1.7B] e aos outros modelos do catálogo; você não precisa se cadastrar separadamente no Alibaba.
