File size: 8,528 Bytes
2d0958b 33a16f1 2d0958b 33a16f1 daba1cd 33a16f1 daba1cd 33a16f1 e8337ec 2d0958b daba1cd f6e264f 33a16f1 f6e264f 3f1fc8e 33a16f1 3f1fc8e 33a16f1 f6e264f 3f1fc8e f6e264f 3f1fc8e f6e264f 3f1fc8e f6e264f 3f1fc8e f6e264f 3f1fc8e f6e264f 3f1fc8e f6e264f 3f1fc8e 33a16f1 f6e264f 33a16f1 f6e264f 33a16f1 3f1fc8e f6e264f 3f1fc8e daba1cd 3f1fc8e daba1cd 3f1fc8e daba1cd 33a16f1 daba1cd 33a16f1 daba1cd 33a16f1 daba1cd 33a16f1 daba1cd 33a16f1 3f1fc8e 33a16f1 daba1cd 33a16f1 3f1fc8e 33a16f1 daba1cd 33a16f1 3f1fc8e 33a16f1 daba1cd 33a16f1 3f1fc8e 33a16f1 daba1cd 33a16f1 3f1fc8e 33a16f1 daba1cd 33a16f1 daba1cd 33a16f1 daba1cd 33a16f1 daba1cd 3f1fc8e daba1cd 3f1fc8e daba1cd 3f1fc8e daba1cd 33a16f1 3f1fc8e daba1cd 3f1fc8e daba1cd 3f1fc8e daba1cd 3f1fc8e daba1cd 3f1fc8e daba1cd 33a16f1 daba1cd 3f1fc8e f6e264f 3f1fc8e | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 | ---
pretty_name: AICostBudget AI API Pricing Dataset
license: cc-by-4.0
language:
- en
tags:
- tabular
- ai-api-pricing
- llm-pricing
- ai-model-pricing
- token-cost
- ai-finops
- pricing-data
- open-data
- csv
- json
- developer-tools
configs:
- config_name: default
data_files:
- split: train
path: train.csv
---
# 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:
- [AI API Cost Calculator](https://aicostbudget.com/en/ai-api-cost-calculator?utm_source=huggingface&utm_medium=dataset&utm_campaign=ai_api_pricing)
- [Model Pricing Comparison](https://aicostbudget.com/en/model-pricing-comparison?utm_source=huggingface&utm_medium=dataset&utm_campaign=ai_api_pricing)
- [AI Budget Planner](https://aicostbudget.com/en/ai-budget-planner?utm_source=huggingface&utm_medium=dataset&utm_campaign=ai_api_pricing)
## 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
```python
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
```python
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:
```text
https://huggingface.co/datasets/aicostbudget-ai/ai-api-pricing/resolve/main/train.csv
```
Normalized CSV:
```text
https://huggingface.co/datasets/aicostbudget-ai/ai-api-pricing/resolve/main/prices.csv
```
Complete JSON:
```text
https://huggingface.co/datasets/aicostbudget-ai/ai-api-pricing/resolve/main/prices.json
```
Dataset metadata:
```text
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:
```text
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](https://github.com/aicostbudget/ai-api-pricing-data/blob/main/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](https://github.com/aicostbudget/ai-api-pricing-data)
Production pricing data hub:
[AICostBudget AI API Pricing Dataset](https://aicostbudget.com/en/ai-api-pricing-data?utm_source=huggingface&utm_medium=dataset&utm_campaign=ai_api_pricing)
AI API Cost Calculator:
[AICostBudget AI API Cost Calculator](https://aicostbudget.com/en/ai-api-cost-calculator?utm_source=huggingface&utm_medium=dataset&utm_campaign=ai_api_pricing)
Model Pricing Comparison:
[AICostBudget Model Pricing Comparison](https://aicostbudget.com/en/model-pricing-comparison?utm_source=huggingface&utm_medium=dataset&utm_campaign=ai_api_pricing)
AI Budget Planner:
[AICostBudget AI Budget Planner](https://aicostbudget.com/en/ai-budget-planner?utm_source=huggingface&utm_medium=dataset&utm_campaign=ai_api_pricing)
## 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](https://github.com/aicostbudget/ai-api-pricing-data/blob/main/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.
- [Data license](https://github.com/aicostbudget/ai-api-pricing-data/blob/main/LICENSE-DATA)
- [Code license](https://github.com/aicostbudget/ai-api-pricing-data/blob/main/LICENSE-CODE)
## Citation
```text
AICostBudget. AICostBudget AI API Pricing Dataset.
https://github.com/aicostbudget/ai-api-pricing-data
```
Citation metadata is also available in:
[CITATION.cff](https://github.com/aicostbudget/ai-api-pricing-data/blob/main/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.
|