AI Decision System
Replayable, offline-verifiable records for AI-assisted go/no-go decisions: experiment promotions, typed model answers and human-approved actions.
Calculate exact API costs for 30+ LLM models including caching and batch discounts. Free, prices verified daily.
Developer toolsTypeScript · JavaScriptGitHub @Leolionel221OnlineOwner unconfirmed
Have you tried it? One tap is enough. No sign-in needed.
No updates detected yet. GitHub releases will appear here.
Owners of public repositories under a personal GitHub account can sign in to verify ownership and manage the introduction themselves. No administrator approval is needed.
Sign in, generate a verification file, and commit it to this repository’s default branch within 30 minutes. Files on other branches or forks do not count. Then check the file below to manage the project without administrator approval. Keep the file to retain your access.
If needed, you will go to sign-in. After signing in, return here and press your chosen verification button again.
Run /nomorevibe verify in your project folder to verify ownership and manage the introduction yourself.
Verify in one minuteAsk about other verification options
Free tool to compare API pricing across 10+ LLMs including caching and Batch API discounts.
Translation pending
Taken from the repository README
Loading the full README. The saved excerpt is shown below.
Calculate and compare API pricing across 10+ LLMs — including caching and Batch API discounts.
AI API pricing has become genuinely complex. Beyond headline input/output rates, modern providers offer:
• Prompt caching — often 10× cheaper than standard input
• Batch API — typically 50% off for non-realtime workloads
• Vision tokens — image-based pricing
• Reasoning tokens — separate pricing for o1/o3-style chain-of-thought
• Fine-tuned models — different pricing tierRead the full README ↗Calculate and compare API pricing across 40+ LLMs — including caching and Batch API discounts. Prices reconciled daily.
🌐 Live demo → · 📝 Blog · 📊 Compare models · 📈 Price changes · 🔌 Free API
AI API pricing has become genuinely complex. Beyond headline input/output rates, modern providers offer:
A simple "$X per 1M tokens" calculation now misses most of the real cost picture. For a typical RAG application, naive cost calculations can be 5-10× off from the actual bill.
This tool surfaces all of those dimensions in one place — so you see what you'd actually pay, not what marketing pages imply.
/changes, with an RSS feedjs-tiktoken; transparent estimates for others (clearly labeled)40+ models from OpenAI, Anthropic, Google, DeepSeek, xAI and Mistral — the current GPT-6, Claude 5.x, Gemini 3.x, DeepSeek V4 and Grok 4.x lines plus the older models people still run in production. New models are added automatically the day they appear in the LiteLLM registry.
The live list is always at /api/v1/models rather than in this README, so it can't go stale.
Each model has a dedicated landing page — e.g. /gpt-6-sol-cost-calculator, /claude-opus-5-5-cost-calculator.
In-depth content on AI API pricing:
This project exposes a free JSON API for the same model pricing data. No authentication, no rate limits for normal use, CORS-enabled, CDN-cached.
# All models
curl https://aicostcalc.net/api/v1/models
# Single model
curl https://aicostcalc.net/api/v1/models/gpt-6-sol
# Lightweight pricing only, with lifecycle status
curl "https://aicostcalc.net/api/v1/pricing?provider=anthropic"
# Price changes and new models since a date
curl "https://aicostcalc.net/api/v1/changes?since=2026-09-01"
Schema 2.1, versioned: list responses carry schemaVersion and lastUpdated (the date the pricing data last changed).
Full documentation: aicostcalc.net/api
The data is MIT licensed. Build dashboards, bots, browser extensions, FinOps tools — whatever helps you understand AI API costs. If you build something cool, open a GitHub issue — we'll feature it.
| Layer | Choice |
|---|---|
| Framework | Next.js 16 (App Router, SSG) |
| Language | TypeScript 5 |
| UI | Tailwind CSS v4 + custom shadcn-style components on Radix primitives |
| Icons | Lucide |
| Theming | next-themes |
| i18n | next-intl (routing planned for V1.1) |
| Tokenizer | js-tiktoken for OpenAI; character-ratio approximation for others |
| Testing | Vitest + React Testing Library |
| Hosting | Vercel |
| Domain | Cloudflare Registrar + DNS |
| Analytics | Google Analytics 4 (typed event helper at lib/analytics.ts) |
git clone https://github.com/Leolionel221/aicostcalc.git
cd aicostcalc
npm install
npm run dev
# → http://localhost:3000
Available scripts:
npm run dev # development server with hot reload
npm run build # production build (SSG)
npm run start # serve production build locally
npm run type-check # TypeScript check (no emit)
npm run lint # ESLint
npm test # run unit tests once
npm run test:watch # watch mode for tests
npm run test:coverage # coverage report
.
├── app/
│ ├── [slug]/ # Per-model landing pages (SSG)
│ ├── blog/[slug]/ # Markdown blog posts
│ ├── api/v1/ # Public JSON API (models, pricing, changes)
│ ├── changes/ # Price change log + RSS feed
│ ├── about | privacy | terms | contact
│ ├── icon.tsx # Generated favicon
│ ├── apple-icon.tsx # Generated Apple touch icon
│ ├── opengraph-image.tsx # Generated OG image
│ ├── sitemap.ts # Auto sitemap from data
│ └── robots.ts # robots.txt
├── components/
│ ├── Calculator.tsx # Main calculator with Advanced Options
│ ├── CostComparison.tsx # Three-column comparison
│ ├── ModelComparison.tsx # Sortable, filterable model table
│ ├── MonthlyEstimator.tsx # Volume forecast with bar chart
│ ├── ScenarioTemplates.tsx # 6 use-case presets
│ ├── ModelPricingTable.tsx # Detailed pricing table per model
│ ├── ModelFAQ.tsx # Auto-generated FAQ per model
│ ├── Logo.tsx # Brand mark
│ ├── Nav.tsx | Footer.tsx | ThemeToggle.tsx
│ └── ui/ # Radix-backed primitives
├── content/blog/ # Markdown articles with frontmatter
├── data/
│ ├── models.json # Single source of truth for pricing (schema 2.1)
│ ├── currencies.json # Static exchange rates
│ └── scenarios.json # Use-case template definitions
├── lib/
│ ├── calculator.ts # Cost math (standard / cached / batch / monthly)
│ ├── tokenizer.ts # tiktoken + approximation
│ ├── currency.ts # Format / convert
│ ├── analytics.ts # Typed GA4 event helper
│ ├── seo.ts # Metadata + JSON-LD generators
│ ├── blog.ts # Markdown rendering pipeline
│ └── types.ts # Schema TypeScript types
├── messages/ # i18n strings (en, zh)
└── docs/ # Original PRD + supplement
data/models.json against the LiteLLM registry each day at 06:15 UTC and commits any change, which redeploys the site. Every change is recorded in the model's priceHistory and shows up on /changes.tiktoken encoders for OpenAI models (exact). Other providers use character-ratio approximation, clearly labeled "≈ Estimated" in the UI.~ prefix and disclaimer for non-USD.Pricing corrections, new models, and feature ideas are welcome:
messages/zh.json is partial; full Chinese routing is V1.1.For substantial changes, please discuss in an issue before opening a PR.
data/models.json — the pricing data itself, with per-model priceHistory and sourcesProvider names (OpenAI, Anthropic, Google, DeepSeek, xAI, Mistral) and their logos are trademarks of their respective owners. This project is not affiliated with, endorsed by, or sponsored by any AI provider. References to specific models exist solely for descriptive identification and price comparison.
MIT — free to use, fork, modify, and ship.
Built with ☕ and Claude.
If this saved you money on your AI bill, ⭐ star the repo — it helps with discovery.