Dataset Viewer
Auto-converted to Parquet Duplicate
provider_id
stringclasses
7 values
model_id
stringlengths
2
22
display_name
stringlengths
2
36
model_family
stringlengths
3
13
status
stringclasses
1 value
currency
stringclasses
1 value
unit
stringclasses
1 value
input
float64
0.14
5
output
float64
0.28
30
cached_input
float64
0
0.5
cache_write
float64
1.25
6.25
batch_input
float64
0.15
2.5
batch_output
float64
0.75
15
official_source_url
stringclasses
10 values
accessed_at
stringdate
2026-07-27 00:00:00
2026-07-27 00:00:00
last_verified_at
stringdate
2026-07-27 00:00:00
2026-07-27 00:00:00
effective_from
stringclasses
2 values
notes
stringlengths
43
314
anthropic
claude-haiku-4.5
Claude Haiku 4.5
Claude Haiku
active
USD
1M tokens
1
5
0.1
1.25
0.5
2.5
https://docs.anthropic.com/en/docs/about-claude/pricing
2026-07-27T00:00:00Z
2026-07-27T00:00:00Z
null
cache_write stores the 5-minute write rate.
anthropic
claude-opus-4.8
Claude Opus 4.8
Claude Opus
active
USD
1M tokens
5
25
0.5
6.25
2.5
12.5
https://docs.anthropic.com/en/docs/about-claude/pricing
2026-07-27T00:00:00Z
2026-07-27T00:00:00Z
null
Anthropic table columns are input, 5-minute cache write, 1-hour cache write, cache read, and output. cache_write stores the 5-minute write rate.
anthropic
claude-sonnet-4.6
Claude Sonnet 4.6
Claude Sonnet
active
USD
1M tokens
3
15
0.3
3.75
1.5
7.5
https://docs.anthropic.com/en/docs/about-claude/pricing
2026-07-27T00:00:00Z
2026-07-27T00:00:00Z
null
cache_write stores the 5-minute write rate.
anthropic
claude-sonnet-5-intro
Claude Sonnet 5 introductory pricing
Claude Sonnet
active
USD
1M tokens
2
10
0.2
2.5
1
5
https://www.anthropic.com/news/claude-sonnet-5
2026-07-27T00:00:00Z
2026-07-27T00:00:00Z
2026-06-30
Introductory pricing applies through 2026-08-31 and standard pricing starts 2026-09-01. V1 must not switch early to the standard $3/M input and $15/M output rates.
cohere
aya-expanse-32b
Aya Expanse 32B
Aya
active
USD
1M tokens
0.5
1.5
null
null
null
null
https://cohere.com/pricing
2026-07-27T00:00:00Z
2026-07-27T00:00:00Z
null
Cohere official pricing page states Aya Expanse 8B and 32B API pricing is $0.50/1M input and $1.50/1M output.
cohere
command-a-plus
Command A+
Command
active
USD
1M tokens
null
null
null
null
null
null
https://docs.cohere.com/docs/command-a-plus
2026-07-27T00:00:00Z
2026-07-27T00:00:00Z
null
Cohere's official Command A+ page states that access is free until applicable rate limits are reached and that production use is available through Model Vault. Another official Cohere page shows per-token pricing for the same model ID, so V1 keeps token pricing null until the official documentation is reconciled.
cohere
command-r-plus-08-2024
Command R+ 08-2024
Command R
active
USD
1M tokens
2.5
10
null
null
null
null
https://cohere.com/pricing
2026-07-27T00:00:00Z
2026-07-27T00:00:00Z
2024-08-01
Cohere official pricing page lists Command R+ 08-2024 at $2.50/1M input tokens and $10.00/1M output tokens.
deepseek
deepseek-v4-flash
DeepSeek V4 Flash
DeepSeek V4
active
USD
1M tokens
0.14
0.28
0.0028
null
null
null
https://api-docs.deepseek.com/quick_start/pricing
2026-07-27T00:00:00Z
2026-07-27T00:00:00Z
null
DeepSeek labels input cache miss as input price and cache hit as cached_input.
deepseek
deepseek-v4-pro
DeepSeek V4 Pro
DeepSeek V4
active
USD
1M tokens
0.435
0.87
0.003625
null
null
null
https://api-docs.deepseek.com/quick_start/pricing
2026-07-27T00:00:00Z
2026-07-27T00:00:00Z
null
DeepSeek labels input cache miss as input price and cache hit as cached_input.
google-gemini
gemini-2.5-flash
Gemini 2.5 Flash
Gemini 2.5
active
USD
1M tokens
0.3
2.5
0.03
null
0.15
1.25
https://ai.google.dev/gemini-api/docs/pricing
2026-07-27T00:00:00Z
2026-07-27T00:00:00Z
null
Rates are for text/image/video input; Google lists separate audio rates in the official pricing table.
google-gemini
gemini-2.5-pro
Gemini 2.5 Pro
Gemini 2.5
active
USD
1M tokens
1.25
10
0.125
null
0.625
5
https://ai.google.dev/gemini-api/docs/pricing
2026-07-27T00:00:00Z
2026-07-27T00:00:00Z
null
Rates are for prompts up to 200k tokens. Google lists higher rates above 200k tokens in the official pricing table.
mistral-ai
mistral-large
Mistral Large 3
Mistral Large
active
USD
1M tokens
0.5
1.5
0.05
null
0.25
0.75
https://mistral.ai/pricing/api/
2026-07-27T00:00:00Z
2026-07-27T00:00:00Z
null
mistral-large-latest currently maps to Mistral Large 3. Standard price is $0.50/M input and $1.50/M output. Cached input receives a 90% discount. Batch processing receives a 50% discount.
openai
gpt-4.1
GPT-4.1
GPT-4.1
active
USD
1M tokens
2
8
0.5
null
1
4
https://platform.openai.com/docs/pricing
2026-07-27T00:00:00Z
2026-07-27T00:00:00Z
null
OpenAI official pricing page lists standard and batch rates per 1M tokens.
openai
gpt-5
GPT-5
GPT-5
active
USD
1M tokens
1.25
10
0.125
null
0.625
5
https://platform.openai.com/docs/pricing
2026-07-27T00:00:00Z
2026-07-27T00:00:00Z
null
OpenAI official pricing page lists standard and batch rates per 1M tokens.
openai
gpt-5.4-mini
GPT-5.4 mini
GPT-5.4
active
USD
1M tokens
0.75
4.5
0.075
null
0.375
2.25
https://platform.openai.com/docs/pricing
2026-07-27T00:00:00Z
2026-07-27T00:00:00Z
null
OpenAI official pricing page lists standard and batch rates per 1M tokens.
openai
gpt-5.5
GPT-5.5
GPT-5.5
active
USD
1M tokens
5
30
0.5
null
2.5
15
https://platform.openai.com/docs/pricing
2026-07-27T00:00:00Z
2026-07-27T00:00:00Z
null
OpenAI official pricing page lists standard and batch rates per 1M tokens. Batch prices are 50% of the listed standard price where shown.
openai
gpt-5.6-luna
GPT-5.6 Luna
GPT-5.6
active
USD
1M tokens
1
6
0.1
1.25
0.5
3
https://developers.openai.com/api/docs/pricing
2026-07-27T00:00:00Z
2026-07-27T00:00:00Z
null
OpenAI official pricing page lists Standard, Batch, Flex, and Priority rates per 1M tokens. Public V1 fields store Standard short-context prices and Batch short-context prices.
openai
gpt-5.6-sol
GPT-5.6 Sol
GPT-5.6
active
USD
1M tokens
5
30
0.5
6.25
2.5
15
https://developers.openai.com/api/docs/pricing
2026-07-27T00:00:00Z
2026-07-27T00:00:00Z
null
OpenAI official pricing page lists Standard, Batch, Flex, and Priority rates per 1M tokens. Public V1 fields store Standard short-context prices and Batch short-context prices.
openai
gpt-5.6-terra
GPT-5.6 Terra
GPT-5.6
active
USD
1M tokens
2.5
15
0.25
3.125
1.25
7.5
https://developers.openai.com/api/docs/pricing
2026-07-27T00:00:00Z
2026-07-27T00:00:00Z
null
OpenAI official pricing page lists Standard, Batch, Flex, and Priority rates per 1M tokens. Public V1 fields store Standard short-context prices and Batch short-context prices.
openai
o3
o3
o-series
active
USD
1M tokens
2
8
0.5
null
1
4
https://platform.openai.com/docs/pricing
2026-07-27T00:00:00Z
2026-07-27T00:00:00Z
null
OpenAI official pricing page lists standard and batch rates per 1M tokens.
xai
grok-4.3
Grok 4.3
Grok 4
active
USD
1M tokens
1.25
2.5
0.2
null
1
2
https://docs.x.ai/developers/pricing
2026-07-27T00:00:00Z
2026-07-27T00:00:00Z
null
V1 stores short-context pricing. The long-context threshold is 200K tokens. Grok 4.3 batch pricing receives a 20% discount. Long-context prices are not stored in the current short-context fields.

AI API Pricing Dataset

This dataset provides AI API model pricing data for cost estimation, LLM budget planning, and model price comparison.

It is a maintained and curated public dataset for developers, SaaS builders, AI FinOps teams, researchers, and technical writers who need machine-readable AI API pricing records. AI API prices change frequently, so production budget decisions should always be verified against provider pricing pages, contracts, billing dashboards, and invoices.

This Hugging Face repository is a public dataset distribution for aicostbudget-ai/ai-api-pricing. The GitHub repository remains the place for methodology, validation history, issues, and contributions.

Website Tools

Use these AICostBudget tools with the dataset:

Dataset contents

This Hugging Face dataset publishes:

  • train.csv - the CSV snapshot used by the Hugging Face Dataset Viewer
  • prices.csv - the normalized downloadable CSV representation
  • prices.json - the complete machine-readable JSON representation
  • meta.json - dataset version, generation time, verification date, and coverage metadata

Unknown or insufficiently verified prices are represented as null, never 0.

Coverage

Coverage depends on the current dataset version. Current provider coverage may include:

  • OpenAI
  • Anthropic Claude
  • Google Gemini
  • DeepSeek
  • xAI Grok
  • Mistral AI
  • Cohere

Use Cases

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

Data fields

The CSV files use normalized pricing fields. Common fields include:

Field Description
provider_id Stable provider identifier
model_id Stable model identifier
display_name Human-readable model name
model_family Model family or product line
status Current record status
currency Pricing currency
unit Pricing unit, normally per 1 million tokens
input Standard input-token price
output Standard output-token price
cached_input Cached-input or cache-read price where available
cache_write Cache-write price where available
batch_input Batch input-token price where available
batch_output Batch output-token price where available
official_source_url Provider page or document URL used for source checking
accessed_at Date and time the source was accessed
last_verified_at Most recent verification date
effective_from Pricing effective date where available
notes Source interpretation and pricing notes

Load with pandas

import pandas as pd

url = (
    "https://huggingface.co/datasets/"
    "aicostbudget-ai/ai-api-pricing/resolve/main/train.csv"
)

pricing = pd.read_csv(url)

print(pricing.head())
print(pricing["provider_id"].value_counts())

Load with Hugging Face Datasets

from datasets import load_dataset

pricing = load_dataset(
    "aicostbudget-ai/ai-api-pricing",
    split="train",
)

print(pricing)
print(pricing[0])

The train split represents the current published pricing snapshot. This dataset is not intended as model-training supervision data.

Download the published files

CSV snapshot used by the Dataset Viewer:

https://huggingface.co/datasets/aicostbudget-ai/ai-api-pricing/resolve/main/train.csv

Normalized CSV:

https://huggingface.co/datasets/aicostbudget-ai/ai-api-pricing/resolve/main/prices.csv

Complete JSON:

https://huggingface.co/datasets/aicostbudget-ai/ai-api-pricing/resolve/main/prices.json

Dataset metadata:

https://huggingface.co/datasets/aicostbudget-ai/ai-api-pricing/resolve/main/meta.json

Public static API

The source repository also publishes a read-only static API through GitHub Pages:

https://aicostbudget.github.io/ai-api-pricing-data/api/v1/prices.json
https://aicostbudget.github.io/ai-api-pricing-data/api/v1/prices.csv
https://aicostbudget.github.io/ai-api-pricing-data/api/v1/meta.json

Provider-level and model-level endpoints are also available in the source repository.

Data provenance

Prices are curated from provider pricing pages, product documentation, provider APIs, or provider announcements when available.

Third-party calculators, search snippets, forum posts, and competitor aggregators are not used as final price evidence.

Full methodology:

View METHODOLOGY.md

Freshness and updates

The GitHub source repository includes automated checks for:

  • Unreachable provider source URLs
  • Stale last_verified_at values
  • Invalid or incomplete generated data
  • Schema and dataset validation failures

The automated workflows do not guess or automatically replace prices. For the latest dataset version and verification information, inspect meta.json.

Limitations

  • Provider pricing may change before the next verified update.
  • Some providers use regional, tiered, contract-specific, or negotiated pricing.
  • Some models may have different prices for long-context requests or special service tiers.
  • Unknown or insufficiently verified fields remain null.
  • A published model record does not imply endorsement or partnership.
  • Final billing decisions should be verified against the provider's pricing page, contract, billing dashboard, and invoice.

Source of truth

GitHub repository:

github.com/aicostbudget/ai-api-pricing-data

Production pricing data hub:

AICostBudget AI API Pricing Dataset

AI API Cost Calculator:

AICostBudget AI API Cost Calculator

Model Pricing Comparison:

AICostBudget Model Pricing Comparison

AI Budget Planner:

AICostBudget AI Budget Planner

Contributing

Contributions are welcome when they:

  • Include a provider source
  • Preserve null for unknown or unverified prices
  • Follow the repository schema and methodology
  • Pass the existing build, validation, and test suite

See:

CONTRIBUTING.md

License

The dataset is licensed under the Creative Commons Attribution 4.0 International License.

The source repository code is separately licensed under MIT.

Citation

AICostBudget. AICostBudget AI API Pricing Dataset.
https://github.com/aicostbudget/ai-api-pricing-data

Citation metadata is also available in:

CITATION.cff

Disclaimer

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

This dataset is informational and may lag provider pricing changes. AICostBudget is independent and is not affiliated with, endorsed by, or sponsored by OpenAI, Anthropic, Google, xAI, DeepSeek, Mistral AI, Cohere, or any other listed provider. Provider names and trademarks belong to their respective owners.

Downloads last month
116