AiGanak LLM Cost

v2026.11.5
io.github.AiGanak/llm-cost Checked 4 days ago Published 29 days ago

LLM API prices, cost estimates, model comparisons and language token tax for GPT, Claude and Gemini.

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

list_models List LLM models and prices

List current OpenAI, Anthropic and Google API models with standard, cached-input and batch prices in USD per million tokens.

ParameterTypeDescription
providerstring
tierstring

get_model_price Get one model's full pricing

Full pricing for one model: standard, cached input, cache write, batch, long-context surcharge, announced future price changes and the provider's source page.

ParameterTypeDescription
model *stringAPI model ID or name, e.g. gpt-6.1-terra or Claude Sonnet 5.5

estimate_cost Estimate the cost of LLM requests

Cost in USD of N requests on one model, with input/output breakdown, caching, batch, long-context surcharges and announced price changes.

ParameterTypeDescription
input_tokens *integerPrompt tokens per request, including cached tokens
model *string
output_tokens *integerOutput tokens per request, including any reasoning/thinking tokens
batchbooleanUse asynchronous batch prices (results within 24 hours)
cached_input_tokensintegerPart of input_tokens read from the prompt cache
datestringPrice on this date (YYYY-MM-DD), including announced changes; default today
requestsintegerNumber of requests to price

compare_models Compare the same workload across models

Price the same request on every model (optionally one provider or tier), cheapest first. Use to choose a model on cost before testing quality.

ParameterTypeDescription
input_tokens *integerPrompt tokens per request, including cached tokens
output_tokens *integerOutput tokens per request, including any reasoning/thinking tokens
batchbooleanUse asynchronous batch prices (results within 24 hours)
cached_input_tokensintegerPart of input_tokens read from the prompt cache
datestringPrice on this date (YYYY-MM-DD), including announced changes; default today
providerstring
requestsintegerNumber of requests to price
tierstring

token_tax Language token tax

How many more tokens the same text takes in a language than in English, on each measured model (OpenAI GPT-6, Claude 5.x, Gemini 3.x, Gemini 4 Argon). 22 languages incl. Hindi, Tamil, German, Japanese. Omit language to list all.

ParameterTypeDescription
languagestringLanguage name or code, e.g. Hindi, ta, German, Hinglish

estimate_text_cost Estimate tokens and cost for a text in any measured language

Estimate how many tokens a text takes on a model and what N such messages cost as input or output, using measured tokens-per-character for its language. Detects the script if language is omitted.

ParameterTypeDescription
model *string
text *string
asstring
languagestring
messagesintegerHow many messages of this size

price_changes Recent LLM API price changes

Dated, sourced log of LLM API price changes and pricing announcements (newest first).

ParameterTypeDescription
limitinteger