PopNowDocs da API
Conteúdo principal

Referência da API do Gemini 3.8 Flash-Lite TTS

Fala rápida e leve em 30 vozes

Com uma única chave de API da PopNow você chama o Gemini 3.8 Flash-Lite TTS direto do seu código. Aqui estão os IDs de modelo a enviar, cada campo de entrada aceito, quantos créditos custa cada requisição e um exemplo que você cola no terminal e roda.

As descrições dos parâmetros vêm do schema de entrada do modelo e estão disponíveis só em inglês.

Resumo

Desenvolvedor
Google
Resultado
Áudio
A partir de
0.03 créditos por segundo gerado ($0.0003)
Tempo médio
cerca de 11 s

1 crédito = US$ 0,01. Ao ser aceita, a tarefa reserva o valor máximo possível e, no fim, cobra o uso real, arredondado para cima em créditos inteiros; o restante é liberado. Tarefas que falham não são cobradas. Para saber o valor exato antes de rodar, chame POST /api/v1/jobs/quote.

Texto para fala

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

Preço

OpçãoCréditos (por segundo gerado)Dólares
Padrão0.03$0.0003

Parâmetros

CampoTipoPadrãoValores aceitosPara que serve
textOpcionalstring—até 5.000 caracteresThe words to be spoken, exactly as written. Spell out sounds such as sighs or laughter; bracketed cues may be read aloud.
dialogueOpcionalarray<object>—até 20 itensA scripted conversation, used instead of text: each line names a speaker from speakers.
speakersOpcionalarray<object>—até 2 itensThe 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—até 1.000 caracteresHow to read the text: mood, distance from the microphone, who is listening. Shapes the delivery and is not spoken.
sceneOpcionalstring—até 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.

Exemplo de requisição

Esta requisição roda do jeito que está; os campos que você omitir usam o valor padrão. Antes, coloque sua chave em 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."
  }
}'

A resposta já traz um taskId. Busque o resultado com GET /api/v1/jobs/recordInfo ou inclua callBackUrl para ser avisado.

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"

Próximos passos

Nesta página