> ## 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.

# Whisper-1

Whisper-1 是 OpenAI 提供的语音识别模型，能够将音频内容转录为文本。

### 模型参数

* 模型ID：`whisper-1`
* 模型价格：参考模型详情页：[Whisper-1](https://geekai.co/models/whisper-1)
* 调用入口：`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]
>
> 附：[Whisper-1 官方 API 文档](https://developers.openai.com/api/docs/guides/speech-to-text)

### 模型价格

Whisper-1 按照待转录语音时长计费，价格表如下：

| 模型 | 模型价格（单位：元/分钟） |
| - | - |
| whisper-1 | 0.045 |

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

### 调用示例

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

> [!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]
>
> `whisper-1` 已弃用，将于 2027 年 2 月 26 日停止服务。


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