---
title: "Top-N router configs by model-router spend"
method: GET
path: "/v1/analytics/model-router/cost/by-router-config"
tags: ["analytics"]
---

# Top-N router configs by model-router spend

`GET /v1/analytics/model-router/cost/by-router-config`

## Request

- The document declares no server URL.
- Auth: API key in header `x-api-key`
- TypeScript: <https://skmtc.dev/oneloop-hq/apis/feather-api/docs/v1/analytics/model-router/cost/by-router-config/get.ts> (a function with typed inputs; its response is checked against the schema)

## Query parameters

- `provider` string, nullable
- `served_model` string, nullable
- `operation` string, nullable
- `limit` integer
- `start_date` string, date, required
- `end_date` string, date, required

## Response `200`

Successful Response

- CostByRouterConfigRow[]
  - `router_config_id` string, required
  - `total_cost_usd` number, required
  - `input_cost_usd` number, required
  - `output_cost_usd` number, required
  - `cache_cost_usd` number, required
  - `invocations` integer, required
  - `successful` integer, required
  - `failed` integer, required
  - `success_rate` number, required
  - `avg_latency_ms` number, required

## Other responses

- `400`: Bad request
- `401`: Authentication required
- `422`: Validation Error

## Changes

- **2026-08-12** `5a5597ebb2d6`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/oneloop-hq/apis/feather-api/changes/v1/analytics/model-router/cost/by-router-config/get.md)

---

[API](https://skmtc.dev/oneloop-hq/apis/feather-api.md) - [All operations](https://skmtc.dev/oneloop-hq/apis/feather-api/llms.txt) - [OpenAPI document](https://skmtc.dev/oneloop-hq/apis/feather-api/revisions/9cd7291d4228?raw)
