语音转文本(STT)whisper-1
POST
https://aigcapi.top/v1/audio/transcriptions
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://aigcapi.top/v1/audio/transcriptions' \
--header 'Accept: application/json' \
--header 'Content-Type: multipart/form-data' \
--form 'file=@""' \
--form 'model="whisper-1"'
响应示例响应示例
{
"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
可选
示例值:
verbose_json
temperature
number
可选
示例值:
0
language
string
可选