Skip to main content
POST
Generate speech audio

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
model
string
required
Example:

"hexgrad/Kokoro-82M"

input
string
required

Text to synthesize.

voice
string

Kokoro voice id.

Example:

"af_bella"

response_format
enum<string>
default:wav
Available options:
wav,
mp3
speed
number
default:1
Required range: 0.25 <= x <= 4
lang_code
string

BCP-47 language code, e.g. en-US.

Response

Audio bytes (WAV by default).

The response is of type file.