Files
coder/docs/ai-coder
Susana Ferreira 5bd641a720 feat: show cost and model prices on AI Gateway session page (#30512)
## Description

Shows cost on the AI Gateway session page.

## Changes

- Add a "Cost" row to the session summary and the prompt panel, from
`cost_micros`. When `has_unpriced_usage` is set, a warning icon explains
that some usage has no cost, so the actual cost may be higher.
- The model badge on the prompt panel now shows the priced model and its
unit prices (input, output, cache read, cache write) on hover or focus.
- Show a warning icon next to the model when it was priced as a
different model (the model reported by the provider), or when no price
was recorded.

Closes AIGOV-600

<details>
<summary>Screenshots</summary>

<img width="2842" height="1054" alt="1-summary-cost-warning"
src="https://github.com/user-attachments/assets/d88c594a-8b7e-49c4-be91-212c726787fd"
/>

<img width="2842" height="1054" alt="2-prompt-provider-model-warning"
src="https://github.com/user-attachments/assets/1eee5caf-4883-4388-8817-0ee10ac8a9c5"
/>

<img width="2842" height="1054" alt="3-prompt-model-prices"
src="https://github.com/user-attachments/assets/25596eaf-23aa-40d7-8f5c-4f9d7fe5eec5"
/>


</details>

> [!NOTE]
> Generated by Coder Agents on behalf of @ssncferreira.
2026-10-26 10:01:51 +00:00
..