# 列出可用影片模型

**API:** Model API

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

僅傳回實際生效的 model_kind 為 video_generation 的模型。已啟用的供應商對應可能覆寫基礎模型類別；若未指定供應商篩選條件，則依對應優先順序遞減、供應商名稱遞增來決定覆寫結果。若沒有任何已啟用的對應提供類別，則使用基礎類別（未指定時為 chat）。可見性、目前價格、供應商篩選與穩定排序皆與 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
}
```
