AI Price Index
v0.2.0Read-only, zero-key MCP server for point-in-time AI model API prices.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
current_price Current price
Today's input and output price per million tokens (usd_per_mtok) for a model id, with the first-party source. Accepts short or aliased ids (e.g. "claude-opus-4-8", "gpt-4o", "gemini-2.5-pro"). Pass provider to disambiguate a bare id shared across vendors.
| Parameter | Type | Description |
|---|---|---|
model * | string | Model id or alias, e.g. "claude-opus-4-8" or "gpt-4o". |
provider | string | Optional provider slug (e.g. "openai", "anthropic") to disambiguate a bare id. |
price_on Price on a date
The input and output price per million tokens that was IN EFFECT on a given date (YYYY-MM-DD), with the source that proves it. This is the point-in-time lookup: use it to value past usage or to see how a price changed over time. covered=false means the date predates the model's recorded coverage.
| Parameter | Type | Description |
|---|---|---|
date * | string | The date to price, as YYYY-MM-DD, e.g. "2024-01-01". |
model * | string | Model id or alias, e.g. "gpt-4". |
provider | string | Optional provider slug to disambiguate a bare id. |
compare Compare models
Side-by-side input/output prices for several model ids on one date (today by default, or pass date as YYYY-MM-DD). Each row resolves independently; unknown ids are reported per row.
| Parameter | Type | Description |
|---|---|---|
models * | array | Model ids or aliases to compare, e.g. ["claude-opus-4-8", "gpt-4o", "gemini-2.5-pro"]. |
date | string | Optional date (YYYY-MM-DD). Omit for today. |
cost_from_usage Cost from token usage
Value token usage in USD at a point in time, using the shared cache multipliers (cache read 0.1x input, cache write 1.25x for 5m / 2x for 1h). tokens accepts input, output, cache_read, cache_write_5m, cache_write_1h. Defaults to today if no date is given. By default tokens are a rollup priced at the base tier; set per_request when they are one API request so prompt-length tiers apply.
| Parameter | Type | Description |
|---|---|---|
model * | string | Model id or alias to price the usage against. |
tokens * | object | Token counts to value. All fields optional and non-negative; missing fields count as 0. |
date | string | Optional date (YYYY-MM-DD). Omit for today. |
per_request | boolean | Set true when tokens are ONE API request. Prompt-length tiers then apply: for example a Claude Haiku 5.5 request whose prompt (input + cache reads + cache writes) exceeds 100,000 tokens bills entirely… |
provider | string | Optional provider slug to disambiguate a bare id. |
list_models List models
List the model ids known to the dataset, optionally filtered to one provider, each with its provider and aliases. Use this to discover valid ids for the other tools.
| Parameter | Type | Description |
|---|---|---|
provider | string | Optional provider slug to filter by, e.g. "anthropic". |