Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
语音合成与语音识别
/v1/audio/speech
model
tts-1
tts-1-hd
input
voice
alloy
echo
fable
onyx
nova
shimmer
response_format
mp3
opus
aac
flac
speed
curl https://your-domain.com/v1/audio/speech \ -H "Authorization: Bearer sk-xxxx" \ -H "Content-Type: application/json" \ -d '{"model":"tts-1","input":"你好","voice":"alloy"}' \ --output speech.mp3
/v1/audio/transcriptions
multipart/form-data
file
whisper-1
language
json
text
srt
vtt
curl https://your-domain.com/v1/audio/transcriptions \ -H "Authorization: Bearer sk-xxxx" \ -F file="@audio.mp3" \ -F model="whisper-1"