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