Free AI Pricing API — Real-Time LLM Cost Data for 49 Models
A free JSON API that gives you up-to-date pricing for every major AI model. No API key. No signup. Use it in your tools, dashboards, and cost calculators.
If you're building tools that need AI pricing data — cost calculators, budget dashboards, model comparison tools, or billing systems — you've probably tried to scrape provider pricing pages. It's fragile, time-consuming, and breaks every time OpenAI or Anthropic changes their pricing.
I built a free API that solves this. It returns JSON pricing data for 49 AI models across 10 providers, updated within 24 hours of any price change. No authentication required.
The Quick Start
One request gets you all the data:
# Get all pricing data curl https://getapipulse.com/api/pricing # Filter by provider curl https://getapipulse.com/api/pricing?provider=openai # Filter by tier curl https://getapipulse.com/api/pricing?tier=budget
The response includes input/output pricing per 1M tokens, context windows, tier classification, and deprecation status for every model.
{
"id": "openai-gpt5",
"name": "GPT-5",
"provider": "openai",
"tier": "premium",
"input": 1.25,
"output": 10.00,
"context": "272K",
"deprecated": false
}
What's Included
| Provider | Models | Price Range (Input) |
|---|---|---|
| OpenAI | 13 models | $0.08 — $30.00 |
| Anthropic | 9 models | $1.00 — $15.00 |
| 8 models | $0.075 — $2.00 | |
| DeepSeek | 4 models | $0.14 — $0.44 |
| Mistral | 3 models | $0.10 — $1.50 |
| Cohere | 3 models | $0.50 — $2.50 |
| Meta | 4 models | $0.10 — $0.88 |
| xAI | 2 models | $0.30 — $1.25 |
| Moonshot | 1 model | $0.95 |
| AI21 | 2 models | $2.00 |
Use Cases
1. Cost Calculator
Build a calculator that estimates monthly spend based on token usage:
const res = await fetch('https://getapipulse.com/api/pricing'); const { models } = await res.json(); // Calculate monthly cost for GPT-5 const gpt5 = models.find(m => m.id === 'openai-gpt5'); const inputTokens = 1_000_000; // 1M tokens/month const outputTokens = 500_000; const monthlyCost = (inputTokens / 1_000_000) * gpt5.input + (outputTokens / 1_000_000) * gpt5.output; console.log(`GPT-5 monthly: $${monthlyCost.toFixed(2)}`); // → GPT-5 monthly: $6.25
2. Model Comparison Tool
Compare costs across providers to find the cheapest option:
// Find cheapest budget model const budget = models .filter(m => m.tier === 'budget' && !m.deprecated) .sort((a, b) => a.input - b.input); console.log('Cheapest models:'); budget.slice(0, 5).forEach(m => { console.log(` ${m.name}: $${m.input}/$${m.output}`); }); // → GPT-oss 20B: $0.08/$0.35 // → Mistral Small 4: $0.10/$0.30 // → Llama 3.1 8B: $0.10/$0.10
3. Budget Dashboard
Build a real-time dashboard showing current pricing for your team's most-used models. The API includes s-maxage=3600 headers for CDN caching, so it's fast and free at scale.
4. Billing Integration
Use the pricing data to calculate costs in your AI-powered SaaS billing system. Track per-user API costs and pass them through to customers.
Embeddable Badge
Want to show live pricing on your site or README? Use the SVG badge endpoint:

<!-- Embeddable pricing badge for your site -->
<div id="apipulse-badge"></div>
<script src="https://getapipulse.com/badge.js"
data-theme="dark" data-count="4" async></script>
API Endpoints
Full pricing dataset for all 49 models. Filter by provider or tier.
Calculate cost for a specific model and token count.
Find the cheapest model for your workload.
Compare pricing side-by-side for multiple models.
Get model recommendations based on use case and budget.
SVG pricing badge for embedding in docs and READMEs.
Markdown-friendly SVG badge for GitLab, Discord, Slack, and Notion.
Data Format
The full dataset includes:
- Model ID — unique identifier (e.g.,
openai-gpt5) - Name — human-readable name (e.g., "GPT-5")
- Provider — provider slug (e.g.,
openai) - Tier — classification:
premium,mid, orbudget - Input pricing — per 1M tokens (USD)
- Output pricing — per 1M tokens (USD)
- Context window — max context length
- Deprecation status — whether the model is deprecated
Rate Limits
Free tier: 60 requests per minute. No API key required. If you need higher limits for production use, get in touch.
License
The pricing data is released under CC-BY-4.0. Use it in commercial products, dashboards, and tools. Attribution to APIpulse is appreciated but not required.
Need More Than Raw Data?
APIpulse Pro includes saved scenarios, PDF cost reports, price change alerts, and optimization recommendations — all powered by the same pricing data.
Get Pro — $19 →FAQ
Is the APIpulse pricing API really free?
Yes. 100% free, no authentication required. It provides JSON data for 49 AI models across 10 providers. Rate limited to 60 requests per minute.
How often is the pricing data updated?
Pricing data is updated within 24 hours of any provider price change. The APIpulse team monitors all 10 providers for pricing changes. Last verified: Jul 2, 2026.
Can I use the data in commercial products?
Yes. The data is released under CC-BY-4.0. Attribution appreciated but not required.
What's the raw JSON endpoint?
For direct access to the pricing data file (no API wrapper), use https://getapipulse.com/data/pricing.json. Same data, no rate limiting.
Do you track historical pricing?
Not yet. The current API shows current pricing only. Historical tracking is planned for a future release. Pro users will get priority access.
Built by APIpulse — compare AI API pricing across 49 models from 10 providers. Calculate your costs →