A coding agent can finish a review with a short reply after making a dozen model calls. If the calls keep carrying the same tool definitions and project instructions, the cost of processing that material can exceed the cost of the visible answer. To see whether caching helps, count writes and reads separately.
Start with a repeatable twelve-call example
Suppose each call includes an 18,000-token common prefix, 2,000 other input tokens, and 1,000 output tokens. Standard Claude Sonnet 5.5 rates checked on November 25, 2026 are $2 per million ordinary input tokens, $2.50 for five-minute cache writes, $0.10 for cache reads, and $10 for output. The following are hypothetical token charges. Anthropic's current pricing table
Ordinary input across all twelve calls costs $0.6000 including output.
Twelve writes of the common prefix cost $0.7080 including ordinary input and output.
One write and eleven full hits cost $0.2328 on the same basis.
Each full hit in place of a write reduces this example's cost by $0.0432. Two hits leave the run at $0.6216, still above the ordinary-input baseline. Three bring it to $0.5784. Partial hits and changing input sizes need to be calculated from actual usage.
Run a two-question check before changing models
Choose a harmless example, such as a long, permitted test procedure followed by two different questions about it. Use a cacheable prefix above your model's minimum and keep the material up to the cache boundary identical. Send the second question after the first response and within the configured cache duration.
Record ordinary input, cache writing, cache reading, and output for both calls. In the Claude API response, input_tokens excludes the two separately reported cache counts. If a stable prefix is repeatedly charged as a write in your real workflow, compare the requests that actually went out. A changing tool layout, a timestamp at the front, or an expired cache may explain the result. Anthropic's prompt caching guide
Compare costs only after the answers pass the same check
Measure the cost per accepted review, including unsuccessful attempts. If a candidate open-weight model produces acceptable reviews on the same examples, a small rented-GPU trial can give you a basis for comparison. Include setup, transfer, idle time and any billable storage alongside runtime.
CloudGPU's MCP documentation describes how an already connected client can look up available configurations and a quote before the operator approves a run. Confirm the selected source's billing interval and minimum. A per-minute quote and an hourly minimum can produce different bills for the same short trial. CloudGPU MCP documentation
CloudGPU prepared this guide with AI assistance. The twelve-call prices are a calculation, with no benchmark or live API run.