PopNowDocs API
Contenu principal

Référence API de Gemini 3.8 Flash TTS

Une voix expressive qui suit les indications comme [laughing]

Une seule clé API PopNow suffit pour appeler Gemini 3.8 Flash TTS depuis votre code. Vous trouverez ici les identifiants de modèle à envoyer, chaque champ d’entrée accepté, le coût d’une requête en USD et une requête à coller telle quelle dans un terminal.

Les descriptions des paramètres proviennent du schéma d’entrée du modèle et ne sont disponibles qu’en anglais.

En bref

Éditeur
Google
Résultat
Audio
À partir de
$0.00032 USD par seconde produite
Durée habituelle
environ 22 s

Les prix sont affichés en USD et les frais sont déduits de votre solde PopNow. Le montant maximal est réservé à la réception de la tâche, puis la consommation réelle est facturée à la fin et le solde libéré. Les tâches en échec ne sont pas facturées. Obtenez un devis exact avant de lancer avec POST /api/v1/jobs/quote.

Synthèse vocale

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

Prix

OptionUSD
Par défaut$0.00032 par seconde produite

Paramètres

ChampTypeValeur par défautValeurs admisesRôle
textFacultatifstring—jusqu’à 10 000 caractèresWords to speak, up to 10,000 characters. Native inline cues include <laugh>, <sigh> and <short pause>.
dialogueFacultatifarray<object>—jusqu’à 20 élémentsA scripted conversation, used instead of text: each line names a speaker from speakers.
speakersFacultatifarray<object>—jusqu’à 2 élémentsThe cast for dialogue: one or two voices, each with a name the lines refer to.
voice_idFacultatifstringKoreAchernar, 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.
styleFacultatifstring—whisper, empathetic, vocal_smile, newscaster, promo_hype, deadpanOverall manner of the reading. Omit it to use the voice's own default manner.
paceFacultatifstring—natural, rapid_fire, the_drift, staccatoRhythm of the reading. Omit it to keep the voice's own rhythm.
accentFacultatifstring—neutral, american_general, american_valley, american_south, british_rp, british_brixton, transatlantic, australianEnglish accent used for the reading.
instructionsFacultatifstring—jusqu’à 1 000 caractèresHow to read the text: mood, distance from the microphone, who is listening. Shapes the delivery and is not spoken.
sceneFacultatifstring—jusqu’à 500 caractèresWhere and to whom the words are spoken. Shapes the delivery and is not spoken.
filler_wordsFacultatifbooleanfalse—Allow filler words in a two-speaker conversation. Has no effect on single-speaker requests.
temperatureFacultatifnumber—de 0 à 2Variation between takes; higher is less predictable.

Exemple de requête

Cette requête fonctionne telle quelle ; les champs omis gardent leur valeur par défaut. Placez d’abord votre clé dans POPNOW_API_KEY.

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-tts/text-to-speech",
  "input": {
    "text": "Hi there! This voice was created with the PopNow API in just a few seconds."
  }
}'

La réponse contient tout de suite un taskId. Récupérez le résultat avec GET /api/v1/jobs/recordInfo, ou ajoutez callBackUrl pour être prévenu.

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"

Pour aller plus loin

Sur cette page