Skip to main content
POST
Text to speech

Authorizations

Authorization
string
header
required

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

Body

text
string
required
Required string length: 1 - 4096
voice
string
default:alloy
required
speed
number
Required range: 0.25 <= x <= 4
format
enum<string>
Available options:
mp3,
opus,
aac,
flac,
wav,
pcm
instructions
string
Required string length: 1 - 1000

Response

Response for status 200

audioBase64
string
required
Minimum string length: 1
contentType
string
default:audio/mpeg
required