Create speech
Audio
Create speech
Convert text into natural speech with the OpenAI-compatible audio speech interface. Returns a binary audio stream — save the response body directly to a file.
POST
Create speech
Authorizations
Your DGrid API key. All endpoints use Authorization: Bearer <DGRID_API_KEY>.
Body
application/json
Voice model, such as tts-1 or tts-1-hd.
Example:
"tts-1"
Text to synthesize, up to 4096 characters.
Voice preset.
Available options:
alloy, echo, fable, onyx, nova, shimmer Output audio format.
Speaking speed.
Required range:
0.25 <= x <= 4Response
Binary audio stream.
The response is of type file.

