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

# 模型列表接口

> 查询当前 API 密钥可见的模型。

在调用某个模型前，使用本网关签发的密钥请求 `GET /v1/models`。结果受密钥、分组和管理员设置影响，不等同于本站的静态目录，也不能单独证明该模型支持某个生成接口。

```bash theme={null}
curl -sS 'https://ai.xbrod.com/v1/models' \
  -H 'Authorization: Bearer <本项目 API 密钥>'
```

图像与视频型号还需要分别在左侧对应生成页面查看字段约束。本站未列入的型号请不要套用相邻模型的请求示例。


## OpenAPI

````yaml openapi.yaml GET /v1/models
openapi: 3.0.3
info:
  title: new-api public API (documentation preview)
  version: 0.1.0
  description: >-
    Gateway-facing contracts for the first set of documented models. The enabled
    models and billing depend on each deployment's settings.
servers:
  - url: https://ai.xbrod.com
    description: 本项目线上 API 地址
security:
  - bearerAuth: []
paths:
  /v1/models:
    get:
      summary: 获取模型列表
      description: 返回当前密钥和分组可见的模型；可见不保证每种操作都已完成适配。
      operationId: listModels
      responses:
        '200':
          description: 模型列表
          content:
            application/json:
              schema:
                type: object
                properties:
                  object:
                    type: string
                    example: list
                  data:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
        '401':
          description: 无效的密钥
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: API key created in this gateway, not a provider key.

````

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