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.
FocusAPI Audio API 附录参考:语音转文字、文字转语音、multipart 上传、音频输出和常见限制。
POST /v1/audio/transcriptions
multipart/form-data
model
whisper-1
curl https://www.focusapi.cn/v1/audio/transcriptions \ -H "Authorization: Bearer sk-your-api-key" \ -F file="@/path/to/audio.mp3" \ -F model="whisper-1"
POST /v1/audio/speech
curl https://www.focusapi.cn/v1/audio/speech \ -H "Authorization: Bearer sk-your-api-key" \ -H "Content-Type: application/json" \ -d '{ "model": "tts-1", "input": "你好,欢迎使用 FocusAPI", "voice": "alloy" }' \ --output speech.mp3