This dataset provides AI API model pricing data for cost estimation, LLM budget planning, and model price comparison.
Maintained, curated, machine-readable pricing data for major LLM and AI APIs. Prices change frequently, so production budget decisions should always be checked against the relevant provider pricing pages.
AI API Cost Calculator | Model Pricing Comparison | AI Budget Planner | Download JSON | Download CSV
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. See aicostbudget.com.
- Source-linked pricing records
- Unknown or unverified values remain
null, never0 - 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.
Estimate token usage and monthly AI API costs.
Compare model pricing across providers.
Plan AI feature budgets for products and SaaS applications.
curl -L https://aicostbudget.github.io/ai-api-pricing-data/api/v1/prices.jsoncurl -L https://aicostbudget.github.io/ai-api-pricing-data/api/v1/prices.csvcurl -L https://aicostbudget.github.io/ai-api-pricing-data/api/v1/models/openai/gpt-4.1.jsonimport 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"])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();- Compare AI model prices
- Estimate monthly AI API cost
- Build LLM cost dashboards
- Plan SaaS AI feature budgets
- Track model pricing changes
| Provider | Pricing page |
|---|---|
| OpenAI | OpenAI API pricing |
| Anthropic | Anthropic API pricing |
| Google Gemini | Google Gemini API pricing |
| xAI | xAI API pricing |
| DeepSeek | DeepSeek API pricing |
| Mistral AI | Mistral AI API pricing |
| Cohere | Cohere API pricing |
- OpenAI
- Anthropic Claude
- Google Gemini
- DeepSeek
- xAI Grok
- Mistral AI
- Cohere
The CSV output uses the following fields:
| Field | Meaning |
|---|---|
provider_id |
Stable provider identifier. |
model_id |
Stable model identifier within the provider. |
display_name |
Human-readable model name. |
model_family |
Model family or grouping when available. |
status |
Model availability or lifecycle status. |
currency |
Pricing currency. |
unit |
Pricing unit, such as per-token or per-million-token billing units. |
input |
Input token price for the listed unit. |
output |
Output token price for the listed unit. |
cached_input |
Cached input token price when available. |
cache_write |
Cache write price when available. |
batch_input |
Batch input token price when available. |
batch_output |
Batch output token price when available. |
official_source_url |
Provider page or document URL used for source checking. |
accessed_at |
Date when the source was accessed. |
last_verified_at |
Date when the record was last verified. |
effective_from |
Date when the listed pricing became effective, if known. |
notes |
Additional context or caveats for the record. |
Every model record includes:
official_source_urlaccessed_atlast_verified_ateffective_fromnotes
Freshness checks are designed to surface stale source checks. Final billing decisions should still be verified against the provider's official pricing page, contract, and invoice.
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.
Per-model history files are stored under:
data/history/<provider>/<model>.jsonl
Dated full snapshots are stored under:
data/snapshots/<YYYY-MM-DD>/prices.json
data/snapshots/<YYYY-MM-DD>/prices.csv
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.
Use the citation metadata in CITATION.cff, or cite:
AICostBudget. AICostBudget AI API Pricing Dataset. https://github.com/aicostbudget/ai-api-pricing-data
Contributions are welcome when they include official sources and preserve null for unknown values. See CONTRIBUTING.md.
Code is licensed under MIT in LICENSE-CODE. Data is licensed under Creative Commons Attribution 4.0 in LICENSE-DATA.
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.