Skip to main content
POST

Prompt (input.prompt)

Required. Text to synthesize (max 32,000 characters). Supports expressive markup tags in the text:

Style instructions (input.style_instructions)

Optional (max 1,000 characters). Natural-language directions for tone, pace, accent, and emotion. Default: Say the following.

Voice presets (input.voice)

Optional. Default Kore.

Language (input.language)

Optional BCP-47 language code. Default en-US.

Output format (input.output_format)

Optional. Default mp3.

Authorizations

Authorization
string
header
required

Authorization: Bearer YOUR_API_KEY

Body

application/json
model
enum<string>
default:gemini-3.1-flash-tts-preview
required

Model ID. Use gemini-3.1-flash-tts-preview for this endpoint.

Available options:
gemini-3.1-flash-tts-preview
Example:

"gemini-3.1-flash-tts-preview"

input
object
required
webhook
string<uri>

Optional HTTPS callback URL when the task completes, fails, or is cancelled.

Response

Async task created

data
object
required