Free LLM Pricing API
Every model and price on this site is published as an openly-licensed dataset. No API key, no rate limit, no signup. Use it in your app, your spreadsheet, your blog post, your research paper. Licensed under CC BY 4.0 — just link back to llmcalculator.net.
Endpoints
| Path | Format | Returns |
|---|---|---|
| /api/models.json | JSON | All current models with input/output/context |
| /api/models.csv | CSV | Same data as a spreadsheet-ready CSV |
| /llm-pricing-history | HTML / data | Historical pricing 2023–2026 (citable dataset) |
CORS is open (Access-Control-Allow-Origin: *) so you can fetch from the browser.
Sample response
GET /api/models.json
{
"updated": "2026-06-25",
"currency": "USD",
"unit": "per_1m_tokens",
"models": [
{
"id": "gpt-5.5",
"provider": "openai",
"name": "GPT-5.5",
"input": 1.25,
"output": 10,
"context": 400000
},
{
"id": "claude-sonnet-4-6",
"provider": "anthropic",
"name": "Claude Sonnet 4.6",
"input": 3,
"output": 15,
"context": 1000000
},
{
"id": "gemini-3-1-pro",
"provider": "google",
"name": "Gemini 3.1 Pro",
"input": 1.25,
"output": 10,
"context": 2000000
},
{
"id": "deepseek-v4-flash",
"provider": "deepseek",
"name": "DeepSeek V4 Flash",
"input": 0.07,
"output": 0.27,
"context": 128000
}
]
}Quick examples
cURL
curl https://llmcalculator.net/api/models.jsonJavaScript
const r = await fetch("https://llmcalculator.net/api/models.json");
const { models } = await r.json();
const cheapest = models.sort((a,b) => a.input - b.input)[0];Python
import requests
models = requests.get("https://llmcalculator.net/api/models.json").json()["models"]
print(sorted(models, key=lambda m: m["input"])[0])Attribution
If you use this data, please credit:
Source: LLMCalculator.net — https://llmcalculator.net (CC BY 4.0)