Error
音频
Audio · Translations
将音频翻译为目标语言文本,支持多种输出格式(JSON/SRT/VTT)。
POST
Error
接口说明
最佳实践
- 路径:
POST /v1/audio/translations(multipart/form-data)。 - 输入:音频文件(
file),可带prompt、language、temperature等字段。 - 输出:默认 JSON;也可通过
response_format指定text/srt/vtt。
- 大文件建议预处理(降采样/切片),缩短时延并提升稳定性。
- 需要纯文本可选
response_format=text;字幕场景推荐srt/vtt。 - 若你已在“转写(Transcriptions)”拿到原文,可复用
prompt做辅助提示,提升翻译通顺度。
Authorizations
Authorization: Bearer
Body
multipart/form-data
The body is of type object.
Response
200 - application/json
OK
The response is of type object.
