PopNowDocs API
Contenuto principale

Riferimento API di Gemini 3.8 Flash-Lite TTS

Sintesi vocale veloce e leggera, 70 voci

Con una sola chiave API di PopNow chiami Gemini 3.8 Flash-Lite TTS dal tuo codice. Qui trovi gli ID del modello da inviare, ogni campo di input accettato, quanto costa ogni richiesta in USD 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
Google
Risultato
Audio
Da
$0.00021 USD per secondo generato
Tempo tipico
circa 26 s

I prezzi sono indicati in USD e gli importi vengono addebitati sul tuo saldo PopNow. Alla ricezione viene riservato il massimo importo; al termine viene addebitato il consumo effettivo e il resto viene sbloccato. Le attività fallite non vengono addebitate. Per un preventivo esatto prima di eseguire, usa POST /api/v1/jobs/quote.

Sintesi vocale

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

Prezzo

OpzioneUSD
Predefinito$0.00021 per secondo generato

Parametri

CampoTipoPredefinitoValori ammessiA cosa serve
textFacoltativostring—fino a 10.000 caratteriWords to speak, up to 10,000 characters. Native inline cues include <laugh>, <sigh> and <short pause>.
dialogueFacoltativoarray<object>—fino a 20 elementiA scripted conversation, used instead of text: each line names a speaker from speakers.
speakersFacoltativoarray<object>—fino a 2 elementiThe cast for dialogue: one or two voices, each with a name the lines refer to.
voice_idFacoltativostringKoreAchernar, 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.
styleFacoltativostring—whisper, empathetic, vocal_smile, newscaster, promo_hype, deadpanOverall manner of the reading. Omit it to use the voice's own default manner.
paceFacoltativostring—natural, rapid_fire, the_drift, staccatoRhythm of the reading. Omit it to keep the voice's own rhythm.
accentFacoltativostring—neutral, american_general, american_valley, american_south, british_rp, british_brixton, transatlantic, australianEnglish accent used for the reading.
instructionsFacoltativostring—fino a 1000 caratteriHow to read the text: mood, distance from the microphone, who is listening. Shapes the delivery and is not spoken.
sceneFacoltativostring—fino a 500 caratteriWhere and to whom the words are spoken. Shapes the delivery and is not spoken.
filler_wordsFacoltativobooleanfalse—Allow filler words in a two-speaker conversation. Has no effect on single-speaker requests.
temperatureFacoltativonumber—da 0 a 2Variation between takes; higher is less predictable.

Richiesta di esempio

Questa richiesta funziona così com’è; i campi omessi usano il valore predefinito. Prima salva la tua chiave in 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-lite-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.

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"

Passi successivi

In questa pagina