---
title: "Get Costs By Adapter"
method: GET
path: "/costs/by-adapter"
---

# Get Costs By Adapter

`GET /costs/by-adapter`

## Request

- Base URL: `http://127.0.0.1:8052`
- URL: `http://127.0.0.1:8052/costs/by-adapter`
- Auth: none declared

Per-adapter cost breakdown for the web GUI Costs tab.

Returns the same array shape as ``GET /costs/by-tag`` (default mode);
exists as a clearer alias so the frontend doesn't have to know about
the legacy "by-tag" naming.

## Query parameters

- `hours` integer

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/bernstein/apis/bernstein-task-server.md) · [All operations](https://skmtc.dev/bernstein/apis/bernstein-task-server/llms.txt) · [OpenAPI document](https://skmtc.dev/bernstein/apis/bernstein-task-server/revisions/2a20a34ad2eb?raw)
