Authorization: Bearer ********************
tts-1
, tts-1-hd
or gpt-4o-mini-tts
.tts-1
或tts-1-hd
兼容。alloy
、ash
、ballad
、coral
、echo
、fable
、onyx
、nova
、sage
、shimmer
和 verse
mp3
、opus
、aac
、flac
、wav
和 pcm
。0.25
到 4.0
选择一个值。1.0
是默认值。{
"model": "string",
"input": "string",
"instructions": "string",
"voice": "string",
"response_format": "mp3",
"speed": 1
}
curl --location --request POST 'https://api.uniapi.io/v1/audio/speech' \
--header 'Content-Type: application/json' \
--data-raw '{
"model": "string",
"input": "string",
"instructions": "string",
"voice": "string",
"response_format": "mp3",
"speed": 1
}'