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
- Resultado
- Áudio
- A partir de
- $0.00021 USD por segundo gerado
- Tempo médio
- cerca de 26 s
- IDs de modelo
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ção | USD |
|---|---|
Padrão | $0.00021 por segundo gerado |
Parâmetros
| Campo | Tipo | Padrão | Valores aceitos | Para que serve |
|---|---|---|---|---|
textOpcional | string | — | até 10.000 caracteres | Words to speak, up to 10,000 characters. Native inline cues include <laugh>, <sigh> and <short pause>. |
dialogueOpcional | array<object> | — | até 20 itens | A scripted conversation, used instead of text: each line names a speaker from speakers. |
speakersOpcional | array<object> | — | até 2 itens | The cast for dialogue: one or two voices, each with a name the lines refer to. |
voice_idOpcional | string | Kore | Achernar, 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. |
styleOpcional | string | — | whisper, empathetic, vocal_smile, newscaster, promo_hype, deadpan | Overall manner of the reading. Omit it to use the voice's own default manner. |
paceOpcional | string | — | natural, rapid_fire, the_drift, staccato | Rhythm of the reading. Omit it to keep the voice's own rhythm. |
accentOpcional | string | — | neutral, american_general, american_valley, american_south, british_rp, british_brixton, transatlantic, australian | English accent used for the reading. |
instructionsOpcional | string | — | até 1.000 caracteres | How to read the text: mood, distance from the microphone, who is listening. Shapes the delivery and is not spoken. |
sceneOpcional | string | — | até 500 caracteres | Where and to whom the words are spoken. Shapes the delivery and is not spoken. |
filler_wordsOpcional | boolean | false | — | Allow filler words in a two-speaker conversation. Has no effect on single-speaker requests. |
temperatureOpcional | number | — | de 0 a 2 | Variation 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.
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.
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=TASK_ID_FROM_CREATE_TASK" \
-H "Authorization: Bearer $POPNOW_API_KEY"
