ai-api-pricing-data
LLM & AI API pricing data as JSON, CSV and a free static API: input, output, cached and batch prices for OpenAI, Claude, Gemini, Grok, DeepSeek, Mistral, Qwen, Kimi and more. Every price source-linked and dated, with history. npm package + MCP server.
Install / Use
claude mcp add aicostbudget -- npx -y github:aicostbudget/ai-api-pricing-dataIf the server publishes to npm under a different name, use that package instead β check the repo README.
MCP Server
Model Context Protocol server
Quality Score
Category
AI & Machine LearningSupported Platforms
Our assessment of ai-api-pricing-data
ai-api-pricing-data scores 83/100 on our quality scale, 665th of 939 AI & Machine Learning skills we index.
Its MCP Server is 21 KB long, well organised into 22 sections with 5 code examples: a thorough specification that gives an agent plenty to work with.
It has 3 GitHub stars, so there is little community track record yet; judge it on its content.
Maintenance, license and trust
- The repository was last updated today, so ai-api-pricing-data is actively maintained.
- It is released under the MIT license, a permissive license that allows use, modification and commercial use with attribution.
- Its trust signals score 92/100, with 1 caution from licensing, adoption, age or documentation. These come from repository metadata, not a code audit β read the skill file before letting an agent act on it.
Safety scan
No issues foundOur scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands.
Automated pattern scan on 2026-11-02. It catches known dangerous patterns, not every risk β read a skill before letting an agent act on it.
ai-api-pricing-data compared with similar skills
All 4 of these similar skills score higher than ai-api-pricing-data; compare them before choosing.
| Skill | Score | Stars | Updated | Format |
|---|---|---|---|---|
| ai-api-pricing-data (this skill)by aicostbudget | 83 | 3 | today | MCP Server |
| claude-memby thedotmack | 100 | 109.6k | today | CLAUDE.md |
| Agent-Reachby Panniantong | 100 | 107.7k | 1d ago | CLAUDE.md |
| Understand-Anythingby Egonex-AI | 100 | 89.7k | 7d ago | CLAUDE.md |
| headroomby headroomlabs-ai | 100 | 78.6k | 1d ago | CLAUDE.md |
Frequently asked questions
- How do I install ai-api-pricing-data?
- Run
claude mcp add aicostbudget -- npx -y github:aicostbudget/ai-api-pricing-data. The install tabs above show the steps for each supported agent. - Which AI agents does ai-api-pricing-data work with?
- It is written for Claude Code, Claude Desktop and Gemini CLI, as a MCP Server file. Other agents that read the same format can often use it too.
- Is ai-api-pricing-data safe to use?
- Our scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. It is MIT-licensed and scores 92/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
- Is ai-api-pricing-data still maintained?
- The repository was last updated today, so ai-api-pricing-data is actively maintained.
Skill content
View source on GitHubAI 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 and Meta. Every record links to the provider's own pricing page and carries the date it was last checked. Unknown prices stay null, never 0.
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
<!-- price-table:start (generated by scripts/update_readme_prices.py; do not edit) -->USD per 1M tokens, standard list price. 130 models tracked, last verified 2026-10-31.
| Provider | Active token-priced models | Lowest output price (input / output) | Highest output price (input / output) | | --- | ---: | --- | --- | | OpenAI | 14 | GPT-6 Luna $0.10 / $0.50 | GPT-5.5 Pro $30.00 / $180.00 | | Anthropic | 11 | Claude Haiku 5.5 $0.10 / $0.50 | Claude Mythos 5.1 $10.00 / $50.00 | | Google Gemini | 12 | Gemini 3.1 Flash-Lite $0.25 / $1.50 | Gemini 3.5 Transcribe Live $3.50 / $21.00 | | xAI | 6 | Grok 4.20 (Non-Reasoning) $1.25 / $2.50 | Grok 4.7 $2.00 / $6.00 | | DeepSeek | 2 | DeepSeek V4.1 Flash $0.30 / $1.20 | DeepSeek V4 Pro $1.32 / $3.96 | | Mistral AI | 7 | Ministral 3 3B $0.10 / $0.10 | Mistral Medium 3.5 $1.50 / $7.50 | | Cohere | 2 | Aya Expanse 32B $0.50 / $1.50 | Command R+ 08-2024 $2.50 / $10.00 | | Moonshot AI (Kimi) | 3 | Kimi K3.1 Pro $2.00 / $10.00 | Kimi K3.1 Pro Highspeed $4.00 / $20.00 | | Alibaba Qwen | 4 | Qwen Flash $0.05 / $0.40 | Qwen3.8 Max $2.00 / $6.00 | | Meta | 1 | Muse Spark 1.3 $1.25 / $4.25 | same model |
Batch, cached-input, cache-write, long-context and non-token prices are in the full data.
<!-- price-table:end -->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
| Format | Where |
| --- | --- |
| JSON | api/v1/prices.json |
| CSV | api/v1/prices.csv |
| One model | api/v1/models/<provider>/<model>.json, e.g. openai/gpt-4.1 |
| Build metadata | api/v1/meta.json (generated_at, last_verified_at) |
| Hugging Face | aicostbudget-ai/ai-api-pricing and the price history dataset |
| JavaScript / TypeScript | npm 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
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
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
- Calculate your API cost
- Compare AI model prices
- Track AI model price changes
- Analyze retry cost
- Compare model-switch cost
- Estimate prompt caching savings
- Find the cheapest LLM API for a use case
- Compare AI coding plans (Claude Code, Codex, Cursor, Copilot)
Pricing Beyond Chat Tokens
Some APIs bill per character, per image or per page instead of per chat token. These website pages compare them:
- Embedding API pricing (per 1M tokens)
- TTS API pricing (per 1M characters)
- Image generation API pricing (per image)
- OCR API pricing (per 1,000 pages)
Explore Pricing by Provider
| Provider | Pricing page | Coverage | | --- | --- | --- | | OpenAI | [OpenAI API pricing](https:/
Truncated for display β read the full file on GitHub.
Related Skills
claude-mem
109.6kPersistent Context Across Sessions for Every Agent β Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More
Agent-Reach
107.7kGive your AI agent eyes to see the entire internet. Read & search Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu β one CLI, zero API fees.
Understand-Anything
89.7kGraphs that teach > graphs that impress. Turn any code into an interactive knowledge graph you can explore, search, and ask questions about. Works with Claude Code, Codex, Cursor, Copilot, Gemini CLI, and more.
headroom
78.6kCompress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.
Languages
Trust signals
From repository metadata: license, adoption, age and documentation. Not a code audit β see the Safety scan above for what the skill file itself contains.
