Skip to main content
POST
Create speech

Authorizations

Authorization
string
header
required

Your DGrid API key. All endpoints use Authorization: Bearer <DGRID_API_KEY>.

Body

application/json
model
string
required

Voice model, such as tts-1 or tts-1-hd.

Example:

"tts-1"

input
string
required

Text to synthesize, up to 4096 characters.

voice
enum<string>
required

Voice preset.

Available options:
alloy,
echo,
fable,
onyx,
nova,
shimmer
response_format
string
default:mp3

Output audio format.

speed
number
default:1

Speaking speed.

Required range: 0.25 <= x <= 4

Response

Binary audio stream.

The response is of type file.