创建转录
POST
https://api.openai.com/v1/audio/transcriptions
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.openai.com/v1/audio/transcriptions' \
--form 'file=@""' \
--form 'model=""' \
--form 'language=""' \
--form 'prompt=""' \
--form 'response_format=""' \
--form 'temperature=""'
响应示例响应示例
{
"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."
}
请求参数
Body 参数multipart/form-data
file
file
必需
model
string
必需
language
string
可选
prompt
string
可选
response_format
string
可选
转录输出的格式,可选择:json、text、srt、verbose_json 或 vtt。
temperature
number
可选
采样温度,between 0 和 1。更高的值像 0.8 会使输出更随机,而更低的值像 0.2 会使其更集中和确定性。如果设置为 0,模型将使用对数概率自动增加温度直到达到特定阈值。
返回响应
修改于 2024-12-16 02:54:01