Skip to decision

GAP-06 · Agent architecture

Prompt Cost and Token Simulator

Turn a prompt, volume and model choice into a transparent operating-cost estimate.

Current decision

$244 estimated monthly run cost

At 5,000 calls/day using Claude Haiku 4.5. Rates are an illustrative snapshot dated 2026-07-02, not a live vendor quote.
Annual estimate
$2,930
Cost per call
$0.0016
Savings vs same model without levers
2%

Same instrument · 3 industries choosing a scenario replaces its inputs; save or share your current changes first

Prefer to read? The two minute case study · problem → approach → metric → outcome

Problem

Before committing to an architecture, leaders need to know whether the workflow can operate within acceptable cost boundaries. A design that works for a pilot may become uneconomic once volume, prompt size, or frontier model share increases.

Approach

The simulator converts call structure into estimated annual cost. It shows the effect of model choice, prompt size, volume, caching, batching, and savings levers.

Why this way

This connects architecture design to run cost, budget exposure, margin, pricing, and financial approval.

The metric

Cost per call and monthly run rate; the monthly delta of switching models.

The trade-off

The cheapest model is not always adequate; caching adds engineering for a real saving.

Outcome

A defensible build versus buy number before anyone draws an architecture box.

Compare with a pinned workload

Baseline: Claude Haiku 4.5, 5,000 calls/day, $244/month. Current change: 0.00 USD/month.

This comparison captures all changed assumptions; it does not attribute a model/volume change solely to caching.

Model

Prompt

≈ 76 input tokens

Rough estimate (~4 chars/token). Paste a real prompt to size it.

400
5,000
60%
Tokens / call
476

76 in · 400 out

Cost / call
$0.0016

Claude Haiku 4.5

Monthly run rate
$244

150,000 calls/mo

Annual run rate
$2,930

Illustrative rates · 2026-07-02

Annual cost: billed input + billed output + savings = list-price baseline

Input$50
Output$2,880
Saved by caching + batching$59

Dollar labels round independently. The exact cost bridge below retains the calculated values.

This workload priced across models · monthly, cheapest first

Switching to Google · economy saves $225/mo on this workload, weigh against answer quality for your job.

Savings ladder · monthly, cumulative leverage

List price$249
+ prompt cache$244 · −2%
+ batch$244 · −2%

Caching + batching cut 2%, $59 / year

Before leverage this workload runs $2,989/year; after, $2,930. The static context you send on every call is the lever, cache it and the input line collapses.
Read the exact cost bridge and rates
Monthly savings bridge — successive reductions, not additive percentages
StageMonthly costReduction from preceding stage
List price$249.12Baseline
+ prompt cache$244.1952$4.9248
+ batch$244.1952$0.00
Illustrative rates dated 2026-07-02
ModelInput USD/1MOutput USD/1MCached input USD/1M
Claude Sonnet 53150.3
Claude Opus 4.815751.5
Claude Haiku 4.50.840.08
OpenAI · frontier2.5101.25
OpenAI · economy0.150.60.075
Google · frontier1.255Not supplied
Google · economy0.0750.3Not supplied

Caching changes the eligible input component first. Batching discounts the eligible share of the remaining total. Savings percentages share the list-price baseline and must not be added.

If you act on this · the call → expected lift → how you'd measure it

The call

Use unit economics to constrain architecture decisions before scaling.

Expected lift · illustrative

Prevents designs that are technically viable but financially fragile.

How you'd measure it

Cost per task, annual run rate, cache hit rate, batching savings, cost per successful outcome.

Steering committee takeaway: Size the call before arguing the architecture. Unit economics often settles the design debate earlier than a diagram does.

How this is built

Stack: Next.js (static) + shared design system; pure client side arithmetic.

Pricing lives in a dated config (`@labs/kit`, as of 2026-07-02), never in copy, with a per-model cache-read price. Tokens are estimated at ~4 chars/token.

Cost/call = input tokens × input price + output tokens × output price. Caching reprices the cacheable share of input at the cache read rate; batching applies a 50% discount to the eligible share.

Limitations: this artifact uses modeled pricing and assumptions. Production forecasting would require current vendor pricing, actual traffic patterns, utilization data, and finance approved costing rules.