Riferimento API di Qwen3 TTS
Voce open source con tono e ritmo impostati a parole
Con una sola chiave API di PopNow chiami Qwen3 TTS dal tuo codice. Qui trovi gli ID del modello da inviare, ogni campo di input accettato, quanti crediti costa ogni richiesta e una richiesta da incollare nel terminale così com’è.
Le descrizioni dei parametri provengono dallo schema di input del modello e sono disponibili solo in inglese.
In sintesi
- Sviluppato da
- Alibaba
- Risultato
- Audio
- Da
- 10.2 crediti ogni 1.000 caratteri ($0.102)
- ID del modello
1 credito = 0,01 $. All’accettazione l’attività trattiene l’importo massimo possibile e alla fine addebita il consumo reale, arrotondato al credito superiore; il resto viene sbloccato. Le attività non riuscite non vengono addebitate. Per conoscere la cifra esatta prima di eseguire, chiama POST /api/v1/jobs/quote.
Sintesi vocale
alibaba/qwen-3-tts/text-to-speech
Prezzo
| Opzione | Crediti (ogni 1.000 caratteri) | Dollari USA |
|---|---|---|
Predefinito | 10.2 | $0.102 |
Parametri
| Campo | Tipo | Predefinito | Valori ammessi | A cosa serve |
|---|---|---|---|---|
textObbligatorio | string | — | fino a 2000 caratteri | The words to be spoken, exactly as written. Billed per 1,000 characters, minimum 100. |
voice_idFacoltativo | string | Serena | Serena, Vivian, Uncle_Fu, Dylan, Eric, Ryan, Aiden, Ono_Anna, Sohee | Preset voice. Each has a fixed character. |
instructionsFacoltativo | string | — | fino a 1000 caratteri | How to read the text: tone, emotion or pace. Not spoken and not billed. |
languageFacoltativo | string | auto | auto, zh, en, de, fr, es, it, pt, ru, ja, ko | Language of the reading. auto detects it from the text. |
Richiesta di esempio
Questa richiesta funziona così com’è; i campi omessi usano il valore predefinito. Prima salva la tua chiave in POPNOW_API_KEY.
curl -X POST "https://api.popnow.ai/api/v1/jobs/createTask" \
-H "Authorization: Bearer $POPNOW_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"model": "alibaba/qwen-3-tts/text-to-speech",
"input": {
"text": "Hi there! This voice was created with the PopNow API in just a few seconds."
}
}'La risposta contiene subito un taskId. Recupera il risultato con GET /api/v1/jobs/recordInfo, oppure aggiungi callBackUrl per ricevere una notifica.
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=TASK_ID_FROM_CREATE_TASK" \
-H "Authorization: Bearer $POPNOW_API_KEY"
