Skip to main content
POST
Gemini 3.8 Flash-Lite TTS

Headers

Authorization
string

Body

application/json
model
enum<string>
required

Model name. Must be gemini-3-8-flash-lite-tts.

Available options:
gemini-3-8-flash-lite-tts
text
string
required

Text to synthesize, read verbatim. Required. Max 4000 characters. Billing is based on this length. A single request can produce about 8 minutes of audio; very slow styles on long texts can hit that limit, in which case the task fails and is refunded — split the text into shorter parts.

Required string length: 1 - 4000
voice
string

Voice. Optional — defaults to Kore. One of the 30 prebuilt voices (case-insensitive): Kore, Zephyr, Puck, Charon, Fenrir, Leda, Orus, Aoede, Callirrhoe, Autonoe, Enceladus, Iapetus, Umbriel, Algieba, Despina, Erinome, Algenib, Rasalgethi, Laomedeia, Achernar, Alnilam, Schedar, Gacrux, Pulcherrima, Achird, Zubenelgenubi, Vindemiatrix, Sadachbia, Sadaltager, Sulafat — or a voice id from the Gemini voice library, such as en-us-advisor-1 (browse the full library in Google AI Studio). All voices can speak any supported language.

style
string

Optional. A short natural-language description of the delivery for the whole text — tone, emotion, pace or volume, e.g. warm and upbeat, whispered urgently, speaking slowly and calmly. Leave it out for a natural read. There is no speed parameter; describe the pace here instead. Slower styles produce longer audio for the same text.

Maximum string length: 500
custom_callback_url
string<uri>

Optional. A publicly accessible HTTPS URL. When the task status changes (processing / success / failed), GoEnhance sends a POST request to this URL. The request body is identical to the response of GET /api/v1/jobs/detail. If your server does not respond with HTTP 200, the notification is retried up to 3 times, with a 3-second timeout per attempt.

Example:

"https://your-server.com/goenhance/callback"

Response

code
integer
required
msg
string
required
data
object
required