{
"text": "Hello."
}{
"error": {
"message": "<string>",
"type": "<string>",
"param": "<string>",
"code": "<unknown>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"param": "<string>",
"code": "<unknown>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"param": "<string>",
"code": "<unknown>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"param": "<string>",
"code": "<unknown>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"param": "<string>",
"code": "<unknown>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"param": "<string>",
"code": "<unknown>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"param": "<string>",
"code": "<unknown>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"param": "<string>",
"code": "<unknown>"
}
}转写音频
请求格式、响应与能力边界。
{
"text": "Hello."
}{
"error": {
"message": "<string>",
"type": "<string>",
"param": "<string>",
"code": "<unknown>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"param": "<string>",
"code": "<unknown>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"param": "<string>",
"code": "<unknown>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"param": "<string>",
"code": "<unknown>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"param": "<string>",
"code": "<unknown>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"param": "<string>",
"code": "<unknown>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"param": "<string>",
"code": "<unknown>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"param": "<string>",
"code": "<unknown>"
}
}POST /v1/audio/transcriptions
发送 multipart,包含 model 和 file 文件字节。保留正确文件扩展名;不要发送本地路径字符串代替文件。
response_format: json 返回 text,verbose_json 可包含时长/分段;文本或字幕格式直接返回文本。language 指输入语言。时间戳、说话人分离和流式模式需单独确认模型支持,本参考的基础请求使用非流式响应。
完整接入指南与可执行示例
Read in English授权
模型调用 API Key,不是控制台登录凭据 / Model API key, not console login credentials
请求体
当前密钥可用且支持此接口的模型 ID / Model ID available to the key and supporting this endpoint
"YOUR_MODEL_ID"
上传音频文件,保留正确扩展名;不是路径字符串或 URL / Uploaded audio file with correct extension, not a path string or URL
示例使用 json;text、srt、vtt、verbose_json 等需模型支持 / Examples use json; text, srt, vtt, verbose_json and other formats require model support
可选上下文提示,不是翻译目标语言 / Optional context hint, not the target translation language
采样温度,需模型支持 / Sampling temperature when supported
输入语言提示,例如 zh、en;模型决定格式 / Input-language hint such as zh or en; model determines format
word 或 segment,通常配合 verbose_json;需模型支持 / word or segment, usually with verbose_json; requires support
响应
由 response_format 决定;示例为 json / Determined by response_format; example uses json
- Option 1
- Option 2
转写或翻译文本,静音可能为空 / Transcribed or translated text; silence may yield empty text