PopNowDocs de la API
Contenido principal

Referencia de la API de Gemini 3.8 Flash-Lite TTS

Voz rápida y ligera con 30 voces

Con una sola clave de API de PopNow puedes llamar a Gemini 3.8 Flash-Lite TTS desde tu propio código. Aquí tienes los ID de modelo que debes enviar, cada campo de entrada que acepta, cuántos créditos cuesta cada solicitud 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.03 créditos por segundo generado ($0.0003)
Tiempo habitual
unos 11 s

1 crédito = 0,01 US$. Al aceptarse, la tarea retiene el cargo máximo posible y al terminar cobra el uso real, redondeado al crédito superior; el resto se libera. Las tareas fallidas no se cobran. Para saber la cifra exacta antes de ejecutar, llama a POST /api/v1/jobs/quote.

Texto a voz

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

Precio

OpciónCréditos (por segundo generado)Dólares
Predeterminado0.03$0.0003

Parámetros

CampoTipoValor predeterminadoValores admitidosPara qué sirve
textOpcionalstring—hasta 5000 caracteresThe words to be spoken, exactly as written. Spell out sounds such as sighs or laughter; bracketed cues may be read aloud.
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, Autonoe, Callirrhoe, Charon, Despina, Enceladus, Erinome, Fenrir, Gacrux, … (+16)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.
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-lite-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