Qwen-Audio 3.1 TTS Flash API-Referenz
Schnelle Sprache in vielen Sprachen aus 70 Stimmen
Mit einem einzigen PopNow-API-Schlüssel rufst du Qwen-Audio 3.1 TTS Flash aus deinem eigenen Code auf. Hier findest du die Modell-IDs, jedes Eingabefeld, die Kosten pro Anfrage in USD und eine Anfrage, die du direkt ins Terminal kopieren kannst.
Die Parameterbeschreibungen stammen aus dem Eingabeschema des Modells und sind nur auf Englisch verfügbar.
Auf einen Blick
- Hersteller
- Alibaba
- Ergebnis
- Audio
- Ab
- $0.00285 USD pro 1.000 Zeichen
- Typische Dauer
- etwa 23 s
Die Preise werden in USD angezeigt und von deinem PopNow-Guthaben abgebucht. Bei Annahme wird der Höchstbetrag reserviert, nach Abschluss der tatsächliche Verbrauch abgerechnet und der Rest freigegeben. Fehlgeschlagene Tasks kosten nichts. Ein genaues Angebot erhältst du vorab über POST /api/v1/jobs/quote.
Text zu Sprache
alibaba/qwen-audio-3.1-tts-flash/text-to-speech
Preis
| Option | USD |
|---|---|
Standard | $0.00285 pro 1.000 Zeichen |
Parameter
| Feld | Typ | Standardwert | Erlaubt | Bedeutung |
|---|---|---|---|---|
textPflicht | string | — | bis zu 10.000 Zeichen | The words to speak. Billed per 1,000 characters. Turn on enable_ssml to use SSML tags. |
voice_idOptional | string | Emily_v3.1 | longanhuan_v3.1, longanlingxin_v3.1, longanfengyue_v3.1, xunanchuan_v3.1, Emily_v3.1, Luna_v3.1, Eric_v3.1, Luca_v3.1, Abby_v3.1, Annie_v3.1, Ava_v3.1, Beth_v3.1, Betty_v3.1, Cally_v3.1, … (+56) | Preset voice for this model. |
instructionsOptional | string | — | bis zu 1.000 Zeichen | How to read the text: emotion, tone, persona, pace or dialect. Not spoken and not billed. |
languageOptional | string | auto | auto, zh, en, ja, ko, fr, de, pt, it, vi, id | Reading language hint, or auto to detect it from the text. |
speedOptional | number | 1 | 0.5 bis 2 | Speaking speed from 0.5 to 2. |
pitchOptional | number | 1 | 0.5 bis 2 | Pitch from 0.5 to 2. |
volumeOptional | integer | 50 | 0 bis 100 | Output volume from 0 to 100. |
output_formatOptional | string | mp3 | mp3, wav, pcm, opus | Audio encoding. pcm is raw 16-bit audio without a file header. |
sample_rateOptional | integer | 24000 | 8000, 12000, 16000, 22050, 24000, 44100, 48000 | Sample rate in Hz. |
bitrateOptional | integer | — | 32000, 64000, 96000, 128000, 192000, 256000 | Opus bit rate in bits per second. Only applies to opus. |
enable_ssmlOptional | boolean | false | — | Read text as SSML markup. |
seedOptional | integer | — | 0 bis 65535 | Random seed for controlled comparisons. |
Beispielanfrage
Diese Anfrage läuft so, wie sie ist; weggelassene Felder behalten ihren Standardwert. Leg deinen Schlüssel vorher in POPNOW_API_KEY ab.
curl -X POST "https://api.popnow.ai/api/v1/jobs/createTask?wait=60" \
-H "Authorization: Bearer $POPNOW_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"model": "alibaba/qwen-audio-3.1-tts-flash/text-to-speech",
"input": {
"text": "Hi there! This voice was created with the PopNow API in just a few seconds."
}
}'Die Antwort enthält sofort eine taskId. Das Ergebnis holst du mit GET /api/v1/jobs/recordInfo ab – oder du gibst callBackUrl mit und wirst benachrichtigt.
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=TASK_ID_FROM_CREATE_TASK" \
-H "Authorization: Bearer $POPNOW_API_KEY"
