{"model":"gpt-4o-mini-tts","input":"Today is a wonderful day to build something people love!","voice":"coral","instructions":"Speak in a cheerful and positive tone."}
Request Code Samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl--location'/v1/audio/speech' \
--header'Authorization: {{Authorization}}' \
--header'Content-Type: application/json' \
--data'{
"model": "gpt-4o-mini-tts",
"input": "Today is a wonderful day to build something people love!",
"voice": "coral",
"instructions": "Speak in a cheerful and positive tone."
}'