modelcost

v0.1.0
io.github.CloudCorpRecords/modelcost Checked 4 days ago Published 19 days ago

AI 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.

ParameterTypeDescription
in_weightnumberRelative weight of input-token price (default 1).
limitnumberHow many to return (default 10).
min_contextnumberMinimum context window (tokens), e.g. 128000.
operational_onlybooleanDrop providers with a major/critical status indicator.
out_weightnumberRelative weight of output-token price (default 3, output-heavy).
providerstringRestrict 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.

ParameterTypeDescription
model *stringModel 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).

ParameterTypeDescription
providerstringProvider 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.

ParameterTypeDescription
directionstring
limitnumber
providerstring
webhookstringHTTPS URL to POST price-change events to. Omit to just read recent changes.