The Unit Economics of GenAI: Calculating Cost per Task and ROI on Amazon Bedrock
Finance teams approve GenAI budgets without a clear unit cost. This guide shows how to calculate cost per task on Amazon Bedrock, forecast monthly spend under different
The budgeting gap
Traditional cloud costs are tied to resources: instances, storage, data transfer. GenAI costs are tied to usage: tokens in, tokens out. That shift breaks the usual budgeting approach. You can’t forecast from capacity, because there isn’t any. You can only forecast from how many tasks the system will perform and how much text each one consumes.
The fix is to price a business task rather than a technology resource. Once you know the cost of one task, every other question becomes arithmetic: monthly spend, budget sensitivity, margin, and payback.
Step 1: Define the unit
Pick a unit the business already understands: one support ticket summarized, one invoice classified, one contract clause reviewed. Then measure what one unit consumes:
- Average input tokens (prompt, instructions, and the document itself)
- Average output tokens
- Number of model calls per task (workflows often chain several)
Measure these from real traffic or a representative sample. Estimates made at a desk are usually off, because system prompts and retrieved context are larger than people expect.
Step 2: Calculate cost per task
On-demand Bedrock pricing is charged per token, with input and output priced separately. Output tokens typically cost more than input tokens.
cost per call = (input tokens ÷ 1,000 × input price per 1K) + (output tokens ÷ 1,000 × output price per 1K)
cost per task = cost per call × calls per taskAs code:
python
def cost_per_task( input_tokens: int, output_tokens: int, input_price_per_1k: float, output_price_per_1k: float, calls_per_task: int = 1,) -> float: per_call = ( (input_tokens / 1000) * input_price_per_1k + (output_tokens / 1000) * output_price_per_1k ) return per_call * calls_per_taskPull current per-token prices for your chosen model and region from the Amazon Bedrock pricing page, since they differ by model and change over time.
Step 3: Forecast with scenarios, not a single number
A single forecast is almost always wrong. Model three scenarios and let the range inform the budget:
python
def monthly_forecast(unit_cost: float, tasks_per_month: int) -> float: return unit_cost * tasks_per_month
unit = cost_per_task( input_tokens=2500, output_tokens=400, input_price_per_1k=0.0, # fill from the pricing page output_price_per_1k=0.0, # fill from the pricing page calls_per_task=2,)
scenarios = {"conservative": 20_000, "expected": 50_000, "high adoption": 150_000}for name, volume in scenarios.items(): print(f"{name:>14}: {monthly_forecast(unit, volume):,.2f} per month")The most important driver to stress-test is adoption. GenAI features tend to grow faster than planned, because once a tool works, people use it more. A budget built only on the expected case is usually exhausted early.
Step 4: Test the ROI
Cost alone doesn’t justify or reject a use case. Compare it with the value of the work it replaces or accelerates:
value per task = minutes saved × loaded cost per minute of the person doing the work
net benefit per task = value per task − cost per task
payback = one-time build cost ÷ (net benefit per task × tasks per month)A worked example in structure: if a task takes a reviewer ten minutes and the AI cuts that to two, the value is eight minutes of loaded labor per task. Compare that against the cost per task from Step 2. In most document-heavy workflows the model cost is a small fraction of the labor value, which means the real risks are adoption and quality, not the token bill.
Two cautions keep this honest:
- Count review time. If a human must check every output, subtract that time from the savings.
- Don’t count freed time as cash. Saved minutes only become savings if they’re redeployed or reduce hiring. Label the benefit accurately in front of stakeholders.
Step 5: Attribute cost to the teams that cause it
If five teams share one Bedrock account, one invoice line tells you nothing. Bedrock supports application inference profiles, which let you tag model usage per application or team so costs appear in your cost reports by owner. Pair this with a consistent tagging standard and activate the tags as cost allocation tags in the Billing console. Then showback (reporting each team’s spend) or chargeback (billing it to them) becomes straightforward.
Tags apply going forward, so set this up before usage grows, not after.
Step 6: Know your levers
Once you have a unit cost, you can see which changes actually move it:
Lever | Effect on unit cost |
|---|---|
Shorter prompts and tighter retrieved context | Lowers input tokens |
Capped output length and concise formats | Lowers output tokens, the pricier side |
Smaller model for simple tasks, larger for hard ones | Lowers price per token |
Prompt caching for repeated context | Cheaper repeated input |
Batch inference for non-urgent work | Lower price than on-demand |
Fewer chained calls per task | Directly multiplies savings |
Check current documentation for each feature’s availability and discounts for your model, since they vary.
A review cadence that works
- Monthly: compare actual unit cost and volume against forecast
- On every prompt or model change: recalculate unit cost, because prompt edits change token counts
- Quarterly: revisit the ROI assumptions with real adoption and quality data
Takeaway
GenAI becomes manageable when it’s priced like any other product: a measured unit cost, a scenario-based forecast, clear ownership of spend, and an honest return calculation. Teams that can answer “what does one task cost and what is it worth?” get budgets approved faster and avoid the surprise at month-end.
Enjoyed reading this content? Let the author know!
Your likes, comments, shares, and saves help creators reach more builders.
Loading recommendations
Loading article