DEV Community

Cover image for I built a free API that tracks real-time pricing for GPT-4o, Claude, Gemini and 100+ AI models
Zak
Zak

Posted on

I built a free API that tracks real-time pricing for GPT-4o, Claude, Gemini and 100+ AI models

There are now 100+ AI models available.
GPT-4o, Claude 3.5, Gemini 2.5, Mistral,
Grok, LLaMA — and the pricing changes constantly.

Every time I started a new project I'd spend
20 minutes across 6 different websites just
to compare costs. So I built a solution.

What I built

Octopus AI Model Intel — a REST API that tracks
real-time pricing, context windows and capabilities
for 133+ models across OpenAI, Anthropic, Google,
Mistral, xAI, DeepSeek and Meta.

How it works

Built on Cloudflare Workers. Pulls live data from
OpenRouter's public API automatically. Zero
maintenance — new models appear automatically
when they launch.

The endpoints

GET /pricing → all 133 models cheapest first
GET /compare?models=gpt-4o,claude-3.5-sonnet
GET /cheapest?task=code → best model for your task
GET /providers → provider health and stats
GET /search?q=haiku → search by name

Try it free

Website: OCTOPUS AI INTEL
API: Find out here

Free tier: 100 calls/month, no credit card needed.

Built this in a week with zero budget.
Would love feedback!

Top comments (0)