音频转文字 gpt-4o-transcribe
POST/v1/audio/transcriptions 音频转文字:gpt-4o-transcribe
使用 Vortap 的音频转写接口可将音频文件转换为文本。该接口兼容 OpenAI API 调用格式。
接口地址
POST https://api.vortapapi.com/v1/audio/transcriptions
认证方式
请在请求头中携带 Vortap API Key:
Authorization: Bearer sk-vortap-***
请求头
| 名称 | 必填 | 说明 |
|---|---|---|
Authorization | 是 | 使用 Bearer sk-vortap-*** 格式传入 API Key |
Content-Type | 否 | 上传音频文件时通常使用 multipart/form-data;多数 HTTP 客户端会自动生成该值 |
请求参数
该接口使用 multipart/form-data 提交数据。
| 参数名 | 类型 | 必填 | 说明 |
|---|---|---|---|
model | string | 是 | 转写模型,例如 gpt-4o-transcribe |
file | file | 是 | 要转写的音频文件 |
请求示例
curl https://api.vortapapi.com/v1/audio/transcriptions \
-H "Authorization: Bearer sk-vortap-***" \
-F "model=gpt-4o-transcribe" \
-F "file=@audio.mp3"
响应示例
{
"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."
}