How-to71°

levelsio 用 Claude Code 把业务成本砍到每月约 300 美元

Why we picked it

levelsio 让 Claude Code 帮他查账,GPU 账单从 3.6 万刀砍到 7 千刀,总成本降到 300 刀一个月,省钱思路都能抄。

独立开发者 levelsio 让 Claude Code 分析支出,把全部网站和应用的固定成本降到每月约 300 美元。最大一项是把 Photo AI 的 GPU 账单从每月 36,000 美元降到 7,000 美元,做法包括换更便宜的视频模型、把部分任务分流到 Google Cloud 积额和按市场价卖模型的 Sume。其余省下来的是:服务器从 Digital Ocean 和 Linode 迁到 Hetzner 每月省 3,000 美元,Backblaze B2 备份改 30 天保留期后从 1,200 美元降到 26 美元,Cloudflare R2 加生命周期策略省 400 美元,域名清理和降级 Claude 订阅又各省百余美元。他的业务规模是每年 2 万付费用户、2.52 亿访客、24 亿次请求,总成本同比降了 90%。

Original · Pieter Levels

💸 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 - similarly 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 - 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!)