Gemini 3.8 Flash-Lite TTS API-Referenz
Schnelle, effiziente Sprachausgabe mit 70 Stimmen
Mit einem einzigen PopNow-API-Schlüssel rufst du Gemini 3.8 Flash-Lite TTS 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
- Ergebnis
- Audio
- Ab
- $0.00021 USD pro Sekunde Ergebnis
- Typische Dauer
- etwa 26 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
google/gemini-3.8-flash-lite-tts/text-to-speech
Preis
| Option | USD |
|---|---|
Standard | $0.00021 pro Sekunde Ergebnis |
Parameter
| Feld | Typ | Standardwert | Erlaubt | Bedeutung |
|---|---|---|---|---|
textOptional | string | — | bis zu 10.000 Zeichen | Words to speak, up to 10,000 characters. Native inline cues include <laugh>, <sigh> and <short pause>. |
dialogueOptional | array<object> | — | bis zu 20 Einträge | A scripted conversation, used instead of text: each line names a speaker from speakers. |
speakersOptional | array<object> | — | bis zu 2 Einträge | The cast for dialogue: one or two voices, each with a name the lines refer to. |
voice_idOptional | string | Kore | Achernar, Achird, Algenib, Algieba, Alnilam, Aoede, Arlo, Autonoe, Bodi, Brio, Callirrhoe, Charon, Cleo, Cruz, … (+56) | Prebuilt voice that reads the text. Each voice has a fixed character. |
styleOptional | string | — | whisper, empathetic, vocal_smile, newscaster, promo_hype, deadpan | Overall manner of the reading. Omit it to use the voice's own default manner. |
paceOptional | string | — | natural, rapid_fire, the_drift, staccato | Rhythm of the reading. Omit it to keep the voice's own rhythm. |
accentOptional | string | — | neutral, american_general, american_valley, american_south, british_rp, british_brixton, transatlantic, australian | English accent used for the reading. |
instructionsOptional | string | — | bis zu 1.000 Zeichen | How to read the text: mood, distance from the microphone, who is listening. Shapes the delivery and is not spoken. |
sceneOptional | string | — | bis zu 500 Zeichen | Where and to whom the words are spoken. Shapes the delivery and is not spoken. |
filler_wordsOptional | boolean | false | — | Allow filler words in a two-speaker conversation. Has no effect on single-speaker requests. |
temperatureOptional | number | — | 0 bis 2 | Variation between takes; higher is less predictable. |
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": "google/gemini-3.8-flash-lite-tts/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"
