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

# Models

> 查询当前 Key 可见模型，并选择已经实测的调用入口。

`GET https://code.heihuzi.ai/v1/models` 查询当前 API Key 的模型列表。本次分别使用文本、Messages、图片 Key，返回的列表不同；请使用与目标能力对应的 Key。

<RequestExample>
  ```bash theme={null}
  curl --fail-with-body --silent --show-error --max-time 600 \
    --request GET \
    --url https://code.heihuzi.ai/v1/models \
    --header "Authorization: Bearer $HEIHUZI_API_KEY" \
    --output models.json
  ```
</RequestExample>

## 实测模型与入口

验证日期：**2026-09-10**。下表每个模型均执行过对应接口请求；流式、质量、图片输入等额外参数范围见具体接口页。

| 接口               | 已完成实际调用的模型                                                           |
| ---------------- | -------------------------------------------------------------------- |
| Responses 文本     | `gpt-5.5`、`gpt-5.6-luna`、`gpt-5.6-sol`、`gpt-5.6-terra`、`gpt-6-astra` |
| Chat Completions | `gpt-5.5`                                                            |
| Messages         | `claude-sonnet-5`、`claude-opus-5`、`claude-haiku-4-5-20251001`        |
| Images 生成、编辑     | `gpt-image-2.5-flare`、`gpt-image-2.5-sunburst`、`gpt-image-2`         |

## 图片 Key 的真实响应节选

仅保留 `object` 和模型的 `id`、`object`、`owned_by` 字段。

<ResponseExample>
  ```json theme={null}
  {
    "object": "list",
    "data": [
      {
        "id": "gpt-image-2",
        "object": "model",
        "owned_by": "openai"
      },
      {
        "id": "gpt-image-2.5-flare",
        "object": "model",
        "owned_by": "openai"
      },
      {
        "id": "gpt-image-2.5-sunburst",
        "object": "model",
        "owned_by": "openai"
      }
    ]
  }
  ```
</ResponseExample>

示例中的模型不能替代自己 Key 的查询结果。模型列表用于发现模型，具体请求仍需验证；例如本次旧模型 `claude-sonnet-4-6` 实际返回 404，文档示例已改用测通的 `claude-sonnet-5`。

## DeepSeek 模型（2026-09-19 实测）

DeepSeek Key 的 `/v1/models` 本次返回 `deepseek-flash` 与 `deepseek-v4-pro`；Flash 的三种协议普通文本已通过。Flash 的流式、JSON、工具闭环及图片输入范围见 [DeepSeek 接入](/cn/api-reference/deepseek/index)。模型列表不会自动证明每种参数或协议组合均受支持。
