Skip to main content
POST
/
v1
/
audio
/
transcriptions
语音识别 (STT)
curl --request POST \
  --url https://api.qclawrouter.com/v1/audio/transcriptions \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form model=whisper-1 \
  --form file='@example-file' \
  --form 'language=<string>' \
  --form response_format=json
{
  "text": "<string>"
}

Authorizations

Authorization
string
header
required

使用您的 API Key 作为 Bearer Token。在控制台创建令牌获取。

Body

multipart/form-data
model
string
required
Example:

"whisper-1"

file
file
required

音频文件(mp3, mp4, mpeg, mpga, m4a, wav, webm)

language
string

语言代码(如 zh, en)

response_format
enum<string>
default:json
Available options:
json,
text,
srt,
vtt

Response

200 - application/json

识别结果

text
string

识别文本