# モデルを取得

**API:** Model API

**Endpoint:** `GET /api/v1/models/{model_id}`

Felo モデル ID で設定済みのモデルを 1 件返します。

## Base URL

- `https://openapi.felo.ai` — 本番環境

## Authentication

- `FeloBearerAuth` (http bearer) — Felo APIキーを `Authorization: Bearer <key>` として送信します。
- `FeloApiKey` (apiKey in header `X-API-Key`) — Felo APIキーを `X-API-Key: <key>` として送信します。

## Parameters

| Name | In | Required | Type | Description |
| --- | --- | --- | --- | --- |
| `model_id` | path | yes | string | models 一覧エンドポイントが返す Felo モデル ID。 |

## Responses

### 200 — モデルのメタデータ

**application/json**

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

### 401 — Felo APIキーが無効または未指定です

**application/json**

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

### 404 — モデルが見つかりません

**application/json**

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

### 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
}
```

### 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
}
```
