AiGanak LLM Cost
Query and calculate LLM API pricing for OpenAI, Anthropic, and Google models.
List current models and standard, cached-input, and batch prices, filtered by provider or tier.
Get one model’s full pricing details, including cache write, long-context surcharges, scheduled changes, and source page.
Estimate request costs using input/output tokens, cached tokens, batch pricing, request count, and date-specific prices.
Compare the same workload across models, cheapest first, optionally filtered by provider or tier.
Look up language token-tax multipliers across measured models and languages.
Estimate token counts and input/output cost for a text in a measured language, with script detection if language is omitted.
Review recent, dated, sourced LLM price changes and pricing announcements.
Provides up-to-date list prices, cached/batch rates, long-context surcharges, scheduled changes, and cost calculations for Google Gemini API models.
Provides up-to-date list prices, cached/batch rates, long-context surcharges, scheduled changes, and cost calculations for OpenAI API models.
LLM API Prices
Up-to-date list prices for the OpenAI, Anthropic and Google Gemini APIs. Every price is a machine-readable record copied from the provider's own pricing page, with its source and the date it was checked.
One dataset, four ways to use it: an MCP server for AI assistants (
mcp/), plusdata/prices.json(with a JSON Schema),data/prices.csv, and a dependency-free Python package.Everything that changes the bill: standard, cached-input and batch rates, cache-write prices, long-context surcharges and announced future price changes.
History: a dated snapshot for every check in
data/snapshots/, and a sourced price change log.
Maintained by AiGanak. The same data powers the free LLM API pricing calculator and the LLM price change log.
Current prices
Model | Provider | Tier | Input | Cached input | Output | Batch input | Batch output |
Claude Fable 5.1 | Anthropic | Flagship | $10 | $0.25 | $50 | $5 | $25 |
Claude Opus 5.5 | Anthropic | Flagship | $4 | $0.20 | $20 | $2 | $10 |
Gemini 3.1 Pro (preview) | Flagship | $2 | $0.20 | $12 | $1 | $6 | |
Gemini 4 Argon | Flagship | $2 | $0.10 | $10 ¹ | $1 | $5 | |
GPT-6 Astra | OpenAI | Flagship | $10 | $1 | $50 | $5 | $25 |
Claude Sonnet 5.5 | Anthropic | Mid | $2 | $0.10 | $10 | $1 | $5 |
Gemini 3.8 Flash | Mid | $0.75 | $0.075 | $3.75 ¹ | $0.375 | $1.875 | |
GPT-6.1 Sol | OpenAI | Mid | $2 | $0.10 | $10 | $1 | $5 |
GPT-6.1 Terra | OpenAI | Mid | $1 | $0.05 | $5 | $0.50 | $2.50 |
Claude Haiku 4.5 (legacy) | Anthropic | Small | $1 | $0.10 | $5 | $0.50 | $2.50 |
Claude Haiku 5.5 | Anthropic | Small | $0.10 | $0.01 | $0.50 | $0.05 | $0.25 |
Gemini 3.5 Flash-Lite | Small | $0.30 | $0.03 | $2.50 | $0.15 | $1.25 | |
Gemini 3.1 Flash-Lite | Small | $0.25 | $0.025 | $1.50 | $0.125 | $0.75 | |
GPT-6 Luna | OpenAI | Small | $0.10 | $0.01 | $0.50 | $0.05 | $0.25 |
USD per million tokens, standard tier, text. Checked 2026-11-09.
¹ Announced price change: Gemini 4 Argon: $4 input / $20 output from 2026-12-01; Gemini 3.8 Flash: $1.50 input / $7.50 output from 2027-01-01.
Per-model detail, worked examples and head-to-head comparisons: aiganak.com/llm-api-pricing.
Related MCP server: Model Price Watch
Language token tax
The same text costs a different number of tokens in each language, and every model family tokenizes differently. data/token-tax/ holds a 12-message business corpus in English and 22 other languages, the official token counts per model, and the counting script. Selected results (tokens as a multiple of English on the same model, measured 4 November 2026):
Language | OpenAI GPT-6 | Claude 5.x | Gemini 3.x | Gemini 4 Argon |
Hindi | 1.43× | 2.28× | 1.18× | 1.28× |
Tamil | 1.91× | 3.21× | 1.36× | 1.65× |
Kannada | 1.89× | 6.38× | 1.82× | 2.05× |
Odia | 4.85× | 5.33× | 3.37× | 2.29× |
German | 1.25× | 1.99× | 1.29× | 1.27× |
Chinese | 1.03× | 1.01× | 0.96× | 0.90× |
Full index for 23 languages, with a free checker for your own text: aiganak.com/language-token-tax.
Quick start
Use the JSON directly
No install needed. Fetch the latest file from GitHub or the jsDelivr CDN:
curl -s https://raw.githubusercontent.com/AiGanak/llm-prices/main/data/prices.json
curl -s https://cdn.jsdelivr.net/gh/AiGanak/llm-prices@main/data/prices.jsonconst res = await fetch("https://cdn.jsdelivr.net/gh/AiGanak/llm-prices@main/data/prices.json");
const { models } = await res.json();
const terra = models.find((m) => m.id === "gpt-6.1-terra");
console.log(terra.pricing.standard); // { input: 1, cached_input: 0.05, output: 5 }Pin a dated version for reproducible results: .../llm-prices@v2026.11.02/data/prices.json.
Python
pip install aiganak-llm-pricesimport llm_prices
# Cost of one request: 6,000 prompt tokens (4,000 read from cache) and a 500-token answer
llm_prices.cost("claude-sonnet-5-5", input_tokens=6_000, output_tokens=500, cached_tokens=4_000)
# 0.0094
# Half price for work that can wait
llm_prices.cost("gpt-6.1-sol", 20_000, 800, batch=True)
# Prices on a future date, including announced changes
llm_prices.cost("gemini-4-argon", 2_000, 300, on="2026-12-01")
# The same request on every model, cheapest first
for model, usd in llm_prices.compare(input_tokens=2_000, output_tokens=300)[:5]:
print(f"{model.name:28} ${usd:.5f}")The package has no dependencies and works offline: the data ships inside it. llm_prices.CHECKED tells you when the prices were last checked.
Command line
$ llm-prices list --provider anthropic
$ llm-prices cost claude-opus-5-5 --input 20000 --output 800 --requests 100000
$ llm-prices compare --input 2000 --output 300 --cached 1500In your AI assistant (MCP server)
Ask Claude, Cursor or any MCP client what a workload costs, which model is cheapest, or what the token tax is for a language. See mcp/ for the server and setup:
{ "mcpServers": { "aiganak-llm-cost": { "command": "npx", "args": ["-y", "@aiganak/llm-cost-mcp"] } } }Data format
Each model record in data/prices.json:
{
"id": "gpt-6-astra",
"provider": "OpenAI",
"name": "GPT-6 Astra",
"tier": "flagship",
"status": "active",
"pricing": {
"standard": { "input": 10, "cached_input": 1, "output": 50 },
"batch": { "input": 5, "cached_input": 0.5, "output": 25 },
"cache_write": 12.5,
"long_context": {
"threshold_tokens": 272000,
"standard": { "input": 20, "cached_input": 2, "output": 75 },
"note": "Prompts over 272K input tokens cost 2x input and cache rates and 1.5x output for the whole request."
}
},
"scheduled_changes": [],
"source_url": "https://developers.openai.com/api/docs/models/gpt-6-astra",
"checked": "2026-11-02"
}Field | Meaning |
| The provider's API model ID, as used in requests. |
|
|
|
|
| Pay-as-you-go list price in USD per million tokens. |
| Asynchronous batch price (results within 24 hours). |
| Price to write tokens to the shortest-lived prompt cache, where the provider charges for it. |
| Rates that apply to the whole request when the prompt is longer than |
| Announced future prices and the date they take effect. |
| The provider page the prices were copied from. |
The full contract is schema/prices.schema.json (JSON Schema 2020-12). Breaking changes to the format bump schema_version and are announced in the changelog.
Methodology
Primary sources only. Every price is copied by hand from the provider's own pricing or model page, never from third-party aggregators. Each record links to its source.
Checked weekly, and the same day a provider announces a change. Each check updates
checked, adds a snapshot indata/snapshots/, and tags a release (vYYYY.MM.DD).Validated in CI. Every change must pass the JSON Schema, unit tests for the cost calculator, and a check that the CSV, package data and this README were regenerated from the JSON.
Scope. Text tokens on the standard (pay-as-you-go) tier. Regional endpoints, priority tiers, enterprise discounts, image, audio and tool fees (such as web search) are not included. Cache storage fees (Gemini) are noted in the change log but not modelled.
Prices can change at any time. Always confirm on the provider's page before making a purchasing decision.
Get notified when prices change
Watch this repository (Custom → Releases) to get an email for every new dated release.
Or sign up for free LLM price change alerts: one email when a provider changes a price, nothing else.
Contributing
Spotted a price that has changed? Open an issue with a link to the provider's page. Pull requests should edit data/prices.json (and data/changes.json), then run:
python scripts/build.py
python -m pytestSee CONTRIBUTING.md for details.
Citation
If you use this dataset in research or a publication, please cite it (GitHub's Cite this repository button uses CITATION.cff):
@misc{aiganak_llm_prices,
title = {LLM API Prices: list prices for OpenAI, Anthropic and Google models},
author = {{AiGanak}},
year = {2026},
url = {https://github.com/AiGanak/llm-prices}
}License
Data (
data/,schema/): Creative Commons Attribution 4.0. Use it anywhere, including commercially, with a link back to this repository or aiganak.com/llm-api-pricing.Code (
src/,scripts/,tests/): MIT.
Model and company names are trademarks of their owners. This project is independent and not affiliated with OpenAI, Anthropic or Google.
About AiGanak
AiGanak is an AI systems studio. We help teams cut LLM spend without losing quality: free tools like the LLM Bill Analyzer and self-host vs API calculator, a fixed-price LLM Cost Report, and hands-on cost audits. We also build custom small language models for private deployment.
Available Tools
7 toolscompare_modelsCompare the same workload across modelsA
Price the same request on every model (optionally one provider or tier), cheapest first. Use to choose a model on cost before testing quality.
Inputs: input_tokens (required), output_tokens (required), date, tier, +4 more.
estimate_costEstimate the cost of LLM requestsB
Cost in USD of N requests on one model, with input/output breakdown, caching, batch, long-context surcharges and announced price changes.
Inputs: model (required), input_tokens (required), output_tokens (required), date, +3 more.
estimate_text_costEstimate tokens and cost for a text in any measured languageB
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.
Inputs: text (required), model (required), as, language, +1 more.
get_model_priceGet one model's full pricingB
Full pricing for one model: standard, cached input, cache write, batch, long-context surcharge, announced future price changes and the provider's source page.
Inputs: model (required).
list_modelsList LLM models and pricesA
List current OpenAI, Anthropic and Google API models with standard, cached-input and batch prices in USD per million tokens.
Inputs: tier, provider.
price_changesRecent LLM API price changesC
Dated, sourced log of LLM API price changes and pricing announcements (newest first).
Inputs: limit.
token_taxLanguage token taxA
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.
Inputs: language.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 7 tools
Most tools target a clearly distinct query: listing models, fetching one model's price, comparing across models, logging price changes, and measuring token inflation by language. The only real friction is between estimate_cost and estimate_text_cost, which both answer 'what will this cost' but differ in input shape (N requests vs. raw text); the descriptions disambiguate, but an agent could still pick the wrong one initially.
Six of seven tools follow a clean snake_case verb_noun or verb_noun_phrase pattern (list_models, get_model_price, estimate_cost, compare_models, estimate_text_cost). The exceptions are price_changes and token_tax, which are noun-only names that break the verb-first convention, though both remain readable and descriptive.
Seven tools is well-scoped for a pricing/cost-estimation server: each covers a distinct facet (catalog, single-model detail, single-model costing, cross-model comparison, token inflation, price history, text-based costing). No tool feels redundant or like padding.
The surface covers the full cost-analysis lifecycle: discover models, inspect prices, estimate costs, compare alternatives, account for language token overhead, and track price changes. Minor gaps exist, such as no aggregate/multi-model workload costing or budget-threshold tooling, but agents can compose existing tools to work around these.
Maintenance
Related MCP Connectors
LLM API prices across 100+ providers: cheapest offer, comparisons, history and cost estimates.
Find AI model pricing, estimate token costs and compare offers. No API key required.
Compare up-to-date pricing for 40+ LLMs (incl. Chinese) & estimate cost from tokens. EN/zh.
Live LLM API pricing: token prices, comparisons, cheapest-model lookups. No key required.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceProvides real-time token pricing for AI models, model comparison, cost calculation, and token usage tracking for agents and developers.-
- AlicenseAqualityBmaintenanceLive LLM API pricing: current token prices, model comparisons, cheapest-model lookups, and The LLM Price Index for 150+ models across 20+ providers, re-verified daily. No API key required.41MIT
- AlicenseNot gradedqualityCmaintenanceToken cost math for LLM API calls: current per-million-token rates for 69 models across 17 providers, with local arithmetic for estimates, comparisons and monthly budgets. Rates are verified and date-stamped.68 npm2MIT
- AlicenseNot gradedqualityDmaintenanceProvides tools to count tokens, estimate API costs, optimize prompts, and compare AI model pricing for multiple LLMs.71 npmMIT