PopNowAPI-Doku
Hauptinhalt

Gemini 3.8 Flash-Lite TTS API-Referenz

Schnelle, leichte Sprachausgabe mit 30 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 Credits 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
Google
Ergebnis
Audio
Ab
0.03 Credits pro Sekunde Ergebnis ($0.0003)
Typische Dauer
etwa 11 s

1 Credit = 0,01 $. Bei Annahme reserviert ein Task den höchstmöglichen Betrag und rechnet am Ende den tatsächlichen Verbrauch ab, auf ganze Credits aufgerundet; der Rest wird freigegeben. Fehlgeschlagene Tasks kosten nichts. Den genauen Betrag vorab liefert POST /api/v1/jobs/quote.

Text zu Sprache

google/gemini-3.8-flash-lite-tts/text-to-speech

Preis

OptionCredits (pro Sekunde Ergebnis)US-Dollar
Standard0.03$0.0003

Parameter

FeldTypStandardwertErlaubtBedeutung
textOptionalstring—bis zu 5.000 ZeichenThe words to be spoken, exactly as written. Spell out sounds such as sighs or laughter; bracketed cues may be read aloud.
dialogueOptionalarray<object>—bis zu 20 EinträgeA scripted conversation, used instead of text: each line names a speaker from speakers.
speakersOptionalarray<object>—bis zu 2 EinträgeThe cast for dialogue: one or two voices, each with a name the lines refer to.
voice_idOptionalstringKoreAchernar, Achird, Algenib, Algieba, Alnilam, Aoede, Autonoe, Callirrhoe, Charon, Despina, Enceladus, Erinome, Fenrir, Gacrux, … (+16)Prebuilt voice that reads the text. Each voice has a fixed character.
styleOptionalstring—whisper, empathetic, vocal_smile, newscaster, promo_hype, deadpanOverall manner of the reading. Omit it to use the voice's own default manner.
paceOptionalstring—natural, rapid_fire, the_drift, staccatoRhythm of the reading. Omit it to keep the voice's own rhythm.
accentOptionalstring—neutral, american_general, american_valley, american_south, british_rp, british_brixton, transatlantic, australianEnglish accent used for the reading.
instructionsOptionalstring—bis zu 1.000 ZeichenHow to read the text: mood, distance from the microphone, who is listening. Shapes the delivery and is not spoken.
sceneOptionalstring—bis zu 500 ZeichenWhere and to whom the words are spoken. Shapes the delivery and is not spoken.
temperatureOptionalnumber—0 bis 2Variation 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.

POST /api/v1/jobs/createTask?wait=60
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.

GET /api/v1/jobs/recordInfo
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=TASK_ID_FROM_CREATE_TASK" \
  -H "Authorization: Bearer $POPNOW_API_KEY"

Weiter geht’s

Auf dieser Seite