Skip to main content
POST
Synthesize speech

Authorizations

Authorization
string
header
required

HERO personal access token

Body

application/json
text
string
required
Required string length: 1 - 900
prompt
string
Maximum string length: 900
voice
string
model
enum<string>
Available options:
gemini-2.5-flash-preview-tts,
gemini-2.5-pro-preview-tts
audioEncoding
enum<string>
Available options:
LINEAR16,
MP3,
OGG_OPUS,
ALAW,
MULAW
languageCode
string

Response

200 response

success
enum<boolean>
required
Available options:
true
Example:

true

data
object
required