PopNowDocs da API
Conteúdo principal

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

Fala rápida e leve em 70 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, quanto custa cada requisição em USD 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.00021 USD por segundo gerado
Tempo médio
cerca de 26 s

Os preços são exibidos em USD e os valores são descontados do seu saldo PopNow. Ao aceitar a tarefa, o valor máximo é reservado; ao concluir, o uso real é cobrado e o restante liberado. Tarefas com falha não são cobradas. Consulte POST /api/v1/jobs/quote para obter uma cotação exata antes de executar.

Texto para fala

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

Preço

OpçãoUSD
Padrão$0.00021 por segundo gerado

Parâmetros

CampoTipoPadrãoValores aceitosPara que serve
textOpcionalstring—até 10.000 caracteresWords to speak, up to 10,000 characters. Native inline cues include <laugh>, <sigh> and <short pause>.
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, 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—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.
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.

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