modelcost
v0.1.0AI API Radar: cheapest LLM models, per-model price history, provider status and price changes.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
cheapest_model
Return the cheapest LLM API models that meet a constraint, ranked by blended $/M-token cost. Use this to route an agent to the lowest-cost model with enough context that is currently operational. Filter by minimum context window and provider; weight input vs output cost for your workload.
| Parameter | Type | Description |
|---|---|---|
in_weight | number | Relative weight of input-token price (default 1). |
limit | number | How many to return (default 10). |
min_context | number | Minimum context window (tokens), e.g. 128000. |
operational_only | boolean | Drop providers with a major/critical status indicator. |
out_weight | number | Relative weight of output-token price (default 3, output-heavy). |
provider | string | Restrict to one provider slug (openai, anthropic, google, ...). |
price_history
Return the dated $/M-token price history (input + output) for one model. This is AI API Radar's exclusive time-series — useful for spotting price-war cuts and trend.
| Parameter | Type | Description |
|---|---|---|
model * | string | Model slug, e.g. 'anthropic--claude-opus-4-x' or just the id. |
status
Current operational status for one or all AI API providers (from each provider's public status page).
| Parameter | Type | Description |
|---|---|---|
provider | string | Provider slug; omit for all providers. |
price_change_alerts
Subscribe a webhook to fire when a provider changes prices (or read recent price changes). Pass `webhook` to subscribe (optionally filter by provider and direction 'cut'|'raise'); omit to read recent changes.
| Parameter | Type | Description |
|---|---|---|
direction | string | |
limit | number | |
provider | string | |
webhook | string | HTTPS URL to POST price-change events to. Omit to just read recent changes. |