尚未偵測到更新。GitHub 發布版本後會顯示在這裡。
個人 GitHub 帳號下公開儲存庫的擁有者可以登入並驗證所有權,自行管理介紹,無需管理員核准。
登入並產生驗證檔案,在 30 分鐘內將其提交至此儲存庫的預設分支。其他分支或分叉儲存庫中的檔案無效。然後在下方檢查檔案,即可無需管理員核准直接管理專案。請保留檔案以維持管理權限。
如需登入,將前往登入頁面。登入後請回到此處,再次點擊所選的驗證按鈕。
在專案資料夾中執行 /nomorevibe verify,即可驗證所有權並自行管理介紹。
一分鐘完成驗證Free tool to compare API pricing across 10+ LLMs including caching and Batch API discounts.
翻譯準備中
取自儲存庫 README
正在載入完整 README。 以下為已儲存的摘錄。
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 tier檢視完整 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.