创建转录
POST
https://api.openai.com/v1/audio/transcriptions
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.openai.com/v1/audio/transcriptions' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer ' \
--header 'Content-Type: multipart/form-data' \
--form 'file=@""' \
--form 'model="whisper-1"' \
--form 'prompt="eiusmod nulla"' \
--form 'response_format="json"' \
--form 'temperature="0"' \
--form 'language=""'
响应示例响应示例
{
"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."
}
请求参数
Header 参数
Content-Type
string
必需
示例值:
multipart/form-data
Accept
string
必需
示例值:
application/json
Authorization
string
可选
示例值:
Bearer {{YOUR_API_KEY}}
Body 参数multipart/form-data
file
file
必需
model
string
必需
whisper-1
当前可用。示例值:
whisper-1
response_format
string
可选
示例值:
json
temperature
number
可选
示例值:
0
language
string
可选
返回响应
修改于 2023-06-27 08:15:50