# Get upstream performance metrics for public model channels

**API:** Model API

**Endpoint:** `GET /api/platform/model-catalog/metrics`

Returns latency, throughput and uptime for listed, published channels. APIKEY.FAN channels are omitted. Statistics preserve upstream aggregation semantics; null means unavailable. Responses contain no internal provider identities or keys.

## Base URL

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

## Authentication

- `FeloBearerAuth` (http bearer) — Felo API key sent as `Authorization: Bearer <key>`.
- `FeloApiKey` (apiKey in header `X-API-Key`) — Felo API key sent as `X-API-Key: <key>`.

## Parameters

| Name | In | Required | Type | Description |
| --- | --- | --- | --- | --- |
| `model` | query | yes | string | Exact public model name or registered alias |

## Responses

### 200 — Successful Response

**application/json**

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

### 400 — Invalid model name

### 404 — Model not found or unlisted

### 422 — Validation Error

**application/json**

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

### 503 — Model catalog unavailable

## Schema definitions

### ChannelMetric

`#/components/schemas/ChannelMetric`

```json
{
  "properties": {
    "value": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Value",
      "description": "Upstream observation; null means unavailable"
    },
    "unit": {
      "type": "string",
      "enum": [
        "ms",
        "tokens/s",
        "percent"
      ],
      "title": "Unit"
    },
    "statistic": {
      "type": "string",
      "enum": [
        "p50",
        "mean",
        "mean_success_rate",
        "available_minutes_ratio"
      ],
      "title": "Statistic"
    },
    "window_seconds": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Window Seconds",
      "description": "Upstream aggregation window; null when the source does not specify it"
    }
  },
  "type": "object",
  "required": [
    "value",
    "unit",
    "statistic",
    "window_seconds"
  ],
  "title": "ChannelMetric"
}
```

### ChannelMetrics

`#/components/schemas/ChannelMetrics`

```json
{
  "properties": {
    "code": {
      "type": "string",
      "title": "Code",
      "description": "Public channel code; internal provider bindings are omitted"
    },
    "latency": {
      "$ref": "#/components/schemas/ChannelMetric"
    },
    "throughput": {
      "$ref": "#/components/schemas/ChannelMetric"
    },
    "uptime": {
      "$ref": "#/components/schemas/ChannelMetric"
    },
    "fetched_at": {
      "type": "string",
      "format": "date-time",
      "title": "Fetched At",
      "description": "Upstream fetch time, not the sample time"
    },
    "status": {
      "type": "string",
      "enum": [
        "available",
        "partial",
        "unavailable"
      ],
      "title": "Status"
    }
  },
  "type": "object",
  "required": [
    "code",
    "latency",
    "throughput",
    "uptime",
    "fetched_at",
    "status"
  ],
  "title": "ChannelMetrics"
}
```

### HTTPValidationError

`#/components/schemas/HTTPValidationError`

```json
{
  "properties": {
    "detail": {
      "items": {
        "$ref": "#/components/schemas/ValidationError"
      },
      "type": "array",
      "title": "Detail"
    }
  },
  "type": "object",
  "title": "HTTPValidationError"
}
```

### ModelMetricsData

`#/components/schemas/ModelMetricsData`

```json
{
  "properties": {
    "model": {
      "type": "string",
      "title": "Model",
      "description": "Canonical public model name"
    },
    "channels": {
      "items": {
        "$ref": "#/components/schemas/ChannelMetrics"
      },
      "type": "array",
      "title": "Channels",
      "description": "Listed, published channels with enabled endpoints; APIKEY.FAN is omitted"
    }
  },
  "type": "object",
  "required": [
    "model",
    "channels"
  ],
  "title": "ModelMetricsData"
}
```

### ModelMetricsResponse

`#/components/schemas/ModelMetricsResponse`

```json
{
  "properties": {
    "data": {
      "$ref": "#/components/schemas/ModelMetricsData"
    }
  },
  "type": "object",
  "required": [
    "data"
  ],
  "title": "ModelMetricsResponse"
}
```

### ValidationError

`#/components/schemas/ValidationError`

```json
{
  "properties": {
    "loc": {
      "items": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "integer"
          }
        ]
      },
      "type": "array",
      "title": "Location"
    },
    "msg": {
      "type": "string",
      "title": "Message"
    },
    "type": {
      "type": "string",
      "title": "Error Type"
    },
    "input": {
      "title": "Input"
    },
    "ctx": {
      "type": "object",
      "title": "Context"
    }
  },
  "type": "object",
  "required": [
    "loc",
    "msg",
    "type"
  ],
  "title": "ValidationError"
}
```
