Look up AI model prices
ai-model-priceLooks up what an AI model or an agent session costs at list price. Prices are dated and copied from each provider's own pricing page.
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.
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 |