惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

K
Kaspersky official blog
小众软件
小众软件
Engineering at Meta
Engineering at Meta
博客园 - 三生石上(FineUI控件)
WordPress大学
WordPress大学
G
Google Developers Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
V
V2EX
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Google DeepMind News
Google DeepMind News
Security Archives - TechRepublic
Security Archives - TechRepublic
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
C
Check Point Blog
aimingoo的专栏
aimingoo的专栏
罗磊的独立博客
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
MongoDB | Blog
MongoDB | Blog
L
LINUX DO - 热门话题
酷 壳 – CoolShell
酷 壳 – CoolShell
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
H
Help Net Security
Martin Fowler
Martin Fowler
G
GRAHAM CLULEY
Simon Willison's Weblog
Simon Willison's Weblog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
博客园 - Franky
V
Vulnerabilities – Threatpost
云风的 BLOG
云风的 BLOG
博客园_首页
C
Cybersecurity and Infrastructure Security Agency CISA
量子位
Stack Overflow Blog
Stack Overflow Blog
Recent Announcements
Recent Announcements
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
I
Intezer
Scott Helme
Scott Helme
A
About on SuperTechFans
博客园 - 司徒正美
Hacker News: Ask HN
Hacker News: Ask HN
The GitHub Blog
The GitHub Blog
Forbes - Security
Forbes - Security
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
博客园 - 聂微东
人人都是产品经理
人人都是产品经理
The Cloudflare Blog
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
Spread Privacy
Spread Privacy
T
Tailwind CSS Blog
S
Security Affairs
宝玉的分享
宝玉的分享

Flavio Copes

Workers Cache: a cache in front of your Cloudflare Worker Cloudflare Drop: drag a folder, get a live site Temporary Cloudflare accounts: agents can now deploy without signing up Moondream 3.1 on Workers AI: fast vision at the edge Sitebase: all the features your website needs, in one place StackPlan: figure out where to deploy your app, and what it How the Cloudflare Pages build cache works The Summer of Code How I generate an Open Graph image for every post New: 90 free tools for developers How I added search to my static site with Pagefind How to rebuild a Cloudflare site on a schedule Cloudflare Email Workers: run code when an email arrives Cloudflare Turnstile: stop bots without annoying CAPTCHAs Cloudflare Workers: secrets and environments Cloudflare Workers observability: logs and traces Cloudflare Analytics Engine: store and query metrics The AI Workshop (July 2026 cohort) Cloudflare Cron Triggers: run a Worker on a schedule Cloudflare Durable Objects: state that lives in one place Cloudflare Queues: run work in the background Cloudflare R2: object storage without egress fees Cloudflare KV: a key-value store for your Workers Cloudflare D1: a SQL database for your Workers Serving a website with Cloudflare Workers static assets Wrangler: the Cloudflare Workers command line tool Executor: one gateway to connect your AI agent to every tool Cloudflare Workers: your first serverless function Vercel eve: an open framework for building AI agents Flue: the open framework for building AI agents Val Town: write and deploy code in seconds A hands-on guide to The Agency, a collection of AI agents The AI Workshop (June 2026 cohort) The AI Workshop (May 2026 cohort) The AI Workshop (Apr 2026 cohort)
inferencecost.dev: what will AI inference cost you at 10k users?
Flavio Copes · 2026-07-09 · via Flavio Copes

By Flavio Copes

I built inferencecost.dev, a calculator for the biggest line item in AI product budgets: LLM inference. Compare ~30 models under your workload assumptions.

~~~

Another project from my Summer of Code: inferencecost.dev.

It answers one question: what will AI inference cost you at scale?

You pick a workload preset — chat assistant, RAG, agent, copilot, summarizer, classifier — tune the assumptions, and compare the monthly bill across ~30 models from OpenAI, Anthropic, Google, xAI, Mistral, OpenRouter, and Cloudflare Workers AI.

Why I built it

If you’re building an AI product, inference is the line item that dominates your budget. And it’s surprisingly hard to predict.

Model pricing pages give you dollars per million tokens. But your bill depends on things pricing pages don’t show: how many calls a user makes per day, how many tokens go in and out of each call, how much of your input gets cache hits.

Multiply wrong by 10,000 users and the difference is “a rounding error” versus “we need to raise prices”.

I wanted a calculator where the assumptions are explicit, editable, and applied consistently across every model — so the comparison is fair and the surprise happens in the calculator, not on the invoice.

What it does

Every workload preset comes with credible default assumptions: DAU, calls per user per day, input and output tokens per call, cache hit rate. Every value is editable.

From there you get:

  • a live monthly bill, broken down into input, cached input, and output costs, with per-user and per-call numbers
  • model suggestions: the cheapest overall, the best-value workhorse, the cheapest flagship — with the savings vs your current pick
  • a cost-at-scale table at 100 / 1k / 10k / 100k DAU
  • a full comparison of every model under the same assumptions

All calculator state lives in the URL, so you can share a scenario with a link. There’s a pricing reference with the verification date of every price, and a methodology page that explains the math.

There’s also a paid option: a $20 one-time AI-generated report that analyzes your specific scenario in depth. No subscription, no tiers.

How I built it

This one is deliberately simple.

Astro static pages with Alpine.js for the calculator reactivity — I use Alpine whenever React would be overkill, and a calculator is exactly that case. Tailwind for styling.

The cost engine is a set of small pure TypeScript functions with Vitest coverage — pricing data lives in one file, presets in another, math in a third. The dynamic OG image endpoint reuses the same engine, so the numbers in a shared preview card are the real numbers.

It’s deployed on Cloudflare Workers, with D1 storing first-party analytics events and price-watch email subscribers, and KV supporting the API endpoints. The paid report runs through Cloudflare AI Gateway with billing on Polar.

Try it

Head to inferencecost.dev, pick the preset closest to what you’re building, and put in your real numbers.

And if you just want a quick token math helper, the core calculator also lives here as a free tool, alongside the token cost comparison tool.

~~~

Related posts about news: