SkillAgentSearch skills...

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-data

If the server publishes to npm under a different name, use that package instead β€” check the repo README.

About this skill
πŸ”Œ

MCP Server

Model Context Protocol server

Quality Score

83/100

Supported Platforms

Claude Code
Claude Desktop
Gemini CLI

Tags

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.

Substance
30/30
Structure
20/20
Description
15/15
Adoption
3/20
Freshness
15/15

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 found

Our 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.

SkillScoreStarsUpdatedFormat
ai-api-pricing-data (this skill)by aicostbudget833todayMCP Server
claude-memby thedotmack100109.6ktodayCLAUDE.md
Agent-Reachby Panniantong100107.7k1d agoCLAUDE.md
Understand-Anythingby Egonex-AI10089.7k7d agoCLAUDE.md
headroomby headroomlabs-ai10078.6k1d agoCLAUDE.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.

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 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.

Last verified Models npm downloads Validate Code license: MIT Data license: CC BY 4.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

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

| Provider | Pricing page | Coverage | | --- | --- | --- | | OpenAI | [OpenAI API pricing](https:/

Truncated for display β€” read the full file on GitHub.

Related Skills

View on GitHub
GitHub Stars3
CategoryAI
Updated16h ago
Forks0

Languages

Python

Trust signals

92/100

From repository metadata: license, adoption, age and documentation. Not a code audit β€” see the Safety scan above for what the skill file itself contains.

1 low
ai-api-pricing-data β€” MCP Server: Install & Safety Check | SkillAgent