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
1.25
15
official_source_url
stringclasses
9 values
accessed_at
stringdate
2026-07-05 00:00:00
2026-07-10 00:00:00
last_verified_at
stringdate
2026-07-05 00:00:00
2026-07-10 00:00:00
effective_from
stringclasses
2 values
notes
stringlengths
43
176
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-05T00:00:00Z
2026-07-05T00: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-05T00:00:00Z
2026-07-05T00: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-05T00:00:00Z
2026-07-05T00: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://docs.anthropic.com/en/docs/about-claude/pricing#claude-sonnet-5-introductory-pricing
2026-07-05T00:00:00Z
2026-07-05T00:00:00Z
2026-07-05
Introductory pricing is listed by Anthropic as effective through 2026-08-31; standard pricing starts 2026-09-01.
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-05T00:00:00Z
2026-07-05T00: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://cohere.com/pricing
2026-07-05T00:00:00Z
2026-07-05T00:00:00Z
null
Cohere official pricing page lists Command A+ but the extracted public page did not expose a confirmed token price. Values are null rather than guessed.
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-05T00:00:00Z
2026-07-05T00: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-05T00:00:00Z
2026-07-05T00: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-05T00:00:00Z
2026-07-05T00: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-05T00:00:00Z
2026-07-05T00: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-05T00:00:00Z
2026-07-05T00: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
Mistral Large
active
USD
1M tokens
2
6
null
null
1
3
https://mistral.ai/pricing
2026-07-05T00:00:00Z
2026-07-05T00:00:00Z
null
Mistral official pricing FAQ states Mistral Large costs $2/M input and $6/M output and batch processing gets 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-05T00:00:00Z
2026-07-05T00: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-05T00:00:00Z
2026-07-05T00: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-05T00:00:00Z
2026-07-05T00: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-05T00:00:00Z
2026-07-05T00: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-10T00:00:00Z
2026-07-10T00: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-10T00:00:00Z
2026-07-10T00: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-10T00:00:00Z
2026-07-10T00: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-05T00:00:00Z
2026-07-05T00: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
null
null
null
null
https://docs.x.ai/developers/models
2026-07-05T00:00:00Z
2026-07-05T00:00:00Z
null
xAI official model page lists Grok 4.3 input and output rates per 1M tokens. Cached and batch rates were not shown in the extracted official model card.

AICostBudget AI API Pricing Dataset

Open, versioned, machine-readable pricing data for major LLM and AI APIs, linked to official provider sources.

This Hugging Face repository is a public distribution mirror.
The GitHub repository is the source of truth for validation, history, methodology, and contributions.

Explore Live Pricing Data · Calculate AI API Cost · View Source on GitHub

Dataset contents

This repository 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

The dataset contains normalized pricing records for major AI API providers and models.

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

Supported providers

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

Why this dataset?

  • Source-linked pricing records
  • Machine-readable CSV and JSON formats
  • Input, output, cached-input, cache-write, and batch fields where available
  • Verification and effective-date metadata
  • Per-model history in the source repository
  • Dated full snapshots in the source repository
  • Suitable for calculators, dashboards, cost analysis, and AI FinOps tooling

The source repository includes freshness checks for source URLs and stale verification dates.

These checks do not guess, infer, or automatically overwrite prices.

Data fields

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 Official provider source
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.

Common use cases

  • Build an AI API cost calculator
  • Compare model input and output pricing
  • Create internal AI FinOps dashboards
  • Audit source-linked pricing records
  • Export normalized pricing data
  • Analyze historical pricing changes
  • Support technical cost research and reporting

Data provenance

Prices are accepted only from:

  • Official provider pricing pages
  • Official product documentation
  • Official APIs
  • Official provider announcements

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

Full methodology:

View METHODOLOGY.md

Freshness and updates

The GitHub source repository includes automated checks for:

  • Unreachable official 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.

Historical pricing

Per-model history files are maintained in the source repository under:

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

Dated full snapshots are maintained under:

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

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 official pricing page, contract, 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

Contributing

Contributions are welcome when they:

  • Include an official 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

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
-