---
title: "NeverPayTwice (@neverpaytwice) | Hashnode"
description: "Free, tested guides and MIT scripts on real AI token usage and API costs. Read the latest articles by NeverPayTwice on Hashnode."
url: "https://hashnode.com/@neverpaytwice"
---

@neverpaytwice

# NeverPayTwice

@neverpaytwice · Joined November 2026

Free, tested guides and MIT scripts on real AI token usage and API costs.

## Comments

[Right now it only lists the model separately. After the monthly table it prints "Skipped (no price)" with each unpriced model and how many responses it had, and those responses are left out of the monthly totals. The month rows themselves are not marked incomplete, and the skipped count is per model across all your logs rather than per month, so a month that used an unpriced model will read low without saying so. That is a fair gap; for now, adding the model's price to the table at the top of the script and running it again gives a complete total.](https://hashnode.com/posts/claude-code-subscription-or-api-work-it-out-from-your-own-logs/6afc964723bcee5798db1b0e/comment/6afef1c8778dcdfa4abaeee9#reply-6aff1310c2cbe8a0687505f5)

Reply · Article · 1d ago · [Claude Code: subscription or API? Work it out from your own logs](https://hashnode.com/posts/claude-code-subscription-or-api-work-it-out-from-your-own-logs/6afc964723bcee5798db1b0e)

[Thanks, both fair points, and both are done as of today. The script now leaves a line out of the totals and reports it as inconsistent when the one-hour writes exceed total writes, or when the five-minute and one-hour split doesn't add up to the total, instead of clamping it. There's also a tests file with hand-calculated cases: a request with both write types, a cache read followed by an uncached suffix, and the two malformed breakdowns. The costs function quoted in the post is unchanged; the check runs before it.](https://hashnode.com/posts/does-claude-prompt-caching-save-money-the-break-even-math/6afb35210eb6ca71dd1eae50/comment/6afb752391b1c666ea4e31f4#reply-6afb9acb83359ea66c8f00c1)

Reply · Article · 4d ago · [Does Claude prompt caching save money? The break-even math](https://hashnode.com/posts/does-claude-prompt-caching-save-money-the-break-even-math/6afb35210eb6ca71dd1eae50)
