> ## Documentation Index
> Fetch the complete documentation index at: https://docs.geekai.co/llms.txt
> Use this file to discover all available pages before exploring further.

# GPT-Transcribe

GPT-Transcribe 是一款语音转文本模型，可转写录制完成的音频文件，并支持流式返回文件转写结果。

### 模型参数

* 模型ID：`gpt-4o-transcribe`/`gpt-4o-mini-transcribe`/`gpt-transcribe`
* 模型价格：参考模型详情页：[GPT-Transcribe](https://geekai.co/models/gpt-transcribe)
* 调用入口：`https://geekai.co/api/v1/audio/transcriptions`
* 模型参数：参考[语音转录 API 手册](https://docs.geekai.co/cn/api/audio/speechtotext.md)
* API认证：[获取 API KEY](https://geekai.co/user/api_keys)

> [!NOTE]
>
> 附：[GPT-Transcribe 官方 API 文档](https://developers.openai.com/api/docs/guides/speech-to-text)

### 模型价格

GPT-Transcribe 系列模型按照待转录语音时长计费，价格表如下：

| 模型 | 模型价格（单位：元/分钟） |
| - | - |
| gpt-4o-transcribe | 0.045 |
| gpt-4o-mini-transcribe | 0.023 |
| gpt-transcribe | 0.034 |

使用极客智坊提供的[低价代理渠道](https://docs.geekai.co/cn/docs/model_price.md)调用时，不同参数对应价格按照价格表x对应的折扣值即可：以高可用通道为例，折扣值是 `0.5`，那么通过 `gpt-transcribe` 模型转录一段30秒语音的价格是 `0.034 x 0.5 x 0.5 = 0.0085` 元/分钟。其他参数依次类推。

### 调用示例

```bash theme={null}
curl --request POST \
  --url https://geekai.co/api/v1/audio/transcriptions \
  --header "Authorization: Bearer $GEEKAI_API_KEY" \
  --header 'Content-Type: multipart/form-data' \
  --form file=@/path/to/file/audio.mp3 \
  --form model=gpt-transcribe
```

> [!NOTE]
>
> 文件大小上限为 25 MB。支持的输入格式包括 `flac`、`mp3`、`mp4`、`mpeg`、`mpga`、`m4a`、`ogg`、`wav` 和 `webm`。

模型以 JSON 格式返回转录文本和检测到的语言：

```json theme={null}
{
    "id": "5bccbdad-df67-49fc-ac15-d76c9d0f0fdc",
    "text": "奶奶，快张嘴！我妈妈说过，这种药丸子要压在舌头底下才管用。来人啊！有。",
    "usage": {
        "duration": 15.023
    }
}
```

> [!NOTE]
>
> `gpt-4o-transcribe` 和 `gpt-4o-mini-transcribe` 均已弃用，将于 2027 年 2 月 26 日停止服务。


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.