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 语音模型接入指南:语音转文字 STT、文字转语音 TTS、音频上传、OpenAI Audio 兼容路径、文件大小、格式和超时说明。
POST /v1/audio/transcriptions
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
file
multipart/form-data
model
language
input
voice
response_format