Tts 1
Text-to-speech model optimized for speed
Header parameters
AuthorizationstringRequiredExample:
sk-qNXaCLFLuF6KxswYB31dF9Fb5c6c4d929dE30957A6Fa0047Body
modelstringRequiredExample:
model is the model name
tts-1inputstring · max: 4096RequiredExample:
The text to generate audio for.
A cute baby sea otter.voicestring · enumRequiredExample:
The voice to use when generating the audio. Supported voices are alloy, ash, ballad, coral, echo, fable, onyx, nova, sage, shimmer, and verse.
alloyPossible values: response_formatstring · enumOptionalDefault:
The format to audio in. Supported formats are mp3, opus, aac, flac, wav, and pcm.
mp3Example: mp3Possible values: speednumber · min: 0.25 · max: 4OptionalDefault:
The speed of the generated audio. Select a value from 0.25 to 4.0. 1.0 is the default.
1Example: 1stream_formatstringOptionalDefault:
The format to stream the audio in. Supported formats are audio.
audioExample: audioResponses
200
The audio file content.
application/octet-stream
Responseobject
post
/audio/speech200
The audio file content.
Last updated