# Lấy thông tin một mô hình

**API:** Model API

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

Trả về một mô hình đã cấu hình theo ID mô hình Felo của nó.

## Base URL

- `https://openapi.felo.ai` — Môi trường production

## Authentication

- `FeloBearerAuth` (http bearer) — Khóa API Felo được gửi dưới dạng `Authorization: Bearer <key>`.
- `FeloApiKey` (apiKey in header `X-API-Key`) — Khóa API Felo được gửi dưới dạng `X-API-Key: <key>`.

## Parameters

| Name | In | Required | Type | Description |
| --- | --- | --- | --- | --- |
| `model_id` | path | yes | string | ID mô hình Felo do endpoint danh sách mô hình trả về. |

## Responses

### 200 — Siêu dữ liệu mô hình

**application/json**

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

### 401 — Khóa API Felo không hợp lệ hoặc bị thiếu

**application/json**

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

### 404 — Không tìm thấy mô hình

**application/json**

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

### 503 — Danh mục mô hình tạm thời không khả dụng

**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": "ID mô hình Felo."
    },
    "object": {
      "type": "string",
      "const": "model"
    },
    "created": {
      "type": "integer",
      "format": "int64",
      "description": "Dấu thời gian tạo trong danh mục mô hình, tính bằng giây Unix."
    },
    "owned_by": {
      "type": "string"
    },
    "model_kind": {
      "type": "string",
      "description": "Danh mục khả năng hiệu dụng của mô hình sau khi ánh xạ nhà cung cấp đang bật ghi đè: chat, image_generation, video_generation hoặc decisions. Dùng endpoint gọi tương ứng với danh mục này."
    }
  },
  "additionalProperties": true
}
```

### OpenAIErrorResponse

`#/components/schemas/OpenAIErrorResponse`

```json
{
  "type": "object",
  "description": "Phong bì lỗi tương thích OpenAI. Router có thể bao gồm code và message mà không có đầy đủ các trường upstream tùy chọn.",
  "required": [
    "error"
  ],
  "properties": {
    "error": {
      "type": "object",
      "required": [
        "message"
      ],
      "properties": {
        "message": {
          "type": "string"
        },
        "type": {
          "type": "string",
          "description": "Loại lỗi tương thích OpenAI khi được cung cấp."
        },
        "param": {
          "type": [
            "string",
            "null"
          ]
        },
        "code": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "additionalProperties": true
    }
  },
  "additionalProperties": true
}
```
