# 列出可用视频模型

**API:** Model API

**Endpoint:** `GET /api/v1/videos/models`

仅返回实际生效的 model_kind 为 video_generation 的模型。已启用的提供方映射可以覆盖基础模型类别；未指定 provider 筛选时，按映射优先级降序、提供方名称升序决定覆盖结果。如果没有已启用的映射提供类别，则使用基础类别（缺失时为 chat）。可见性、当前定价、provider 筛选和稳定排序规则与 GET /api/v1/models 相同。空结果返回 HTTP 200，object=list 且 data=[]。这是本地目录读取：不会同步上游模型，也不会对模型调用计费。详情仍可通过 GET /api/v1/models/{model_id} 获取。通用端点 GET /api/v1/models 仍然包含所有类别。

## Base URL

- `https://openapi.felo.ai` — 生产环境

## Authentication

- `FeloBearerAuth` (http bearer) — 以 `Authorization: Bearer <key>` 形式发送的 Felo API 密钥。
- `FeloApiKey` (apiKey in header `X-API-Key`) — 以 `X-API-Key: <key>` 形式发送的 Felo API 密钥。

## Responses

### 200 — 可用模型

**application/json**

Schema: `ModelList` (`#/components/schemas/ModelList`)

Example:

```json
{
  "object": "list",
  "data": [
    {
      "id": "seedance-2.0-mini",
      "object": "model",
      "created": 1788220800,
      "owned_by": "Felo Router",
      "model_kind": "video_generation"
    }
  ]
}
```

### 401 — Felo API 密钥无效或缺失

**application/json**

Schema: `OpenAIErrorResponse` (`#/components/schemas/OpenAIErrorResponse`)

### 422 — 查询参数无效，例如 provider 为空

**application/json**

Schema: object

```json
{
  "type": "object",
  "required": [
    "detail"
  ],
  "properties": {
    "detail": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": true
      }
    }
  }
}
```

### 503 — 模型目录暂时不可用

**application/json**

Schema: `OpenAIErrorResponse` (`#/components/schemas/OpenAIErrorResponse`)

## Schema definitions

### Model

`#/components/schemas/Model`

```json
{
  "type": "object",
  "required": [
    "id",
    "object",
    "created",
    "owned_by"
  ],
  "properties": {
    "id": {
      "type": "string",
      "description": "Felo 模型 ID。"
    },
    "object": {
      "type": "string",
      "const": "model"
    },
    "created": {
      "type": "integer",
      "format": "int64",
      "description": "模型目录创建时间戳，单位为 Unix 秒。"
    },
    "owned_by": {
      "type": "string"
    },
    "model_kind": {
      "type": "string",
      "description": "已启用提供方映射覆盖后实际生效的模型能力类别：chat、image_generation、video_generation 或 decisions。请使用与此类别匹配的调用端点。"
    }
  },
  "additionalProperties": true
}
```

### ModelList

`#/components/schemas/ModelList`

```json
{
  "type": "object",
  "required": [
    "object",
    "data"
  ],
  "properties": {
    "object": {
      "type": "string",
      "const": "list"
    },
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/Model"
      }
    }
  },
  "additionalProperties": true
}
```

### OpenAIErrorResponse

`#/components/schemas/OpenAIErrorResponse`

```json
{
  "type": "object",
  "description": "兼容 OpenAI 的错误封装。Router 可能只包含 code 和 message，而不包含所有可选的上游字段。",
  "required": [
    "error"
  ],
  "properties": {
    "error": {
      "type": "object",
      "required": [
        "message"
      ],
      "properties": {
        "message": {
          "type": "string"
        },
        "type": {
          "type": "string",
          "description": "提供时为 OpenAI 兼容的错误类型。"
        },
        "param": {
          "type": [
            "string",
            "null"
          ]
        },
        "code": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "additionalProperties": true
    }
  },
  "additionalProperties": true
}
```
