- In short
- A cost and latency model is built from three inputs: call volume, token budget per request, and model tier. Monthly cost is estimated by multiplying call volume by input tokens at the input rate, plus output tokens at the output rate. Input and output tokens are priced at different rates on every model tier, so both must be modelled separately. The cost model should be built and checked against the budget ceiling before any production code is written.
Know the numbers before you build the system
A system that behaves correctly can still be the wrong system if it cannot afford to run at production volume. The cost and latency model is the instrument that tells you, in advance, whether the design fits the budget, and the CCAR-P exam treats building it before any code as a core architect responsibility. This remember-level knowledge point establishes the three inputs the model needs and the arithmetic that turns them into a monthly cost you can check against the ceiling.
- Cost and latency model
- An estimate of a Claude system's production spend and response time, built from three inputs: call volume (requests per day or month), token budget per request (input tokens plus expected output tokens), and model tier. Monthly cost = call volume × (input tokens × input rate + output tokens × output rate). Because input and output tokens are priced at different rates on every tier, both are modelled separately, and the model is built before production code so it can be checked against the budget ceiling.
The three inputs
The model needs exactly three inputs. Call volume is how many requests the system will make per day or per month, and it comes from the business requirement, the actual number of conversations, documents, or transactions, not a developer's guess. Token budget per request has two parts: the input tokens (system prompt, retrieved context, and user message) and the expected output tokens (the response length). Model tier determines the per-token rates that apply.
With these three, the cost model is a calculation rather than a hope. Change any of them, higher volume, a longer prompt, a more capable tier, and the projected cost moves in a way you can see before committing to the architecture.
The arithmetic: input and output priced separately
Monthly cost is built by pricing the two token types separately and summing them. Multiply call volume by the input token count at the input token rate to get the input cost; multiply call volume by the output token count at the output token rate to get the output cost; add the two. The reason you cannot shortcut this with a single blended "average tokens per request" figure is that input and output tokens are priced at different rates on every model tier, output typically costs more per token than input, so a request that is mostly output costs more than a request with the same total token count that is mostly input. Collapsing the two into one average throws away exactly the distinction the pricing is built on.
Build it before the code, check it against the ceiling
The timing is not optional. The cost model is built before any production code, and its purpose is to be checked against the budget ceiling that was agreed at project approval. If the projection exceeds the ceiling, the architecture has to change, a cheaper tier, a shorter prompt, caching, batching, before a line of code locks the design in. The Batch API is one concrete lever worth modelling explicitly: it prices asynchronous work at roughly half the standard rate and accepts large request batches, so any workload whose SLA tolerates delayed processing can be modelled as a cost alternative. For regulated data, confirm the batch route is covered by the relevant compliance configuration before routing sensitive fields through it. Deferring the model until after the system is built means discovering the mismatch at the first billing cycle, when renegotiating the architecture is far more expensive than a spreadsheet. (Because per-token rates and batch discounts change, the model should be filled in against current published pricing at the time it is built.)
What the exam trips candidates on
The first trap is estimating monthly cost using only an average token count per request instead of separately pricing input and output tokens at their distinct rates. A scenario will present a blended per-request average as the cost basis; the credited reading splits input and output, applies each rate, and notes that the two are priced differently on every tier.
The second trap is skipping the cost model until after the architecture is built, discovering the budget mismatch only at the first billing cycle. A scenario will show a team that built first and modelled later; the correct answer moves the model to the front, before any code, so the design can be changed while changing it is still cheap.
Worked example
A team is planning a support assistant expected to handle 40,000 conversations per month. Each request carries roughly 2,000 input tokens (system prompt plus context plus user message) and produces roughly 500 output tokens. A developer proposes to estimate cost as 'about 2,500 tokens per request times the volume times one blended rate,' and to finalize it after the prototype is running. Critique and correct the approach.
Two things are wrong: the arithmetic and the timing.
The arithmetic collapses input and output into a single blended 2,500-token figure at one rate. That misprices the request, because input and output tokens are billed at different rates on every model tier, and output is typically the more expensive of the two. A request that is 2,000 input and 500 output costs a different amount than 2,500 tokens at one average rate would suggest, usually more, because the 500 output tokens carry the higher rate. The correct model prices the two streams separately: monthly input cost is 40,000 × 2,000 × the input rate, monthly output cost is 40,000 × 500 × the output rate, and the total is their sum, all at the chosen tier's current published rates.
The timing is also backwards. Finalizing the cost model after the prototype runs means the architecture is already committed before anyone knows whether it fits the budget. The model belongs before the code, so its result can be checked against the ceiling agreed at approval. If the projection, built with separate input/output pricing, comes in over the ceiling, the team changes the design now, a cheaper tier for simple cases, a shorter prompt, caching for the stable system prompt, batching where latency permits, rather than discovering the overrun at the first bill.
Corrected: build the three-input model (40,000 calls/month, 2,000 input plus 500 output tokens, chosen tier), price input and output separately at current rates, sum them, and compare to the budget ceiling before writing production code.
Common misreadings to avoid
Misconception
You can estimate cost with a single average token count per request times one rate.
What's actually true
Misconception
The cost model can wait until the prototype is running and the real numbers are in.
What's actually true
How this shows up on the exam
Domain 4 questions on this knowledge point present a cost estimate that blends input and output tokens, or a plan to model cost after building. The reliable moves are to price input and output separately at the tier's distinct rates, drive the model from call volume, token budget, and tier, and build it before any code so it gates the design against the budget ceiling.
This is the foundation of the optimization task statement and two of the five evaluation dimensions. It sets up token distribution skew, which warns that averages understate a long-request tail, prompt caching, the main lever to reduce input cost, and p95 latency, the latency side of the same model. The per-request data it needs is exactly what request-level tracing captures in production.
Which approach correctly models the monthly cost of a Claude system?
People also ask
What inputs do you need to model Claude cost?
Why price input and output tokens separately?
When should you build a cost model?
Watch and learn
Official Anthropic Academy lessons first, then hand-picked walkthroughs. Videos load only when you press play.
No videos curated for this concept yet
We are still curating the best official and community videos for this topic.
Official prep for this domain
Anthropic's own free prep module for this part of the syllabus, on the official prep course. Free with an Anthropic Academy sign-in.
References & primary sources
Master this concept with Archie
Practice it inside an adaptive study session. Archie, your Socratic AI tutor, tracks your mastery with Bayesian Knowledge Tracing and schedules the perfect next review.