> For AI agents: the complete documentation index is available at https://little-butterfly-9bfe.sentia389.workers.dev/llms.txt, the full documentation bundle is available at https://little-butterfly-9bfe.sentia389.workers.dev/llms-full.txt.

# 初代 GPT-5 系列

| 分档    | 模型 ID                      | 官方支持的协议        | 用途                 | OpenAI 公告推荐的替代型号 |
| ----- | -------------------------- | -------------- | ------------------ | ---------------- |
| GPT-5 | `gpt-5`、`gpt-5-2025-08-07` | Chat、Responses | 通用推理和编程，日期 ID 固定版本 | `gpt-6.1-sol`    |
| mini  | `gpt-5-mini`               | Chat、Responses | 低延迟、目标明确的任务        | `gpt-6.1-terra`  |
| nano  | `gpt-5-nano`               | Chat、Responses | 摘要、批量分类            | `gpt-6-luna`     |

OpenAI 已宣布上表四个 ID 将于 2026 年 12 月 11 日停用。`Chat` 指 `POST /v1/chat/completions`，`Responses` 指 `POST /v1/responses`。在 routerlio 接入时，用当前 Key 核对完整 ID。[停用公告](https://developers.openai.com/api/docs/deprecations#upcoming-deprecations) · [迁移到 GPT-6](https://little-butterfly-9bfe.sentia389.workers.dev/models/openai/gpt-migration.md)

## 关键参数

| 字段                                            | 类型              | 适用条件和用法                                                                                          |
| --------------------------------------------- | --------------- | ------------------------------------------------------------------------------------------------ |
| `model`                                       | 字符串             | 从上表选完整 ID，需复现历史行为时核对日期快照                                                                         |
| `messages` / `input`                          | 对象数组 / 字符串或对象数组 | 基于 Chat 的集成发送 `messages`；切换 Responses 时改传 `input`                                                |
| `reasoning_effort` / `reasoning.effort`       | 字符串             | 初代官方支持 `minimal`、`low`、`medium`、`high`。简单提取可从 `minimal` 开始，多步问题按质量和延迟调整。前者用于 Chat，后者用于 Responses |
| `max_completion_tokens` / `max_output_tokens` | 整数              | 分别用于 Chat 和 Responses，上限包括推理 token 与可见输出。推理任务要为两者留出空间                                            |
| `temperature`、`top_p`、`logprobs`              | 数字、数字、布尔值（Chat） | 初代三个官方分档不接受这些采样字段；迁移旧模板时移除                                                                       |

## 请求与响应

确认当前 ID 接受推理强度参数后，向 `POST /v1/chat/completions` 提交：

```json
{
  "model": "gpt-5",
  "messages": [
    {
      "role": "user",
      "content": "用一句话说明怎样检查一个求和公式。"
    }
  ],
  "reasoning_effort": "low"
}
```

非流式成功响应示例。读取 `choices[].message.content`，响应中的 `model` 可为实际服务的快照名。

```json
{
  "id": "chatcmpl_example",
  "object": "chat.completion",
  "created": 1795900800,
  "model": "gpt-5-2025-08-07",
  "choices": [
    {
      "index": 0,
      "message": {
        "role": "assistant",
        "content": "先用小规模样例逐项相加，再和公式结果比较。"
      },
      "finish_reason": "stop"
    }
  ]
}
```

## OpenAI 官方参考

- [GPT-5 与日期快照](https://developers.openai.com/api/docs/models/gpt-5) · [GPT-5 mini](https://developers.openai.com/api/docs/models/gpt-5-mini) · [GPT-5 nano](https://developers.openai.com/api/docs/models/gpt-5-nano)
- [初代 GPT-5 参数指南](https://developers.openai.com/api/docs/guides/latest-model/gpt-5) · [采样参数兼容性](https://developers.openai.com/api/docs/guides/latest-model/gpt-5.4) · [停用公告](https://developers.openai.com/api/docs/deprecations)
- [Chat Completions 创建接口](https://developers.openai.com/api/reference/resources/chat/subresources/completions/methods/create) · [Responses 创建接口](https://developers.openai.com/api/reference/resources/responses/methods/create)
