---
title: "Get Channel Affinity Usage Cache Stats"
method: GET
path: "/api/log/channel_affinity_usage_cache"
tags: ["Log"]
---

# Get Channel Affinity Usage Cache Stats

`GET /api/log/channel_affinity_usage_cache`

## Request

- Base URL: `https://api.unorouter.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.unorouter.com/api/log/channel_affinity_usage_cache`
- Auth: one of:
  - API key in header `Authorization` and API key in header `New-Api-User`
  - API key in header `New-Api-User` and API key in cookie `session`

## Query parameters

- `rule_name` string
- `using_group` string
- `key_fp` string

## Response `200`

OK

- ResponseServiceChannelAffinityUsageCacheStats: Response_service.ChannelAffinityUsageCacheStats schema
  - `data` ChannelAffinityUsageCacheStats, required
    - `cached_token_rate_mode` string, required
    - `cached_tokens` integer, required
    - `completion_tokens` integer, required
    - `hit` integer, required
    - `key_fp` string, required
    - `last_seen_at` integer, required
    - `prompt_cache_hit_tokens` integer, required
    - `prompt_tokens` integer, required
    - `rule_name` string, required
    - `total` integer, required
    - `total_tokens` integer, required
    - `using_group` string, required
    - `window_seconds` integer, required
  - `message` string, required
  - `success` boolean, required

---

[API](https://skmtc.dev/unorouter/apis/new-api.md) - [All operations](https://skmtc.dev/unorouter/apis/new-api/llms.txt) - [OpenAPI document](https://skmtc.dev/unorouter/apis/new-api/revisions/1b50ada14f59?raw)
