132 Models · 24 Providers · Real-time Data

The Single API for LLM Pricing

Developers waste hours comparing AI model pricing across scattered provider docs. One API. Every model. Always current.

132+
Models
24+
Providers
<50ms
Latency

The Problem

AI model pricing is fragmented across dozens of provider docs, constantly changing, and impossible to compare at a glance. Building cost-aware LLM routing means maintaining your own pricing spreadsheet. We solved that.

Built for LLM Engineers

Everything you need to make cost-informed model decisions

$

Cost Calculator

Pass token counts, get exact cost breakdowns including cache pricing. Perfect for budgeting and billing.

Side-by-Side Compare

Compare any models head-to-head: pricing, context windows, capabilities. Make data-driven routing decisions.

{}

Clean JSON API

Consistent response format across all endpoints. Filter by provider, capability, or category. Pagination built in.

MCP Protocol

Native Model Context Protocol support. Let your AI assistant query pricing directly via tool calls.

Edge-Fast

Runs on Cloudflare Workers at 300+ edge locations. Sub-50ms responses globally. Zero cold starts.

📅

Always Current

Pricing data updated with every deploy. Tracks all major providers including cache and batch pricing tiers.

Try It Now

Copy, paste, see results in seconds

Compare Models
curl "https://api.lazy-mac.com/llm-pricing/api/v1/compare?models=gpt-4o,claude-sonnet-4-20250514,gemini-2.5-pro&tokens=1000"
Calculate Cost
curl "https://api.lazy-mac.com/llm-pricing/api/v1/calculate?model=claude-sonnet-4-20250514&input_tokens=100000&output_tokens=5000"

// Response:
{
  "ok": true,
  "data": {
    "model": "claude-sonnet-4-20250514",
    "input_tokens": 100000,
    "output_tokens": 5000,
    "input_cost": 0.30,
    "output_cost": 0.075,
    "total_cost": 0.375,
    "currency": "USD"
  }
}
List Models (filtered)
curl "https://api.lazy-mac.com/llm-pricing/api/v1/models?provider=anthropic&capability=vision"

Supported Providers

24 providers and growing

Ai21
Amazon
Anthropic
Aws-bedrock
Azure
Cerebras
Cohere
Deepseek
Fireworks
Google
Groq
Meta
Minimax
Mistral
Moonshot
Openai
Perplexity
Reka
Sambanova
Together
Voyage
Writer
Xai
Zhipu

Simple Pricing

Start free. Scale when you need to.

Free
$0 /mo
No credit card required
  • 50 requests per day
  • All 132+ models
  • All endpoints
  • JSON responses
  • Community support
Start Free

Model Context Protocol

Let your AI query pricing directly. Our MCP endpoint exposes list_models, compare_models, and calculate_cost as native tools. Drop the URL into Claude Desktop, Cursor, or any MCP-compatible client.


POST https://api.lazy-mac.com/llm-pricing/mcp
MCP