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

推荐订阅源

cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
雷峰网
雷峰网
Recent Announcements
Recent Announcements
月光博客
月光博客
G
Google Developers Blog
腾讯CDC
S
Secure Thoughts
大猫的无限游戏
大猫的无限游戏
T
Tenable Blog
云风的 BLOG
云风的 BLOG
W
WeLiveSecurity
博客园 - 【当耐特】
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
博客园 - 聂微东
The Cloudflare Blog
阮一峰的网络日志
阮一峰的网络日志
人人都是产品经理
人人都是产品经理
P
Privacy International News Feed
MyScale Blog
MyScale Blog
K
Kaspersky official blog
T
The Blog of Author Tim Ferriss
Attack and Defense Labs
Attack and Defense Labs
Spread Privacy
Spread Privacy
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
aimingoo的专栏
aimingoo的专栏
I
Intezer
Vercel News
Vercel News
小众软件
小众软件
Simon Willison's Weblog
Simon Willison's Weblog
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
N
Netflix TechBlog - Medium
P
Proofpoint News Feed
Latest news
Latest news
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
T
Tor Project blog
S
Security Affairs
P
Proofpoint News Feed
博客园 - 三生石上(FineUI控件)
博客园 - Franky
C
Cyber Attacks, Cyber Crime and Cyber Security
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
美团技术团队
Recent Commits to openclaw:main
Recent Commits to openclaw:main
S
Security @ Cisco Blogs
L
LINUX DO - 热门话题
Know Your Adversary
Know Your Adversary
Project Zero
Project Zero
D
Docker
L
Lohrmann on Cybersecurity
F
Full Disclosure

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: