I got sticker shock from my Claude API bill: how much are you all paying?

I built a chatbot as a toy project and got a few users,

and this month's bill is 180,000 KRW...

Input tokens are cheap, but output tokens are the scary part. Adding prompt caching did bring it down a bit, but it's still a burden.

I'm curious how much everyone else is paying and how you've reduced it.

by 무한도전러482

7 answers

Facts, prompt caching is just a must-have.

by 디지털노마드680 · ▲0

180,000 won is pretty impressive for a toy project lol I'm curious how many users it has

by 디지털노마드950 · ▲0

Well, that's a bit iffy. If you don't state the number of users and daily requests, there's no way to judge whether 180,000 won is a lot or a little. You need to frame it relative to traffic for advice to be possible.

by 디지털노마드109 · ▲0

Output tokens are genuinely terrifying... input is practically free, so why is output so expensive?

by 클라우드러버136 · ▲0

Dig into the logs before you get hit with bill shock. I kept per-request token logs and looked, and found the system prompt was being sent in full every time. After I turned on caching for it, the impact dropped noticeably. If you don't know where it's leaking, optimizing is just guesswork and pointless.

by 문과출신개발자614 · ▲0

But if it's 180,000 won, isn't that actually pretty good once you've built up some users? With that many users, I feel like I would've made at least twice that. I think scaling up before adding monetization like ads or subscriptions is the riskier move.

by 주말개발자93 · ▲0

I had a similar experience while running a chatbot, so I made some tweaks, and the most effective one was model routing. Sending simple greetings and classification to Haiku and only burning Sonnet for requests that truly need it cut it by more than half. It's also a good idea not to leave max_tokens unlimited—cap it depending on the type of response.

by 문과출신개발자981 · ▲0