TokensWatch LLM API pricing

v1.0.1
net.tokenswatch/mcp Checked 4 days ago Published 6 days ago

Current LLM API prices with cache, batch and long-context rates, cost estimates and change history.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

list_models List LLM API prices

List current first-party API list prices (USD per million tokens) for LLMs from Anthropic, OpenAI, Google, xAI, DeepSeek and Mistral, including cached-input and Batch API rates. Filter by provider, tier or minimum context window and sort by price.

ParameterTypeDescription
minContextWindowintegerOnly models whose context window is at least this many tokens.
providerstringProvider name, e.g. "Anthropic", "OpenAI", "Google", "xAI", "DeepSeek", "Mistral".
sortBystringinput, output, blended (3:1 input:output, the default) or context (largest first).
tierstringModel tier: fast (cheap/small), workhorse (mid-range) or frontier (most capable).

get_model_pricing Get one model’s full pricing

Full pricing for one LLM: standard input/output, cached input, cache writes, Batch API, long-context surcharges, off-peak rates, context window, upcoming announced changes and the provider’s pricing page. Accepts an id ("claude-sonnet-5-5") or a name ("Claude Sonnet 5.5").

ParameterTypeDescription
model *stringModel id or display name.

estimate_cost Estimate and compare LLM API cost

Estimate the cost of a workload per request, per day and per 30-day month. Pass specific models to compare them, or omit models to rank the cheapest ones (optionally filtered by provider, tier or context window). Applies prompt-cache, Batch API, long-context and off-peak pricing where the provider publishes it.

ParameterTypeDescription
inputTokens *integerPrompt tokens per request.
outputTokens *integerOutput tokens per request.
batchbooleanUse Batch API prices where offered.
cachedInputSharenumberFraction of input tokens served from the prompt cache, 0 to 1 (default 0).
limitintegerHow many ranked results to return when models is omitted (default 10).
minContextWindowinteger
modelsarrayModel ids or names to compare. Omit to rank all models.
offPeakbooleanUse off-peak prices where offered (DeepSeek).
providerstringProvider name, e.g. "Anthropic", "OpenAI", "Google", "xAI", "DeepSeek", "Mistral".
requestsPerDayintegerRequests per day (default 1).
tierstringModel tier: fast (cheap/small), workhorse (mid-range) or frontier (most capable).

price_changes Recent LLM API price changes

Dated history of LLM API price changes recorded by TokensWatch, newest first. Optionally filter by model and start date. Entries with a note were not confirmed on the provider’s own page.

ParameterTypeDescription
limitintegerMaximum entries (default 20).
modelstringModel id or name.
sincestringOnly changes on or after this date (YYYY-MM-DD).