语音转文本(STT)gpt-4o-transcribe
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=@"/Users/jun/Downloads/response.wav"' \
--form 'model="gpt-4o-transcribe"'
响应示例响应示例
{
"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
必需
示例值:
file:///Users/jun/Downloads/response.wav
model
string
必需
whisper-1
当前可用。示例值:
gpt-4o-transcribe
response_format
string
可选
示例值:
json
temperature
number
可选
示例值:
0
language
string
可选