ai-model-price
CALL before quoting what an AI model or an agent session costs, or when a usage report needs dollars — prices are dated and copied from each provider's own pricing page, never from memory.
Returns the per-1M-token USD rates for a model (input, output, and for Anthropic models the 5-minute and 1-hour cache write, cache read and fast-mode rates), the date the provider page was checked, and the page it came from. Pass token counts to get an exact list-price cost for a call or a whole session.
With no args: lists every priced model and each provider's checked date. With {"model":"claude-opus-5-5","input_tokens":2,"cache_read_tokens":300000,"output_tokens":800}: returns the rates and the cost breakdown. A model not in the table returns UNPRICED — never $0.
Why it matters: in agent sessions most spend is context re-read from cache, not output (DugganUSA's own month: 93% carrying context). Meter your own Claude Code sessions in your browser, nothing uploaded: https://finops.dugganusa.com
Public read (no auth).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fast | No | Anthropic fast mode (premium rates). | |
| model | No | Model id, e.g. "claude-opus-5-5", "gpt-4o-mini", "gemini-2.5-flash". Omit to list all priced models. | |
| input_tokens | No | ||
| output_tokens | No | ||
| cache_read_tokens | No | ||
| cache_write_1h_tokens | No | ||
| cache_write_5m_tokens | No |