Reading up on cost-optimization
12 deep · digging since feb 10
- The Pulse: Details of incident.io’s AI spend - The Pragmatic Engineer
Incident.io reduced AI spend from $4,500 to $1,600 per developer per month after switching to Opus 5.5, while tripling PR output and cutting incidents per PR by 60%.
- Cutting our inference bill by 68% by being obsessive about optimization
Cloudflare cut its AI code reviewer costs by 68% (to $0.77 per review) and halved latency through aggressive prompt caching, fewer LLM calls per session, and cheaper model routing.
- The Cache Is the Price - Julien Simon
The cost of handing off a job from a cheap model to a frontier model depends on prompt caching rates, which can make routing more expensive than using the frontier alone.
- The Pulse: a new trend, smart model routing - The Pragmatic Engineer
Several vendors now offer intelligent model routers that automatically select the cheapest sufficient LLM per task, promising 20-30% cost savings, a trend expected to become table stakes.
- Most AI Work Can Wait
Routing layer design, not model choice, drives cost efficiency by sending 70-80% of AI traffic to cheap local or async models.
- never waste a token
Putting a durable buffer between AI agents and LLM providers prevents token waste and re-billing when a process crashes mid-stream, with resumable streaming and crash recovery using the same mechanism.
- I run multiple $10K MRR companies on a $20/month tech stack
Running multiple $10K MRR businesses on a $20/month stack with SQLite, a VPS, and minimal services is possible, but the approach is controversial among developers.
Takes
💸 Update: My total biz expenses have now dropped to just ~$300/mo! This is to run all my websites/apps serving per year: - 20,000 paying customers - 252 million visitors - 2.4 billion requests - 2.4 petabyte (PB) in bandwidth (~$8,000/mo if you add the $7,000/mo GPU bill and $800/mo R2 storage I pay for Photo AI, I exclude it above because it's one project that's so much more expensive in size than all the other sites together, but included in the chart below) Claude Code helped me to find smart ways to save more money, AI is just really really really good at finding cost savings by itself, which is not so great for the economy short-term, but long term it trims all the fat and opens up spending for better investments I think Anyway here's what it saved me in money, almost $34,000/mo: - $29,000/mo - switched to better and cheaper video models on Photo AI, video was very expensive and since I didn't update it ever it stayed expensive, also routed some image jobs to Google Cloud where I have some Google Cloud Credits, and also routed some jobs to Sume which sells AI models at market cost, very cool! This made my GPU bill go from $36,000/mo to $7,000/mo - $3,000/mo - consolidated my servers, cancelled Digital Ocean and Linode and moved everything to Hetzner saving about $3,000/mo - $1100/mo - analyzed my Backblaze B2 server backups, I had infinite versioning and lifecycle policies, that's reduced now to 30 days, this literally pushed the bill from $1,200/mo to $26/mo, about 50x cheaper! I had essentially versions of files for all my servers for over a decade, crazy! - $400/mo - similarly added Lifecycle Policies to my Cloudflare R2 bucket for Photo AI, pics are automatically put in cheaper Infrequent Access after 90 days, there was years of photos in there so this reduced the R2 bill from $1,200/mo to $800/mo - $118/mo - Claude analyzed all my Cloudflare Domain registrations, lots of domains I didn't use and didn't make sense to keep paying for, lots of things that also don't really make sense anymore in a post-AGI world, renewals for .io TLD are now $50/year which adds up fast! - $100/mo - Claude also analyzed my Claude subscription (yes!) and discovered I don't even use the Max 20x plan limits, so I downgraded from $200/mo to $100/mo Even including Photo AI, I have now cut my costs by 90% from last year, getting me close to my biz expenses amount from a decade ago when I started building things Costs slowly creep up over the years and you don't realize all the things you're spending on but AI is nice to help you figure all that out (also in your personal life!)
@levelsio
Bye bye Beehiiv 👋 I vibe-coded my own newsletter platform: 📧 Campaign management w/ editor 🖥️ Web archives (https://t.co/pypYdNhdlZ) 🔗 API support 🫧 List cleanup, deliverability reports It took a few prompts with Opus 5.5. I left Beehiiv because they raised prices for the 3rd time in 2 years. - My first yearly bill was $1,000. - My future bill would have been $4,000. Now I'm using AWS SES + MongoDB, and I will pay less than $300/year. Newsletter platforms charge per subscriber, when in fact the real cost is the number of emails sent. Subscribers will naturally become inactive, so you end up paying more for something that hurts your deliverability (sending to dormant subscribers = spam trap). So I've set a cleanup cron job for my newsletter alternative. It marks inactive subs as dormant, sends one last re-engaging email, and stops emailing them. Money saved. Deliverability increased. I also gain a priceless feature: Freedom. I can change the UI, add features, connect all my apps - anything is possible with just a prompt. I'm replacing Resend next. I love it, but it's very expensive ($400/mo)
@marclou
Configured Grafana for all my projects Managed APMs are fine for typical SaaS where most visitors are paying you. But they get expensive quick if you have high traffic sites like job boards, etc. Now self-hosting, own the data, and can give my AI agents direct access for troubleshooting 👌
@marckohlbrugge
P.S. this Mapbox cost is another cost detected by my new Situation Monitor dashboard with AI insights, it scouts all my projects insights on what to improve A few weeks ago it detected the Cloudflare bill was too high and we found they made a mistake which they quickly fixed and refunded Really nice!
@levelsio
https://t.co/ex8cdBWSQr
@Shpigford