Listed from the MCP registry; nobody on Odel publishes it.

MCP server: One MCP server.

AICostBudget AI API Pricing

@aicostbudgetRun by its publisher: served from their own domain, namespace checked by the registry.MCP server · External

Read-only source-linked AI API prices, comparisons, cost estimates, and price changes.

Price comparisonv0.2.0MITPLpgSQL
Freeno charge per call

Runs on your machine from its package; the steps are below.

What it does

  1. Reads
  2. Writes
  3. High impact

At most: only reads or looks up information.

What it costs

Free

Odel charges nothing per call. The publisher may charge for its own service.

Runs locally over stdio

This server isn't hosted — your MCP client launches it from a package registry. Use one of the commands below, or drop the config into your client (e.g. Claude Desktop).

npmai-api-pricing-mcpv0.2.0

Run

npx -y ai-api-pricing-mcp

MCP client config

{
  "mcpServers": {
    "aicostbudget-ai-api-pricing": {
      "command": "npx",
      "args": [
        "-y",
        "ai-api-pricing-mcp"
      ]
    }
  }
}
README9 min read

AI API Pricing Dataset: LLM prices as JSON, CSV and a free API

Current input, output, cached-input and batch prices for OpenAI, Anthropic Claude, Google Gemini, xAI Grok, DeepSeek, Mistral AI, Cohere, Moonshot AI (Kimi), Alibaba Qwen, Meta, Perplexity, Amazon Nova, Z.ai (Zhipu) and MiniMax. Every record links to the provider's own pricing page and carries the date it was last checked. Unknown prices stay null, never 0.

Last verified Models npm downloads Validate Code license: MIT Data license: CC BY 4.0

bash
curl -L https://aicostbudget.github.io/ai-api-pricing-data/api/v1/prices.json

Compare every model side by side → · Estimate your monthly bill · See recent price changes

Prices at a glance

USD per 1M tokens, standard list price. 199 models tracked, last verified 2026-11-18.

ProviderActive token-priced modelsLowest output price (input / output)Highest output price (input / output)
OpenAI18GPT-6 Luna $0.10 / $0.50GPT-5.5 Pro $30.00 / $180.00
Anthropic13Claude Haiku 5.5 $0.10 / $0.50Claude Mythos 5.1 $10.00 / $50.00
Google Gemini13Gemini 3.1 Flash-Lite $0.25 / $1.50Gemini 3.5 Transcribe Live $3.50 / $21.00
xAI6Grok 4.20 (Non-Reasoning) $1.25 / $2.50Grok 4.7 $2.00 / $6.00
DeepSeek2DeepSeek V4.1 Flash $0.30 / $1.20DeepSeek V4 Pro $1.32 / $3.96
Mistral AI5Ministral 3 3B $0.10 / $0.10Codestral $0.30 / $0.90
Cohere2Aya Expanse 32B $0.50 / $1.50Command R+ 08-2024 $2.50 / $10.00
Moonshot AI (Kimi)3Kimi K3.1 Pro $2.00 / $10.00Kimi K3.1 Pro Highspeed $4.00 / $20.00
Alibaba Qwen5Qwen Flash $0.05 / $0.40Qwen3.8 Max $2.00 / $6.00
Meta2Muse Ember 1.0 $0.10 / $0.50Muse Spark 1.3 $1.25 / $4.25
Perplexity1Sonar $0.25 / $2.50same model
Amazon Nova6Nova Micro $0.035 / $0.14Nova Pro $0.80 / $3.20
Z.ai (Zhipu)6GLM-5.3-Flash $0.15 / $0.50GLM-5.3 $1.40 / $4.40
MiniMax2MiniMax M3.1 Flash $0.15 / $0.60MiniMax M3 $0.30 / $1.20

Batch, cached-input, cache-write, long-context and non-token prices are in the full data.

Click a provider for its full price list, or a model for its JSON record. If this saves you a scrape, a ⭐ helps other developers find it. To hear about price changes, subscribe to the price-change Atom feed.

Get the data

FormatWhere
JSONapi/v1/prices.json
CSVapi/v1/prices.csv
One modelapi/v1/models/<provider>/<model>.json, e.g. openai/gpt-4.1
Build metadataapi/v1/meta.json (generated_at, last_verified_at)
Hugging Faceaicostbudget-ai/ai-api-pricing and the price history dataset
JavaScript / TypeScriptnpm install ai-api-pricing: prices, comparisons and token-cost estimates (docs)
AI assistants (MCP)npx -y ai-api-pricing-mcp: read-only tools for prices, monthly estimates, comparisons and price changes (setup)

Documentation: dataset page · model schema · pricing contract · methodology · distribution projections

Code examples

Python

python
import json
import urllib.request

url = "https://aicostbudget.github.io/ai-api-pricing-data/api/v1/models/openai/gpt-4.1.json"
with urllib.request.urlopen(url) as response:
    model = json.load(response)

print(model["provider_id"], model["model_id"], model["pricing"]["input"])

JavaScript

js
const url = "https://aicostbudget.github.io/ai-api-pricing-data/api/v1/models/openai/gpt-4.1.json";

async function main() {
  const response = await fetch(url);
  const model = await response.json();

  console.log(model.provider_id, model.model_id, model.pricing.input);
}

main();

Interactive Tools

Pricing Beyond Chat Tokens

Some APIs bill per character, per image or per page instead of per chat token. These website pages compare them:

Explore Pricing by Provider

ProviderPricing pageCoverage
OpenAIOpenAI API pricingGPT models, cached input, cache-write pricing, batch and alternative processing modes, and long-context tiers
AnthropicAnthropic API pricingClaude models, prompt caching, cache-write pricing, and batch pricing
Google GeminiGoogle Gemini API pricingGemini models, multimodal pricing, TTS, batch pricing, and cached input
xAIxAI API pricingGrok models, long-context tiers, processing-mode pricing, and speech/transcription pricing
DeepSeekDeepSeek API pricingDeepSeek chat and reasoning models, including cached-input pricing where available
Mistral AIMistral AI API pricingMistral model pricing with structured source and verification metadata
CohereCohere API pricingCohere model pricing and supported non-token services
Moonshot AIMoonshot AI API pricingKimi model pricing with automatic prefix-cache hit rates
Alibaba QwenAlibaba Qwen API pricingQwen list prices for the International (Singapore) scope, including per-request 256K tiers
MetaMeta Muse API pricingMuse Wonder and Muse Spark Standard-mode prices from Meta Model API
PerplexityPerplexity Sonar API pricingSonar token prices, plus the per-call web search and fetch fees billed on top
Amazon NovaAmazon Nova API pricingNova 2 Lite, Pro, Lite and Micro on Amazon Bedrock, with batch and cached input rates
Z.ai (Zhipu)Z.ai GLM API pricingGLM-5.3, GLM-5 and GLM-4.7 international USD prices with cached input
MiniMaxMiniMax API pricingMiniMax M3 and M3.1 Flash international USD prices with long-context, Priority and cached input rates

Dataset Trust & Freshness

This repository publishes a versioned dataset and read-only static API for AI API pricing. It is designed for developers, SaaS builders, FinOps teams, researchers, technical writers, and AI systems that need maintained pricing records instead of ad hoc scraped snippets.

This project is maintained as an independent public dataset by AICostBudget.

Why this dataset?

  • Source-linked pricing records
  • Unknown or unverified values remain null, never 0
  • Versioned JSON and CSV outputs
  • Per-model history files
  • Dated full snapshots
  • Read-only static API
  • Suitable for calculators, dashboards, cost analysis, and AI FinOps tooling

The weekly freshness workflow checks source URLs and stale last_verified_at values. It does not guess, infer, or overwrite prices automatically.

Use Cases

  • Compare AI model prices
  • Estimate monthly AI API cost
  • Build LLM cost dashboards
  • Plan SaaS AI feature budgets
  • Track model pricing changes

Dataset Coverage

The dataset covers multiple AI providers and supports both token-based and non-token pricing structures.

Coverage includes:

  • Standard input and output token pricing
  • Cached input and cache-write pricing
  • Batch and alternative processing modes
  • Long-context, usage-tier, and conditional pricing
  • Multimodal and non-token pricing
  • TTS, speech, and transcription pricing
  • Model lifecycle, provenance, and verification metadata
  • Structured conditional pricing components

Fields

The CSV output uses the following fields:

FieldMeaning
provider_idStable provider identifier.
model_idStable model identifier within the provider.
display_nameHuman-readable model name.
model_familyModel family or grouping when available.
statusModel availability or lifecycle status.
currencyPricing currency.
unitPricing unit, such as per-token or per-million-token billing units.
inputInput token price for the listed unit.
outputOutput token price for the listed unit.
cached_inputCached input token price when available.
cache_writeCache write price when available.
batch_inputBatch input token price when available.
batch_outputBatch output token price when available.
official_source_urlProvider page or document URL used for source checking.
accessed_atDate when the source was accessed.
last_verified_atDate when the record was last verified.
effective_fromDate when the listed pricing became effective, if known.
notesAdditional context or caveats for the record.

API Reference

The static API is published through GitHub Pages:

  • /api/v1/prices.json
  • /api/v1/prices.csv
  • /api/v1/meta.json
  • /api/v1/providers/<provider>.json
  • /api/v1/models/<provider>/<model>.json

Unknown or unverified prices are represented as null, never 0.

The CSV output includes normalized pricing fields for provider, model, pricing unit, source URL, verification dates, and notes.

Historical Pricing

To read the history instead of parsing it, see the LLM API price history page.

Per-model history files are stored under:

text
data/history/<provider>/<model>.jsonl

Dated full snapshots are stored under:

text
data/snapshots/<YYYY-MM-DD>/prices.json
data/snapshots/<YYYY-MM-DD>/prices.csv

The first pricing release of a UTC day uses the plain date. A later release on the same UTC day gets a sequence suffix (2026-10-21-2, 2026-10-21-3, …) so earlier snapshots are never rewritten. Snapshots order by date, then sequence; the date part is the event detected_at date.

Price changes between snapshots are recorded as events in data/price-change-events/events.jsonl; see price change events for the rules.

Older price changes from OpenAI, Anthropic, Google, DeepSeek, Mistral, Cohere and xAI, going back to 2024, are in data/archive-history/price-changes-2024-2026.v1.json. Each one links the archived pricing page before and after the change; see archived price changes.

Cost per successful task

Token prices are only half of the bill: retries and fallbacks decide what one correct answer costs. examples/llm_cost_diagnostics.py splits first-attempt, retry and fallback spend from your own attempt logs, and the open LLM cost-per-task benchmark measures it on 16 tasks with your own API keys. Its first run found a flagship model matching a cheap one on accuracy at 5–9× the cost per successful task.

Methodology

Prices are accepted only from official provider pricing pages, official documentation, official APIs, or official announcements. Third-party calculators, SEO pages, Reddit posts, and competitor aggregators are not used as final price sources.

See METHODOLOGY.md.

Cite this dataset

For reproducible research, cite the frozen v1.1.0 release:

AICostBudget. AICostBudget AI API Pricing Dataset, v1.1.0 (snapshot 2026-09-30). https://doi.org/10.5281/zenodo.23087250.

The DOI identifies this fixed release, not the latest data. CITATION.cff provides its machine-readable citation metadata. The canonical live dataset continues to update; for current operational use, cite that URL with your access date. The export's generated_at and last_verified_at timestamps are separate from the access date. See the release process for projection and checksum rules.

Contributing

Contributions are welcome when they include official sources and preserve null for unknown values. See CONTRIBUTING.md.

License

Code is licensed under MIT in LICENSE-CODE. Data is licensed under Creative Commons Attribution 4.0 in LICENSE-DATA.

Disclaimer

AI API prices change frequently. Always verify official provider pricing pages before making production budget decisions.

This dataset is informational and may lag provider pricing changes. Provider names and trademarks belong to their respective owners. This project is not affiliated with, endorsed by, or sponsored by any listed provider.

Similar modules

Browse Price comparison