gpt-4o-mini-tts
Setup your API Key
API Schema
post
Body
modelstring · enumRequiredPossible values:
textstring · min: 1 · max: 4096Required
The text content to be converted to speech.
voicestring · enumOptionalDefault:
Name of the voice to be used.
alloyPossible values: stylestringOptional
Determines the style exaggeration of the voice. This setting attempts to amplify the style of the original speaker. It does consume additional computational resources and might increase latency if set to anything other than 0.
response_formatstring · enumOptionalDefault:
Format of the output content for non-streaming requests. Controls how the generated audio data is encoded in the response.
mp3Possible values: speednumber · min: 0.25 · max: 4OptionalDefault:
Adjusts the speed of the voice. A value of 1.0 is the default speed, while values less than 1.0 slow down the speech, and values greater than 1.0 speed it up.
1streamboolean · enumOptionalDefault:
falsePossible values: Responses
200Success
audiostring · uriRequired
post
/v1/tts200Success
Code Example
Last updated
Was this helpful?