返回模型调用 API 参考
POST/v1/audio/translations

创建翻译 (不支持)

API Key multipart/form-data

请求示例

curl -X POST https://top.qingyuntop.ai/v1/audio/translations \
  -H "Authorization: Bearer ${QINGYUN_TOP_API_KEY}"

请求参数

参数位置类型必填说明示例
file请求体file要翻译的音频文件对象(不是文件名),格式为:flac、mp3、mp4、mpeg、mpga、m4a、ogg、wav 或 webm。 file://C:\Users\Administrator\Desktop\test.m4a
model请求体string要使用的模型 ID。目前只有 whisper-1 是可用的。 gpt-4o-transcribe
prompt请求体string一个可选的文本,用于指导模型的风格或继续之前的音频段落。提示文本应该是英文。 -
response_format请求体string翻译结果的格式,可选择:json、text、srt、verbose_json 或 vtt。 -
temperature请求体number默认为 0 采样温度,介于 0 和 1 之间。更高的值如 0.8 会使输出更随机,而较低的值如 0.2 会使其更聚焦和确定性。如果设置为 0,模型将使用对数概率自动提高温度直到达到特定阈值。-

返回响应 (200)

参数位置类型必填说明示例
text响应 JSONstring--

响应示例

{
  "text": "Hello, my name is Wolfgang and I come from Germany. Where are you heading today?"
}
来源原始接口定义(用于追溯)

以下内容来自 Apifox 快照,可能包含兼容层字段或旧示例;公开调用请以本页的协议说明和当前模型列表为准。

{
  "id": 497676097,
  "name": "创建翻译 (不支持)",
  "type": "http",
  "serverId": "",
  "preProcessors": [],
  "postProcessors": [],
  "inheritPreProcessors": {},
  "inheritPostProcessors": {},
  "description": "",
  "operationId": "",
  "sourceUrl": "",
  "method": "post",
  "path": "/v1/audio/translations",
  "tags": [],
  "status": 1,
  "requestBody": {
    "type": "multipart/form-data",
    "parameters": [
      {
        "id": "7lt6Ryb7tx",
        "name": "file",
        "required": true,
        "enable": true,
        "description": "要翻译的音频文件对象(不是文件名),格式为:flac、mp3、mp4、mpeg、mpga、m4a、ogg、wav 或 webm。\n\n",
        "type": "file",
        "sampleValue": "file://C:\\Users\\Administrator\\Desktop\\test.m4a"
      },
      {
        "id": "UTcnbvPXON",
        "name": "model",
        "required": true,
        "enable": true,
        "description": "要使用的模型 ID。目前只有 whisper-1 是可用的。\n\n",
        "type": "string",
        "sampleValue": "gpt-4o-transcribe"
      },
      {
        "id": "VyK3pTg3pz",
        "name": "prompt",
        "required": false,
        "enable": true,
        "description": "一个可选的文本,用于指导模型的风格或继续之前的音频段落。提示文本应该是英文。\n\n",
        "type": "string",
        "sampleValue": ""
      },
      {
        "id": "zgTcDyfneT",
        "name": "response_format",
        "required": false,
        "enable": true,
        "description": "翻译结果的格式,可选择:json、text、srt、verbose_json 或 vtt。\n\n",
        "type": "string",
        "sampleValue": ""
      },
      {
        "id": "w8ZJJELYIr",
        "name": "temperature",
        "required": false,
        "enable": true,
        "description": "默认为 0\n采样温度,介于 0 和 1 之间。更高的值如 0.8 会使输出更随机,而较低的值如 0.2 会使其更聚焦和确定性。如果设置为 0,模型将使用对数概率自动提高温度直到达到特定阈值。",
        "type": "number",
        "sampleValue": ""
      }
    ],
    "examples": [],
    "mediaType": "",
    "oasExtensions": "",
    "required": false,
    "additionalContentTypes": []
  },
  "parameters": {
    "path": [],
    "query": [],
    "cookie": [],
    "header": []
  },
  "commonParameters": {
    "query": [],
    "body": [],
    "cookie": [],
    "header": []
  },
  "auth": {},
  "responses": [
    {
      "id": 198318731,
      "name": "成功",
      "code": 200,
      "contentType": "json",
      "jsonSchema": {
        "type": "object",
        "properties": {
          "text": {
            "type": "string"
          }
        },
        "required": [
          "text"
        ],
        "x-apifox-orders": [
          "text"
        ]
      },
      "itemSchema": {},
      "description": "",
      "mediaType": "",
      "headers": [],
      "oasExtensions": ""
    }
  ],
  "responseExamples": [
    {
      "name": "成功示例",
      "responseId": 198318731,
      "data": "{\r\n  \"text\": \"Hello, my name is Wolfgang and I come from Germany. Where are you heading today?\"\r\n}",
      "description": "",
      "oasKey": "",
      "oasExtensions": "",
      "id": "019fd273-07ee-7028-857b-7baa302a0138"
    }
  ],
  "codeSamples": [],
  "projectId": 8662722,
  "moduleId": 8310462,
  "folderId": 92749353,
  "ordering": 24,
  "responsibleId": 0,
  "commonResponseStatus": {},
  "advancedSettings": {
    "disabledSystemHeaders": {}
  },
  "customApiFields": {},
  "oasExtensions": "",
  "mockScript": {},
  "createdAt": "2026-08-05T15:03:02.000Z",
  "updatedAt": "2026-08-06T12:15:55.000Z",
  "creatorId": 2863449,
  "editorId": 2863449,
  "creatorUserId": 2863449,
  "editorUserId": 2863449,
  "responseChildren": [
    "BLANK.198318731"
  ],
  "visibility": "INHERITED",
  "securityScheme": {},
  "callbacks": ""
}