官方文档:https://platform.openai.com/docs/guides/speech-to-text
POST
/v1/audio/transcriptions音频转文字 gpt-4o-transcribe
API Key multipart/form-data
请求示例
curl -X POST https://top.qingyuntop.ai/v1/audio/transcriptions \
-H "Authorization: Bearer ${QINGYUN_TOP_API_KEY}"请求参数
| 参数 | 位置 | 类型 | 必填 | 说明 | 示例 |
|---|---|---|---|---|---|
Content-Type | Header | string | 否 | - | multipart/form-data |
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-mini-transcribe 是可用的。 | gpt-4o-transcribe |
language | 请求体 | string | 否 | 输入音频的语言。以 ISO-639-1 格式提供输入语言可以提高准确性和延迟。 | - |
prompt | 请求体 | string | 否 | 一个可选的文本来指导模型的风格或继续之前的音频段落。提示应该与音频语言匹配。 | - |
response_format | 请求体 | string | 否 | 默认为 json 转录输出的格式,可选择:json、text | json |
temperature | 请求体 | number | 否 | 默认为 0,采样温度,between 0 和 1。更高的值像 0.8 会使输出更随机,而更低的值像 0.2 会使其更集中和确定性。如果设置为 0,模型将使用对数概率自动增加温度直到达到特定阈值。 | - |
返回响应 (200)
| 参数 | 位置 | 类型 | 必填 | 说明 | 示例 |
|---|---|---|---|---|---|
text | 响应 JSON | string | 是 | - | - |
响应示例
{
"text": "Imagine the wildest idea that you've ever had, and you're curious about how it might scale to something that's a 100, a 1,000 times bigger. This is a place where you can get to do that."
}来源原始接口定义(用于追溯)
以下内容来自 Apifox 快照,可能包含兼容层字段或旧示例;公开调用请以本页的协议说明和当前模型列表为准。
{
"id": 497676095,
"name": "音频转文字 gpt-4o-transcribe",
"type": "http",
"serverId": "",
"preProcessors": [],
"postProcessors": [],
"inheritPreProcessors": {},
"inheritPostProcessors": {},
"description": "官方文档:https://platform.openai.com/docs/guides/speech-to-text",
"operationId": "",
"sourceUrl": "",
"method": "post",
"path": "/v1/audio/transcriptions",
"tags": [],
"status": 1,
"requestBody": {
"type": "multipart/form-data",
"parameters": [
{
"id": "Q3chqzEhHB",
"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": "N15KW2DjQL",
"name": "model",
"required": true,
"enable": true,
"description": "要使用的模型 ID。目前只有 whisper-1,gpt-4o-mini-transcribe 是可用的。\n\n",
"type": "string",
"sampleValue": "gpt-4o-transcribe"
},
{
"id": "9YPyW01WRR",
"name": "language",
"required": false,
"enable": false,
"description": "输入音频的语言。以 ISO-639-1 格式提供输入语言可以提高准确性和延迟。\n\n",
"type": "string",
"sampleValue": ""
},
{
"id": "DD5Jdc8l1D",
"name": "prompt",
"required": false,
"enable": false,
"description": "一个可选的文本来指导模型的风格或继续之前的音频段落。提示应该与音频语言匹配。\n\n",
"type": "string",
"sampleValue": ""
},
{
"id": "cGqTgRZuvj",
"name": "response_format",
"required": false,
"enable": true,
"description": "默认为 json\n转录输出的格式,可选择:json、text",
"type": "string",
"sampleValue": "json"
},
{
"id": "pP9BAwD6CK",
"name": "temperature",
"required": false,
"enable": false,
"description": "默认为 0,采样温度,between 0 和 1。更高的值像 0.8 会使输出更随机,而更低的值像 0.2 会使其更集中和确定性。如果设置为 0,模型将使用对数概率自动增加温度直到达到特定阈值。",
"type": "number",
"sampleValue": ""
}
],
"examples": [],
"mediaType": "",
"oasExtensions": "",
"required": false,
"additionalContentTypes": []
},
"parameters": {
"path": [],
"query": [],
"cookie": [],
"header": [
{
"id": "ifSfytDdTe",
"name": "Content-Type",
"required": false,
"enable": true,
"description": "",
"type": "string",
"sampleValue": "multipart/form-data"
}
]
},
"commonParameters": {
"query": [],
"body": [],
"cookie": [],
"header": []
},
"auth": {},
"responses": [
{
"id": 132709998,
"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": 132709998,
"data": "{\r\n \"text\": \"Imagine the wildest idea that you've ever had, and you're curious about how it might scale to something that's a 100, a 1,000 times bigger. This is a place where you can get to do that.\"\r\n}",
"description": "",
"oasKey": "",
"oasExtensions": "",
"id": "019fd273-07ee-7028-857b-71b16aea14ed"
},
{
"name": "成功示例",
"responseId": 132709998,
"data": "{\"text\":\"一二三四五六七八九十\"}",
"description": "",
"oasKey": "",
"oasExtensions": "",
"id": "019fd273-07ee-7028-857b-75a2f410bcf0"
}
],
"codeSamples": [],
"projectId": 8662722,
"moduleId": 8310462,
"folderId": 92749353,
"ordering": 12,
"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.132709998"
],
"visibility": "INHERITED",
"securityScheme": {},
"callbacks": ""
}