Download the dataset

GET https://apicostcalc.com/pricing.json Full dataset — 387 LLM models + 34 API prices · 88KB · Updated monthly
curl https://apicostcalc.com/pricing.json

The file is a plain JSON with two top-level arrays: llm_models (LLM pricing per 1M tokens) and api_prices (provider service pricing). No auth required.

Data format

LLM models (llm_models array)

{
  "id": "openai/gpt-4o",
  "name": "GPT-4o",
  "provider": "OpenAI",
  "input_per_1m_usd": 2.50,
  "output_per_1m_usd": 10.00,
  "context_k": 128
}
FieldTypeDescription
idstringSlug: provider/model-name
namestringModel display name
providerstringProvider name (OpenAI, Anthropic, etc.)
input_per_1m_usdnumberUSD cost per 1M input tokens
output_per_1m_usdnumberUSD cost per 1M output tokens
context_knumberContext window in thousands of tokens

API provider prices (api_prices array)

{
  "provider": "Stripe",
  "service": "card_processing",
  "price": "3.1% + $0.30",
  "metric": "per successful card charge",
  "free_tier": "",
  "last_verified": "2026-07-15"
}

Coverage

CategoryProviders coveredCount
LLM / AI modelsOpenAI, Anthropic, Google, Mistral, Meta, DeepSeek, xAI, Cohere, Together AI, Fireworks + 20 more387 models
PaymentsStripe, Paddle, PayPal, Adyen, Braintree8 prices
Email APISendGrid, Resend, Postmark, SES, Mailgun7 prices
SMS / VoiceTwilio, Vonage4 prices
Maps / LocationGoogle Maps, HERE, MapBox4 prices
Search / DataAlgolia, Brave Search, Bing Search, Alpha Vantage, CoinGecko6 prices
OtherElevenLabs, Replicate, Deepgram, AssemblyAI and more5+ prices

License & attribution

The data is available under Creative Commons BY 4.0. You can use it in products, research, and commercial applications. Required attribution:

Data source: APICostCalc.com

A link back to apicostcalc.com is appreciated but not required for machine use.

What you can do

Data quality notes

Usage examples

Find the cheapest model for a workload

import json, urllib.request

with urllib.request.urlopen('https://apicostcalc.com/pricing.json') as r:
    data = json.loads(r.read())

# Cost for 1M input + 200k output tokens
models = data['llm_models']
results = [
    (m['name'], m['provider'],
     m['input_per_1m_usd'] * 1 + m['output_per_1m_usd'] * 0.2)
    for m in models if m['input_per_1m_usd'] > 0
]
results.sort(key=lambda x: x[2])
for name, provider, cost in results[:5]:
    print(f"{provider}/{name}: ${cost:.4f}")

JavaScript / Node

const res = await fetch('https://apicostcalc.com/pricing.json');
const { llm_models } = await res.json();
const gpt4o = llm_models.find(m => m.id === 'openai/gpt-4o');
console.log(`GPT-4o input: $${gpt4o.input_per_1m_usd}/1M tokens`);

Need more?

The free dataset is updated monthly and covers the most common providers. If you need:

Contact us — we're building a Pro API tier.