PopNowDocs de la API
Contenido principal

Referencia de la API de Gemini 3.8 Flash TTS

Voz expresiva que interpreta indicaciones como [laughing]

Con una sola clave de API de PopNow puedes llamar a Gemini 3.8 Flash TTS desde tu propio código. Aquí tienes los ID de modelo que debes enviar, cada campo de entrada que acepta, cuánto cuesta cada solicitud en USD y una petición que puedes pegar tal cual en la terminal.

Las descripciones de los parámetros vienen del esquema de entrada del modelo y solo están en inglés.

De un vistazo

Creado por
Google
Resultado
Audio
Desde
$0.00032 USD por segundo generado
Tiempo habitual
unos 22 s

Los precios se muestran en USD y se cobran de tu saldo de PopNow. Al aceptar la tarea se reserva el importe máximo; al terminar se cobra el uso real y se libera el resto. Las tareas fallidas no se cobran. Consulta POST /api/v1/jobs/quote para obtener un presupuesto exacto antes de ejecutar.

Texto a voz

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

Precio

OpciónUSD
Predeterminado$0.00032 por segundo generado

Parámetros

CampoTipoValor predeterminadoValores admitidosPara qué sirve
textOpcionalstring—hasta 10.000 caracteresWords to speak, up to 10,000 characters. Native inline cues include <laugh>, <sigh> and <short pause>.
dialogueOpcionalarray<object>—hasta 20 elementosA scripted conversation, used instead of text: each line names a speaker from speakers.
speakersOpcionalarray<object>—hasta 2 elementosThe cast for dialogue: one or two voices, each with a name the lines refer to.
voice_idOpcionalstringKoreAchernar, 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.
styleOpcionalstring—whisper, empathetic, vocal_smile, newscaster, promo_hype, deadpanOverall manner of the reading. Omit it to use the voice's own default manner.
paceOpcionalstring—natural, rapid_fire, the_drift, staccatoRhythm of the reading. Omit it to keep the voice's own rhythm.
accentOpcionalstring—neutral, american_general, american_valley, american_south, british_rp, british_brixton, transatlantic, australianEnglish accent used for the reading.
instructionsOpcionalstring—hasta 1000 caracteresHow to read the text: mood, distance from the microphone, who is listening. Shapes the delivery and is not spoken.
sceneOpcionalstring—hasta 500 caracteresWhere and to whom the words are spoken. Shapes the delivery and is not spoken.
filler_wordsOpcionalbooleanfalse—Allow filler words in a two-speaker conversation. Has no effect on single-speaker requests.
temperatureOpcionalnumber—de 0 a 2Variation between takes; higher is less predictable.

Solicitud de ejemplo

Esta solicitud funciona tal cual; los campos que no envíes usan su valor predeterminado. Antes, guarda tu clave en 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 respuesta trae un taskId al instante. Consulta el resultado con GET /api/v1/jobs/recordInfo o añade callBackUrl para recibir un aviso.

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"

Siguientes pasos

En esta página