# Získat model

**API:** Model API

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

Vrací jeden nakonfigurovaný model podle jeho ID modelu Felo.

## Base URL

- `https://openapi.felo.ai` — Produkce

## Authentication

- `FeloBearerAuth` (http bearer) — API klíč Felo odesílaný jako `Authorization: Bearer <key>`.
- `FeloApiKey` (apiKey in header `X-API-Key`) — API klíč Felo odesílaný jako `X-API-Key: <key>`.

## Parameters

| Name | In | Required | Type | Description |
| --- | --- | --- | --- | --- |
| `model_id` | path | yes | string | ID modelu Felo vrácené endpointem seznamu modelů. |

## Responses

### 200 — Metadata modelu

**application/json**

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

### 401 — Neplatný nebo chybějící API klíč Felo

**application/json**

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

### 404 — Model nebyl nalezen

**application/json**

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

### 503 — Katalog modelů je dočasně nedostupný

**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 modelu Felo."
    },
    "object": {
      "type": "string",
      "const": "model"
    },
    "created": {
      "type": "integer",
      "format": "int64",
      "description": "Časové razítko vytvoření v katalogu modelů v unixových sekundách."
    },
    "owned_by": {
      "type": "string"
    },
    "model_kind": {
      "type": "string",
      "description": "Efektivní kategorie schopností modelu po přepsání povoleným mapováním poskytovatele: chat, image_generation, video_generation nebo decisions. Použijte endpoint pro volání odpovídající této kategorii."
    }
  },
  "additionalProperties": true
}
```

### OpenAIErrorResponse

`#/components/schemas/OpenAIErrorResponse`

```json
{
  "type": "object",
  "description": "Obálka chyb kompatibilní s OpenAI. Router může obsahovat code a message bez všech volitelných polí upstreamu.",
  "required": [
    "error"
  ],
  "properties": {
    "error": {
      "type": "object",
      "required": [
        "message"
      ],
      "properties": {
        "message": {
          "type": "string"
        },
        "type": {
          "type": "string",
          "description": "Typ chyby kompatibilní s OpenAI, je-li uveden."
        },
        "param": {
          "type": [
            "string",
            "null"
          ]
        },
        "code": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "additionalProperties": true
    }
  },
  "additionalProperties": true
}
```
