{"id":142415,"topic":"ai","source":"Amazon Web Services (AWS)","title":"Optimizing cost per task and proving agent ROI on Amazon Bedrock - Amazon Web Services (AWS)","url":"https://aws.amazon.com/blogs/machine-learning/optimizing-cost-per-task-and-proving-agent-roi-on-amazon-bedrock/","url_hash":"e1bab2e8850b5f1608e68ca5baf9a2297201ea22","author":"","summary":"<a href=\"https://news.google.com/rss/articles/CBMisAFBVV95cUxNSi04UWpIVThncVlzN2Z2dW44eWJTT1ZmWHhESllLdVRoVFBzMmVsQmlPYU5hZTlHTUxtazdaUlRoaEJ0RDVkZmdkWTh5MnhuemFLWVZDcktaRWFuSnN5YXM4dVE2WHhKdElFbmpKdXNuYmgyV1h4Qk1EYUxwV29pUDZwNERhbk1uWGlEaVhkLXc5bG9JM0JYRkJyLXhsbWMtU3lfYW5xVUplUWNrTHI1Tw?oc=5\" target=\"_blank\">Optimizing cost per task and proving agent ROI on Amazon Bedrock</a>&nbsp;&nbsp;<font color=\"#6f6f6f\">Amazon Web Services (AWS)</font>","content":"Optimizing cost per task and proving agent ROI on Amazon Bedrock\nPart 1 of this series built the operating model that controls Amazon Bedrock spend: attribution with AWS Identity and Access Management (IAM) principal tags and Cost and Usage Report 2.0, observability with model invocation logging, enforcement at three tiers, and a review cadence. That layer answers who spent it, and you can stop them. It can’t tell you whether the spend was well spent.\nThis post answers two questions that Part 1 deliberately left open. First: Why is this workflow expensive? The answer requires thinking in cost per task, not cost per token. Second: Is the agent better than the humans were? The answer requires baselines, controlled experiments, and a scorecard tied to decisions.\nIn this post, you learn a framework for calculating true model cost (including four hidden cost drivers that the pricing page doesn’t show), techniques for reducing cost per task through caching, routing, and output constraints, and a discipline for measuring agent ROI with human baselines, holdout experiments, and a five-dimension scorecard. This post is written for two audiences: the application and platform engineers who own the optimization levers, and the product owners and FinOps partners who need to justify agent spend to leadership.\nCost per task, not cost per token\nPrice per token invites quick comparison, but it doesn’t reflect what you actually pay. The published rate reflects the cost of a single token. Your bill reflects the cost of completing a task. A task is one complete unit of work your application asks a model to do: resolve one support email, extract fields from one invoice, or answer one user question. A task runs from the request through to a usable result, however many model calls it takes.\nThe lower-priced model might not be the cheaper one to run. A cheaper model might fragment your text into more tokens, pad responses with filler, misread your tool schema and loop through corrections, or burn thousands of reasoning tokens before answering. None of these costs appear on the Bedrock pricing page.\nThe four hidden cost drivers\nFour model characteristics determine what that published rate actually costs you on your workload.\nTokenizer efficiency\nA token isn’t a word, and it is not equal across models. Every model family uses a different tokenizer and vocabulary. The same text, code, or JSON payload splits into different token counts. If Model A’s list price is 15 percent lower but its tokenizer needs 40 percent more tokens for your data (common with structured schemas and numerical arrays), Model B is cheaper. The gap widens for non-English text: many tokenizers fragment non-Latin scripts into two to three times more tokens than the equivalent English.\nOutput alignment and verbosity\nOutput tokens commonly cost 3–5x more than input tokens (the ratio varies by family. Refer to the Bedrock pricing page). A model that ignores formatting constraints like “return only raw JSON” makes you pay that output premium for filler words. A model that follows formatting instructions closely saves money by generating fewer of these more expensive output tokens.\nAgentic loop efficiency\nAgentic workflows change the cost math entirely. Tool use (function calling) lets a model invoke external functions, requiring a multi-turn loop: analyze the prompt, decide to call a tool, wait for the observation, generate an answer. Each turn re-sends the full conversation history and tool results as input tokens. A model that takes four turns (each one re-sending a larger context payload) costs far more than one that finishes in a single pass.\nReasoning overhead\nMany models support extended thinking, working through a chain of thought before the visible answer. Reasoning tokens bill as output tokens, so a model that thinks for 2,000 tokens before a 200-token answer bills you for 2,200. Some models redact the reasoning while still charging for it. Start with reasoning turned off and enable it only when benchmarks show a quality gap that justifies the cost.\nCost per task: A worked example\nConsider an agentic workflow that reads a 750-word customer email, extracts entities, calls an API to verify account status, and outputs strict JSON. The following comparison uses illustrative prices (always benchmark against your own data and current Bedrock pricing):\n| Metric | Model A (lower list price) | Model B (higher list price) | \n| Input list price | $0.50 / 1M tokens | $1.00 / 1M tokens | \n| Output list price | $1.50 / 1M tokens | $3.00 / 1M tokens | \n| Tokenizer efficiency (turn 1 input) | 1,500 tokens | 1,000 tokens | \n| Output verbosity (final response) | 450 tokens | 150 tokens | \n| Agentic loops required | 3 turns (error correction) | 1 turn (zero-shot) | \n| Cumulative input tokens, all turns | 6,150 | 1,000 | \n| Cumulative output tokens, all turns | 750 | 150 | \n| Total task cost | $0.0042 | $0.00145 | \nModel A: (6,150 x $0.50 + 750 x $1.50) / 1,000,000 = $0.0042\nModel B: (1,000 x $1.00 + 150 x $3.00) / 1,000,000 = $0.00145\nWhy the 2x-priced model costs 65 percent less: three compounding factors. Model A’s tokenizer fragments the email into 50 percent more tokens, inflating every input payload. It pads its JSON with filler, tripling output tokens. And it misaligns with the tool schema, needing two correction turns that each re-send a growing history.\nCost per successful task\nThe preceding example assumes both models eventually succeed. In production they won’t, and a failure is rarely free. The formulas:\nFor retry-until-success workflows:\ncost per successful task = cost per attempt / success rate\nFor escalate-on-failure workflows:\ncost per successful task = cost per attempt + (1 - success rate) x escalation cost\nInput further splits into three buckets when prompt caching is active: uncached input at base rate, cache reads below base rate, and cache writes above base rate.\nMeasuring it on your own workload\nWhich model is actually cheaper only shows up when you benchmark against your own data. Amazon Bedrock model evaluation is the managed feature for the quality half of that: define criteria, upload your prompt datasets, and get scored results with automatic metrics and optional human review, with no custom infrastructure required.\nQuality scores alone don’t produce a bill, though. Three more Bedrock features supply the token and turn counts you price against them:\n- CountTokens returns the input token count a given model would charge for a given payload without running inference. It’s the cheapest way to compare tokenizer efficiency (driver #1) across candidates before you spend anything on generation.\n- Model invocation response carries a usageblock withinputTokens,outputTokens,cacheReadInputTokens, andcacheWriteInputTokens. Accumulating those across the turns of a single task gives you the four terms of the preceding cost-per-attempt formula. One gotcha: when caching is enabled,inputTokenscounts only the uncached tokens, so your total input volume isinputTokens + cacheReadInputTokens + cacheWriteInputTokens. Sum them to know the footprint, but price them separately, since the three bill at different rates. Evaluate this multiple times throughout your journey and set the cache checkpoints based on what is the active current load. The drift in cache checkpoints happens as the application progresses and the tools become stale. This means that you will be writing more to the cache in 3 months from now when the drift has happened. Evaluating your data constantly for optimal cache usage becomes a primary lever to reduce cost.\n- Model invocation logging writes per-invocation token counts to Amazon Simple Storage Service (Amazon S3) or Amazon CloudWatch Logs, so you can measure turns-to-completion against real production traffic instead of a sample. Tag calls with request metadata to slice those logged token counts by team, feature, or experiment. However, these are log fields, not cost allocation tags, and never appear in AWS Cost Explorer or your Cost and Usage Report. Application inference profiles do reach both, at a grain of one usage type per day. That grain is right for chargeback but too coarse for cost per task. Multiplying logged token counts by the published rates gives you a near real-time estimate rather than an invoice. It won’t reflect commitments, batch pricing, or provisioned throughput unless you model them. Reconcile against your Cost and Usage Report before you treat it as the bill.\nReducing cost per task: Four levers\nEach of the four drivers has a lever, and each is documented in depth. Prompt caching cuts the re-sent context that made Model A expensive, which makes it the largest win on agentic paths. Intelligent prompt routing sends the easy requests to a cheaper model in the same family. A tool schema plus a maxTokens cap holds verbosity down more reliably than prose instructions do, and extended thinking stays off until a benchmark shows it earns its cost back. Batch inference halves the rate on bulk single-turn work, though it rules out tool calling and multi-turn exchange.\nProving agent ROI: Describe the human baseline\nEfficient isn’t the same as valuable. An agent can be perfectly optimized and still not be worth running. The question that decides budgets is: is the agent better than the humans were?\nDocument the human process first\nThe biggest mistake in agent ROI is trying to prove value without first describing the human workflow. Before building or scaling an agent, write down the current process in operational terms: what triggers the work, which human roles are involved, where the handoffs sit, how completion is defined. This sounds like bureaucracy. It’s actually measurement design. Every instrumentation decision downstream (what counts as a run, what counts as success, where human time is spent) falls out of this description.\nMeasure the baseline before the agent ships\nWith the process described, measure the human baseline over a meaningful window: time to completion, queue time, active effort, reopen rate, escalation rate, cost per task, and outcome quality. Baselines must be measured before the agent goes live, not reconstructed from memory after the fact. Retrospective baselines are systematically flattering to the agent: people remember the average case and forget the fast ones.\nInstrument the workflow as an experiment\nAfter the baseline exists, instrument the agent workflow as an experiment from day one. Every run gets a trace ID, and every meaningful step is observable. A workflow-run record aggregates everything above the model call into a single analyzable unit:\nThree fields deserve emphasis:\nexperiment block: Stamped at run creation and propagated into Bedrock request metadata, so model-level and workflow-level records join cleanly.\nhumanMinutes: What most teams omit and most need. Without it, “the agent did the work” silently excludes the 35 minutes a human spent reviewing it.\nrevenueEventId: The hook that makes revenue attribution possible later. It costs nothing to record and can’t be reconstructed afterward.\nThe rule: If the workflow telemetry can’t answer the business question, the instrumentation is incomplete.\nJoin cost to outcomes\nWith invocation logs landing in Amazon S3 (Part 1) and workflow-run records in your analytics store, one join produces the metrics that matter. Amazon Bedrock logs record tokens, not dollars, so first build a view that prices each invocation from token counts and your model rate sheet, aggregated by run ID. Then query with Amazon Athena:\nNote: Column names and join keys shown in the preceding query are illustrative. Verify against your invocation log schema and workflow telemetry store, which might vary by implementation.\nCost per successful outcome, retries per success, and human minutes per success are the three numbers that survive contact with a skeptical CFO. Cost per call flatters agents that loop. Cost per success doesn’t. Note the variant grouping: the same query, split by experiment arm, is the ROI comparison.\nCompare agents and humans correctly\nThe most credible evaluation is an A/B or holdout test. Controlled treatment and control groups compare the agent-assisted workflow against the human baseline without confusing the result with market, seasonal, or organizational changes.\nFor customer-facing or revenue-linked workflows, randomize at the visitor, lead, account, or case level. For internal workflows (support operations, coding assistants), use matched cohorts: teams, repository groups, or pods.\nThe comparison covers four dimensions:\nEfficiency: time to completion, hours recovered, queue-time reduction.\nQuality: error rate, approval rate, reopen rate, escalation rate.\nCost: cost per task, cost per successful outcome, total cost to serve.\nBusiness value: conversion lift, retention lift, expansion rate, revenue per rep or per workflow.\nIf the agent improves one dimension while meaningfully degrading another, the result is ambiguous and the deployment needs tuning.\nRevenue: The hardest metric\nEfficiency gains are the easiest part of the ROI story to prove. Revenue impact is harder, and it is the metric leadership funds against. In revenue-adjacent workflows, measure whether the agent improves conversion, time-to-response, deal progression, or revenue per rep. Holdout tests are the most reliable way to separate incremental revenue attributable to the agent from general business momentum.\nWhen revenue lift is real, the conversation changes. The organization stops asking whether the Bedrock bill went up and starts asking whether the additional spend is buying a meaningful increase in business output.\nThe scorecard\nBased on what we have observed working with customers, a strong operating model doesn’t require fifty metrics. What works is a small scorecard tied to decisions, reviewed on a regular cadence for every production agent.\nThe following thresholds are starting points, not prescriptions. Calibrate them against your own fleet data and organizational context.\n| Dimension | Metric | Green | Yellow | Red | \n| Adoption | Active users / intended users | >70% | 40-70% | <40% | \n| Quality | Tasks completed without rework | >90% | 75-90% | <75% | \n| Efficiency | Hours recovered per week | >target | 50-100% of target | <50% of target | \n| Cost | Cost per successful outcome | ≤budget | 1-1.5x budget | >1.5x budget | \n| Business impact | KPI lift compared to baseline | Significant | Marginal | None or negative | \nGreen means scale: the agent beats baseline while meeting cost and quality thresholds. Yellow means tune: promising but needs work. Red means retire or redesign: the agent consumes cost without enough measurable value. The willingness to actually retire a red agent is what makes the rest of the scorecard credible.\nConclusion\nIn this post, you learned how to calculate the true cost of a model by accounting for four hidden cost drivers (tokenizer efficiency, output alignment, agentic loop efficiency, and reasoning overhead), how to reduce cost per task through prompt caching, model routing, output constraints, and batch inference, and how to prove agent ROI by measuring human baselines, instrumenting workflows as experiments, joining cost to outcomes, and running holdout comparisons.\nThe cost optimization half answers “why is this expensive and how do I fix it.” The ROI half answers “is the agent better than the humans were.” Together with Part 1’s operating model (attribute, observe, enforce, optimize, operate), they form a complete framework: you can see who spent it, explain why, reduce the waste, and justify what remains.\nTo get started, benchmark your top model candidates against your own prompts using Amazon Bedrock model evaluation, capture tokens and turns from the usage block or your invocation logs, price them against current Bedrock pricing, and divide by success rate. For ROI measurement, consult the Well-Architected Agentic AI Lens for agent cost governance best practices.\nIf you have found other techniques for reducing cost per task or measuring agent ROI on Amazon Bedrock, let us know in the comments.","image_url":"https://d2908q01vomqb2.cloudfront.net/f1f836cb4ea6efb2a0b1b99f41ad8b103eff4b59/2026/11/02/ML-21540-featured-image.png","lang":"en","published_at":"2026-11-12T18:43:19+00:00","fetched_at":"2026-11-12T19:15:07+00:00","status":"read","starred":0,"extract_state":"ok","summary_auto":"Optimizing cost per task and proving agent ROI on Amazon Bedrock\nPart 1 of this series built the operating model that controls Amazon Bedrock spend: attribution with AWS Identity and Access Management (IAM) principal tags and Cost and Usage Report 2.0, observability with model invocation logging, enforcement at three tiers, and a review cadence. That layer answers who spent it, and you can stop them.","cluster_id":null,"extract_retries":0,"extract_error":null,"item_type":"news","ref_id":null,"refs_json":null,"doi":null,"arxiv_id":null,"paper_version":null,"sources_json":null,"relevance_score":null,"relevance_method":null,"cited_by":null,"contract_version":"news_item.v1","format_contract_version":"news_item_formats.v1","dedup_url":"https://aws.amazon.com/blogs/machine-learning/optimizing-cost-per-task-and-proving-agent-roi-on-amazon-bedrock/","quality_profile":{"profile_version":"extraction_quality.v2","bucket":"high","confidence":0.9,"failure_kind":"none","retryable":false,"retry_after_attempts":0,"reason":"High confidence: full text extraction produced 16148 characters.","operator_guidance":{"severity":"ok","recommended_action":"trust_full_text","next_step":"Use the extracted full text as the primary article source.","operator_label":"Ready","can_retry":false,"can_use_summary":false,"diagnostics_required":false},"content_depth":{"contract_version":"content_depth.v1","category":"full_text","label":"Full text","has_full_text":true,"has_summary":true,"content_length":16148,"summary_length":403,"usable_text_length":16148,"source_field":"content"},"legacy_collapsed":false,"signals":{"extract_state":"ok","extract_error":null,"extract_retries":0,"content_length":16148,"summary_length":403}},"news_item":{"id":142415,"canonical_url":"https://aws.amazon.com/blogs/machine-learning/optimizing-cost-per-task-and-proving-agent-roi-on-amazon-bedrock/","source_url":"https://aws.amazon.com/blogs/machine-learning/optimizing-cost-per-task-and-proving-agent-roi-on-amazon-bedrock/","title":"Optimizing cost per task and proving agent ROI on Amazon Bedrock - Amazon Web Services (AWS)","source_name":"Amazon Web Services (AWS)","author":null,"published_at":"2026-11-12T18:43:19+00:00","locale":"en","topic":"ai","tags":[],"rss_summary":"<a href=\"https://news.google.com/rss/articles/CBMisAFBVV95cUxNSi04UWpIVThncVlzN2Z2dW44eWJTT1ZmWHhESllLdVRoVFBzMmVsQmlPYU5hZTlHTUxtazdaUlRoaEJ0RDVkZmdkWTh5MnhuemFLWVZDcktaRWFuSnN5YXM4dVE2WHhKdElFbmpKdXNuYmgyV1h4Qk1EYUxwV29pUDZwNERhbk1uWGlEaVhkLXc5bG9JM0JYRkJyLXhsbWMtU3lfYW5xVUplUWNrTHI1Tw?oc=5\" target=\"_blank\">Optimizing cost per task and proving agent ROI on Amazon Bedrock</a>&nbsp;&nbsp;<font color=\"#6f6f6f\">Amazon Web Services (AWS)</font>","full_text":"Optimizing cost per task and proving agent ROI on Amazon Bedrock\nPart 1 of this series built the operating model that controls Amazon Bedrock spend: attribution with AWS Identity and Access Management (IAM) principal tags and Cost and Usage Report 2.0, observability with model invocation logging, enforcement at three tiers, and a review cadence. That layer answers who spent it, and you can stop them. It can’t tell you whether the spend was well spent.\nThis post answers two questions that Part 1 deliberately left open. First: Why is this workflow expensive? The answer requires thinking in cost per task, not cost per token. Second: Is the agent better than the humans were? The answer requires baselines, controlled experiments, and a scorecard tied to decisions.\nIn this post, you learn a framework for calculating true model cost (including four hidden cost drivers that the pricing page doesn’t show), techniques for reducing cost per task through caching, routing, and output constraints, and a discipline for measuring agent ROI with human baselines, holdout experiments, and a five-dimension scorecard. This post is written for two audiences: the application and platform engineers who own the optimization levers, and the product owners and FinOps partners who need to justify agent spend to leadership.\nCost per task, not cost per token\nPrice per token invites quick comparison, but it doesn’t reflect what you actually pay. The published rate reflects the cost of a single token. Your bill reflects the cost of completing a task. A task is one complete unit of work your application asks a model to do: resolve one support email, extract fields from one invoice, or answer one user question. A task runs from the request through to a usable result, however many model calls it takes.\nThe lower-priced model might not be the cheaper one to run. A cheaper model might fragment your text into more tokens, pad responses with filler, misread your tool schema and loop through corrections, or burn thousands of reasoning tokens before answering. None of these costs appear on the Bedrock pricing page.\nThe four hidden cost drivers\nFour model characteristics determine what that published rate actually costs you on your workload.\nTokenizer efficiency\nA token isn’t a word, and it is not equal across models. Every model family uses a different tokenizer and vocabulary. The same text, code, or JSON payload splits into different token counts. If Model A’s list price is 15 percent lower but its tokenizer needs 40 percent more tokens for your data (common with structured schemas and numerical arrays), Model B is cheaper. The gap widens for non-English text: many tokenizers fragment non-Latin scripts into two to three times more tokens than the equivalent English.\nOutput alignment and verbosity\nOutput tokens commonly cost 3–5x more than input tokens (the ratio varies by family. Refer to the Bedrock pricing page). A model that ignores formatting constraints like “return only raw JSON” makes you pay that output premium for filler words. A model that follows formatting instructions closely saves money by generating fewer of these more expensive output tokens.\nAgentic loop efficiency\nAgentic workflows change the cost math entirely. Tool use (function calling) lets a model invoke external functions, requiring a multi-turn loop: analyze the prompt, decide to call a tool, wait for the observation, generate an answer. Each turn re-sends the full conversation history and tool results as input tokens. A model that takes four turns (each one re-sending a larger context payload) costs far more than one that finishes in a single pass.\nReasoning overhead\nMany models support extended thinking, working through a chain of thought before the visible answer. Reasoning tokens bill as output tokens, so a model that thinks for 2,000 tokens before a 200-token answer bills you for 2,200. Some models redact the reasoning while still charging for it. Start with reasoning turned off and enable it only when benchmarks show a quality gap that justifies the cost.\nCost per task: A worked example\nConsider an agentic workflow that reads a 750-word customer email, extracts entities, calls an API to verify account status, and outputs strict JSON. The following comparison uses illustrative prices (always benchmark against your own data and current Bedrock pricing):\n| Metric | Model A (lower list price) | Model B (higher list price) | \n| Input list price | $0.50 / 1M tokens | $1.00 / 1M tokens | \n| Output list price | $1.50 / 1M tokens | $3.00 / 1M tokens | \n| Tokenizer efficiency (turn 1 input) | 1,500 tokens | 1,000 tokens | \n| Output verbosity (final response) | 450 tokens | 150 tokens | \n| Agentic loops required | 3 turns (error correction) | 1 turn (zero-shot) | \n| Cumulative input tokens, all turns | 6,150 | 1,000 | \n| Cumulative output tokens, all turns | 750 | 150 | \n| Total task cost | $0.0042 | $0.00145 | \nModel A: (6,150 x $0.50 + 750 x $1.50) / 1,000,000 = $0.0042\nModel B: (1,000 x $1.00 + 150 x $3.00) / 1,000,000 = $0.00145\nWhy the 2x-priced model costs 65 percent less: three compounding factors. Model A’s tokenizer fragments the email into 50 percent more tokens, inflating every input payload. It pads its JSON with filler, tripling output tokens. And it misaligns with the tool schema, needing two correction turns that each re-send a growing history.\nCost per successful task\nThe preceding example assumes both models eventually succeed. In production they won’t, and a failure is rarely free. The formulas:\nFor retry-until-success workflows:\ncost per successful task = cost per attempt / success rate\nFor escalate-on-failure workflows:\ncost per successful task = cost per attempt + (1 - success rate) x escalation cost\nInput further splits into three buckets when prompt caching is active: uncached input at base rate, cache reads below base rate, and cache writes above base rate.\nMeasuring it on your own workload\nWhich model is actually cheaper only shows up when you benchmark against your own data. Amazon Bedrock model evaluation is the managed feature for the quality half of that: define criteria, upload your prompt datasets, and get scored results with automatic metrics and optional human review, with no custom infrastructure required.\nQuality scores alone don’t produce a bill, though. Three more Bedrock features supply the token and turn counts you price against them:\n- CountTokens returns the input token count a given model would charge for a given payload without running inference. It’s the cheapest way to compare tokenizer efficiency (driver #1) across candidates before you spend anything on generation.\n- Model invocation response carries a usageblock withinputTokens,outputTokens,cacheReadInputTokens, andcacheWriteInputTokens. Accumulating those across the turns of a single task gives you the four terms of the preceding cost-per-attempt formula. One gotcha: when caching is enabled,inputTokenscounts only the uncached tokens, so your total input volume isinputTokens + cacheReadInputTokens + cacheWriteInputTokens. Sum them to know the footprint, but price them separately, since the three bill at different rates. Evaluate this multiple times throughout your journey and set the cache checkpoints based on what is the active current load. The drift in cache checkpoints happens as the application progresses and the tools become stale. This means that you will be writing more to the cache in 3 months from now when the drift has happened. Evaluating your data constantly for optimal cache usage becomes a primary lever to reduce cost.\n- Model invocation logging writes per-invocation token counts to Amazon Simple Storage Service (Amazon S3) or Amazon CloudWatch Logs, so you can measure turns-to-completion against real production traffic instead of a sample. Tag calls with request metadata to slice those logged token counts by team, feature, or experiment. However, these are log fields, not cost allocation tags, and never appear in AWS Cost Explorer or your Cost and Usage Report. Application inference profiles do reach both, at a grain of one usage type per day. That grain is right for chargeback but too coarse for cost per task. Multiplying logged token counts by the published rates gives you a near real-time estimate rather than an invoice. It won’t reflect commitments, batch pricing, or provisioned throughput unless you model them. Reconcile against your Cost and Usage Report before you treat it as the bill.\nReducing cost per task: Four levers\nEach of the four drivers has a lever, and each is documented in depth. Prompt caching cuts the re-sent context that made Model A expensive, which makes it the largest win on agentic paths. Intelligent prompt routing sends the easy requests to a cheaper model in the same family. A tool schema plus a maxTokens cap holds verbosity down more reliably than prose instructions do, and extended thinking stays off until a benchmark shows it earns its cost back. Batch inference halves the rate on bulk single-turn work, though it rules out tool calling and multi-turn exchange.\nProving agent ROI: Describe the human baseline\nEfficient isn’t the same as valuable. An agent can be perfectly optimized and still not be worth running. The question that decides budgets is: is the agent better than the humans were?\nDocument the human process first\nThe biggest mistake in agent ROI is trying to prove value without first describing the human workflow. Before building or scaling an agent, write down the current process in operational terms: what triggers the work, which human roles are involved, where the handoffs sit, how completion is defined. This sounds like bureaucracy. It’s actually measurement design. Every instrumentation decision downstream (what counts as a run, what counts as success, where human time is spent) falls out of this description.\nMeasure the baseline before the agent ships\nWith the process described, measure the human baseline over a meaningful window: time to completion, queue time, active effort, reopen rate, escalation rate, cost per task, and outcome quality. Baselines must be measured before the agent goes live, not reconstructed from memory after the fact. Retrospective baselines are systematically flattering to the agent: people remember the average case and forget the fast ones.\nInstrument the workflow as an experiment\nAfter the baseline exists, instrument the agent workflow as an experiment from day one. Every run gets a trace ID, and every meaningful step is observable. A workflow-run record aggregates everything above the model call into a single analyzable unit:\nThree fields deserve emphasis:\nexperiment block: Stamped at run creation and propagated into Bedrock request metadata, so model-level and workflow-level records join cleanly.\nhumanMinutes: What most teams omit and most need. Without it, “the agent did the work” silently excludes the 35 minutes a human spent reviewing it.\nrevenueEventId: The hook that makes revenue attribution possible later. It costs nothing to record and can’t be reconstructed afterward.\nThe rule: If the workflow telemetry can’t answer the business question, the instrumentation is incomplete.\nJoin cost to outcomes\nWith invocation logs landing in Amazon S3 (Part 1) and workflow-run records in your analytics store, one join produces the metrics that matter. Amazon Bedrock logs record tokens, not dollars, so first build a view that prices each invocation from token counts and your model rate sheet, aggregated by run ID. Then query with Amazon Athena:\nNote: Column names and join keys shown in the preceding query are illustrative. Verify against your invocation log schema and workflow telemetry store, which might vary by implementation.\nCost per successful outcome, retries per success, and human minutes per success are the three numbers that survive contact with a skeptical CFO. Cost per call flatters agents that loop. Cost per success doesn’t. Note the variant grouping: the same query, split by experiment arm, is the ROI comparison.\nCompare agents and humans correctly\nThe most credible evaluation is an A/B or holdout test. Controlled treatment and control groups compare the agent-assisted workflow against the human baseline without confusing the result with market, seasonal, or organizational changes.\nFor customer-facing or revenue-linked workflows, randomize at the visitor, lead, account, or case level. For internal workflows (support operations, coding assistants), use matched cohorts: teams, repository groups, or pods.\nThe comparison covers four dimensions:\nEfficiency: time to completion, hours recovered, queue-time reduction.\nQuality: error rate, approval rate, reopen rate, escalation rate.\nCost: cost per task, cost per successful outcome, total cost to serve.\nBusiness value: conversion lift, retention lift, expansion rate, revenue per rep or per workflow.\nIf the agent improves one dimension while meaningfully degrading another, the result is ambiguous and the deployment needs tuning.\nRevenue: The hardest metric\nEfficiency gains are the easiest part of the ROI story to prove. Revenue impact is harder, and it is the metric leadership funds against. In revenue-adjacent workflows, measure whether the agent improves conversion, time-to-response, deal progression, or revenue per rep. Holdout tests are the most reliable way to separate incremental revenue attributable to the agent from general business momentum.\nWhen revenue lift is real, the conversation changes. The organization stops asking whether the Bedrock bill went up and starts asking whether the additional spend is buying a meaningful increase in business output.\nThe scorecard\nBased on what we have observed working with customers, a strong operating model doesn’t require fifty metrics. What works is a small scorecard tied to decisions, reviewed on a regular cadence for every production agent.\nThe following thresholds are starting points, not prescriptions. Calibrate them against your own fleet data and organizational context.\n| Dimension | Metric | Green | Yellow | Red | \n| Adoption | Active users / intended users | >70% | 40-70% | <40% | \n| Quality | Tasks completed without rework | >90% | 75-90% | <75% | \n| Efficiency | Hours recovered per week | >target | 50-100% of target | <50% of target | \n| Cost | Cost per successful outcome | ≤budget | 1-1.5x budget | >1.5x budget | \n| Business impact | KPI lift compared to baseline | Significant | Marginal | None or negative | \nGreen means scale: the agent beats baseline while meeting cost and quality thresholds. Yellow means tune: promising but needs work. Red means retire or redesign: the agent consumes cost without enough measurable value. The willingness to actually retire a red agent is what makes the rest of the scorecard credible.\nConclusion\nIn this post, you learned how to calculate the true cost of a model by accounting for four hidden cost drivers (tokenizer efficiency, output alignment, agentic loop efficiency, and reasoning overhead), how to reduce cost per task through prompt caching, model routing, output constraints, and batch inference, and how to prove agent ROI by measuring human baselines, instrumenting workflows as experiments, joining cost to outcomes, and running holdout comparisons.\nThe cost optimization half answers “why is this expensive and how do I fix it.” The ROI half answers “is the agent better than the humans were.” Together with Part 1’s operating model (attribute, observe, enforce, optimize, operate), they form a complete framework: you can see who spent it, explain why, reduce the waste, and justify what remains.\nTo get started, benchmark your top model candidates against your own prompts using Amazon Bedrock model evaluation, capture tokens and turns from the usage block or your invocation logs, price them against current Bedrock pricing, and divide by success rate. For ROI measurement, consult the Well-Architected Agentic AI Lens for agent cost governance best practices.\nIf you have found other techniques for reducing cost per task or measuring agent ROI on Amazon Bedrock, let us know in the comments.","excerpt":"Optimizing cost per task and proving agent ROI on Amazon Bedrock\nPart 1 of this series built the operating model that controls Amazon Bedrock spend: attribution with AWS Identity and Access Management (IAM) principal tags and Cost and Usage Report 2.0, observability with model invocation logging, enforcement at three tiers, and a review cadence. That layer answers who spent it, and you can stop them.","extraction":{"state":"ok","confidence":0.9,"error":null,"explanation":"High confidence: full text extraction produced 16148 characters.","diagnostics_url":"/api/diagnose?url=https%3A//aws.amazon.com/blogs/machine-learning/optimizing-cost-per-task-and-proving-agent-roi-on-amazon-bedrock/","quality_profile":{"profile_version":"extraction_quality.v2","bucket":"high","confidence":0.9,"failure_kind":"none","retryable":false,"retry_after_attempts":0,"reason":"High confidence: full text extraction produced 16148 characters.","operator_guidance":{"severity":"ok","recommended_action":"trust_full_text","next_step":"Use the extracted full text as the primary article source.","operator_label":"Ready","can_retry":false,"can_use_summary":false,"diagnostics_required":false},"content_depth":{"contract_version":"content_depth.v1","category":"full_text","label":"Full text","has_full_text":true,"has_summary":true,"content_length":16148,"summary_length":403,"usable_text_length":16148,"source_field":"content"},"legacy_collapsed":false,"signals":{"extract_state":"ok","extract_error":null,"extract_retries":0,"content_length":16148,"summary_length":403}}},"display_formats":["compact","card","full","digest_section","json"]},"daily_stack_record":{"title":"Optimizing cost per task and proving agent ROI on Amazon Bedrock - Amazon Web Services (AWS)","url":"https://aws.amazon.com/blogs/machine-learning/optimizing-cost-per-task-and-proving-agent-roi-on-amazon-bedrock/","summary":"Optimizing cost per task and proving agent ROI on Amazon Bedrock\nPart 1 of this series built the operating model that controls Amazon Bedrock spend: attribution with AWS Identity and Access Management (IAM) principal tags and Cost and Usage Report 2.0, observability with model invocation logging, enforcement at three tiers, and a review cadence. That layer answers who spent it, and you can stop them.","source":"Amazon Web Services (AWS)","date":"2026-11-12T18:43:19+00:00","content":"Optimizing cost per task and proving agent ROI on Amazon Bedrock\nPart 1 of this series built the operating model that controls Amazon Bedrock spend: attribution with AWS Identity and Access Management (IAM) principal tags and Cost and Usage Report 2.0, observability with model invocation logging, enforcement at three tiers, and a review cadence. That layer answers who spent it, and you can stop them. It can’t tell you whether the spend was well spent.\nThis post answers two questions that Part 1 deliberately left open. First: Why is this workflow expensive? The answer requires thinking in cost per task, not cost per token. Second: Is the agent better than the humans were? The answer requires baselines, controlled experiments, and a scorecard tied to decisions.\nIn this post, you learn a framework for calculating true model cost (including four hidden cost drivers that the pricing page doesn’t show), techniques for reducing cost per task through caching, routing, and output constraints, and a discipline for measuring agent ROI with human baselines, holdout experiments, and a five-dimension scorecard. This post is written for two audiences: the application and platform engineers who own the optimization levers, and the product owners and FinOps partners who need to justify agent spend to leadership.\nCost per task, not cost per token\nPrice per token invites quick comparison, but it doesn’t reflect what you actually pay. The published rate reflects the cost of a single token. Your bill reflects the cost of completing a task. A task is one complete unit of work your application asks a model to do: resolve one support email, extract fields from one invoice, or answer one user question. A task runs from the request through to a usable result, however many model calls it takes.\nThe lower-priced model might not be the cheaper one to run. A cheaper model might fragment your text into more tokens, pad responses with filler, misread your tool schema and loop through corrections, or burn thousands of reasoning tokens before answering. None of these costs appear on the Bedrock pricing page.\nThe four hidden cost drivers\nFour model characteristics determine what that published rate actually costs you on your workload.\nTokenizer efficiency\nA token isn’t a word, and it is not equal across models. Every model family uses a different tokenizer and vocabulary. The same text, code, or JSON payload splits into different token counts. If Model A’s list price is 15 percent lower but its tokenizer needs 40 percent more tokens for your data (common with structured schemas and numerical arrays), Model B is cheaper. The gap widens for non-English text: many tokenizers fragment non-Latin scripts into two to three times more tokens than the equivalent English.\nOutput alignment and verbosity\nOutput tokens commonly cost 3–5x more than input tokens (the ratio varies by family. Refer to the Bedrock pricing page). A model that ignores formatting constraints like “return only raw JSON” makes you pay that output premium for filler words. A model that follows formatting instructions closely saves money by generating fewer of these more expensive output tokens.\nAgentic loop efficiency\nAgentic workflows change the cost math entirely. Tool use (function calling) lets a model invoke external functions, requiring a multi-turn loop: analyze the prompt, decide to call a tool, wait for the observation, generate an answer. Each turn re-sends the full conversation history and tool results as input tokens. A model that takes four turns (each one re-sending a larger context payload) costs far more than one that finishes in a single pass.\nReasoning overhead\nMany models support extended thinking, working through a chain of thought before the visible answer. Reasoning tokens bill as output tokens, so a model that thinks for 2,000 tokens before a 200-token answer bills you for 2,200. Some models redact the reasoning while still charging for it. Start with reasoning turned off and enable it only when benchmarks show a quality gap that justifies the cost.\nCost per task: A worked example\nConsider an agentic workflow that reads a 750-word customer email, extracts entities, calls an API to verify account status, and outputs strict JSON. The following comparison uses illustrative prices (always benchmark against your own data and current Bedrock pricing):\n| Metric | Model A (lower list price) | Model B (higher list price) | \n| Input list price | $0.50 / 1M tokens | $1.00 / 1M tokens | \n| Output list price | $1.50 / 1M tokens | $3.00 / 1M tokens | \n| Tokenizer efficiency (turn 1 input) | 1,500 tokens | 1,000 tokens | \n| Output verbosity (final response) | 450 tokens | 150 tokens | \n| Agentic loops required | 3 turns (error correction) | 1 turn (zero-shot) | \n| Cumulative input tokens, all turns | 6,150 | 1,000 | \n| Cumulative output tokens, all turns | 750 | 150 | \n| Total task cost | $0.0042 | $0.00145 | \nModel A: (6,150 x $0.50 + 750 x $1.50) / 1,000,000 = $0.0042\nModel B: (1,000 x $1.00 + 150 x $3.00) / 1,000,000 = $0.00145\nWhy the 2x-priced model costs 65 percent less: three compounding factors. Model A’s tokenizer fragments the email into 50 percent more tokens, inflating every input payload. It pads its JSON with filler, tripling output tokens. And it misaligns with the tool schema, needing two correction turns that each re-send a growing history.\nCost per successful task\nThe preceding example assumes both models eventually succeed. In production they won’t, and a failure is rarely free. The formulas:\nFor retry-until-success workflows:\ncost per successful task = cost per attempt / success rate\nFor escalate-on-failure workflows:\ncost per successful task = cost per attempt + (1 - success rate) x escalation cost\nInput further splits into three buckets when prompt caching is active: uncached input at base rate, cache reads below base rate, and cache writes above base rate.\nMeasuring it on your own workload\nWhich model is actually cheaper only shows up when you benchmark against your own data. Amazon Bedrock model evaluation is the managed feature for the quality half of that: define criteria, upload your prompt datasets, and get scored results with automatic metrics and optional human review, with no custom infrastructure required.\nQuality scores alone don’t produce a bill, though. Three more Bedrock features supply the token and turn counts you price against them:\n- CountTokens returns the input token count a given model would charge for a given payload without running inference. It’s the cheapest way to compare tokenizer efficiency (driver #1) across candidates before you spend anything on generation.\n- Model invocation response carries a usageblock withinputTokens,outputTokens,cacheReadInputTokens, andcacheWriteInputTokens. Accumulating those across the turns of a single task gives you the four terms of the preceding cost-per-attempt formula. One gotcha: when caching is enabled,inputTokenscounts only the uncached tokens, so your total input volume isinputTokens + cacheReadInputTokens + cacheWriteInputTokens. Sum them to know the footprint, but price them separately, since the three bill at different rates. Evaluate this multiple times throughout your journey and set the cache checkpoints based on what is the active current load. The drift in cache checkpoints happens as the application progresses and the tools become stale. This means that you will be writing more to the cache in 3 months from now when the drift has happened. Evaluating your data constantly for optimal cache usage becomes a primary lever to reduce cost.\n- Model invocation logging writes per-invocation token counts to Amazon Simple Storage Service (Amazon S3) or Amazon CloudWatch Logs, so you can measure turns-to-completion against real production traffic instead of a sample. Tag calls with request metadata to slice those logged token counts by team, feature, or experiment. However, these are log fields, not cost allocation tags, and never appear in AWS Cost Explorer or your Cost and Usage Report. Application inference profiles do reach both, at a grain of one usage type per day. That grain is right for chargeback but too coarse for cost per task. Multiplying logged token counts by the published rates gives you a near real-time estimate rather than an invoice. It won’t reflect commitments, batch pricing, or provisioned throughput unless you model them. Reconcile against your Cost and Usage Report before you treat it as the bill.\nReducing cost per task: Four levers\nEach of the four drivers has a lever, and each is documented in depth. Prompt caching cuts the re-sent context that made Model A expensive, which makes it the largest win on agentic paths. Intelligent prompt routing sends the easy requests to a cheaper model in the same family. A tool schema plus a maxTokens cap holds verbosity down more reliably than prose instructions do, and extended thinking stays off until a benchmark shows it earns its cost back. Batch inference halves the rate on bulk single-turn work, though it rules out tool calling and multi-turn exchange.\nProving agent ROI: Describe the human baseline\nEfficient isn’t the same as valuable. An agent can be perfectly optimized and still not be worth running. The question that decides budgets is: is the agent better than the humans were?\nDocument the human process first\nThe biggest mistake in agent ROI is trying to prove value without first describing the human workflow. Before building or scaling an agent, write down the current process in operational terms: what triggers the work, which human roles are involved, where the handoffs sit, how completion is defined. This sounds like bureaucracy. It’s actually measurement design. Every instrumentation decision downstream (what counts as a run, what counts as success, where human time is spent) falls out of this description.\nMeasure the baseline before the agent ships\nWith the process described, measure the human baseline over a meaningful window: time to completion, queue time, active effort, reopen rate, escalation rate, cost per task, and outcome quality. Baselines must be measured before the agent goes live, not reconstructed from memory after the fact. Retrospective baselines are systematically flattering to the agent: people remember the average case and forget the fast ones.\nInstrument the workflow as an experiment\nAfter the baseline exists, instrument the agent workflow as an experiment from day one. Every run gets a trace ID, and every meaningful step is observable. A workflow-run record aggregates everything above the model call into a single analyzable unit:\nThree fields deserve emphasis:\nexperiment block: Stamped at run creation and propagated into Bedrock request metadata, so model-level and workflow-level records join cleanly.\nhumanMinutes: What most teams omit and most need. Without it, “the agent did the work” silently excludes the 35 minutes a human spent reviewing it.\nrevenueEventId: The hook that makes revenue attribution possible later. It costs nothing to record and can’t be reconstructed afterward.\nThe rule: If the workflow telemetry can’t answer the business question, the instrumentation is incomplete.\nJoin cost to outcomes\nWith invocation logs landing in Amazon S3 (Part 1) and workflow-run records in your analytics store, one join produces the metrics that matter. Amazon Bedrock logs record tokens, not dollars, so first build a view that prices each invocation from token counts and your model rate sheet, aggregated by run ID. Then query with Amazon Athena:\nNote: Column names and join keys shown in the preceding query are illustrative. Verify against your invocation log schema and workflow telemetry store, which might vary by implementation.\nCost per successful outcome, retries per success, and human minutes per success are the three numbers that survive contact with a skeptical CFO. Cost per call flatters agents that loop. Cost per success doesn’t. Note the variant grouping: the same query, split by experiment arm, is the ROI comparison.\nCompare agents and humans correctly\nThe most credible evaluation is an A/B or holdout test. Controlled treatment and control groups compare the agent-assisted workflow against the human baseline without confusing the result with market, seasonal, or organizational changes.\nFor customer-facing or revenue-linked workflows, randomize at the visitor, lead, account, or case level. For internal workflows (support operations, coding assistants), use matched cohorts: teams, repository groups, or pods.\nThe comparison covers four dimensions:\nEfficiency: time to completion, hours recovered, queue-time reduction.\nQuality: error rate, approval rate, reopen rate, escalation rate.\nCost: cost per task, cost per successful outcome, total cost to serve.\nBusiness value: conversion lift, retention lift, expansion rate, revenue per rep or per workflow.\nIf the agent improves one dimension while meaningfully degrading another, the result is ambiguous and the deployment needs tuning.\nRevenue: The hardest metric\nEfficiency gains are the easiest part of the ROI story to prove. Revenue impact is harder, and it is the metric leadership funds against. In revenue-adjacent workflows, measure whether the agent improves conversion, time-to-response, deal progression, or revenue per rep. Holdout tests are the most reliable way to separate incremental revenue attributable to the agent from general business momentum.\nWhen revenue lift is real, the conversation changes. The organization stops asking whether the Bedrock bill went up and starts asking whether the additional spend is buying a meaningful increase in business output.\nThe scorecard\nBased on what we have observed working with customers, a strong operating model doesn’t require fifty metrics. What works is a small scorecard tied to decisions, reviewed on a regular cadence for every production agent.\nThe following thresholds are starting points, not prescriptions. Calibrate them against your own fleet data and organizational context.\n| Dimension | Metric | Green | Yellow | Red | \n| Adoption | Active users / intended users | >70% | 40-70% | <40% | \n| Quality | Tasks completed without rework | >90% | 75-90% | <75% | \n| Efficiency | Hours recovered per week | >target | 50-100% of target | <50% of target | \n| Cost | Cost per successful outcome | ≤budget | 1-1.5x budget | >1.5x budget | \n| Business impact | KPI lift compared to baseline | Significant | Marginal | None or negative | \nGreen means scale: the agent beats baseline while meeting cost and quality thresholds. Yellow means tune: promising but needs work. Red means retire or redesign: the agent consumes cost without enough measurable value. The willingness to actually retire a red agent is what makes the rest of the scorecard credible.\nConclusion\nIn this post, you learned how to calculate the true cost of a model by accounting for four hidden cost drivers (tokenizer efficiency, output alignment, agentic loop efficiency, and reasoning overhead), how to reduce cost per task through prompt caching, model routing, output constraints, and batch inference, and how to prove agent ROI by measuring human baselines, instrumenting workflows as experiments, joining cost to outcomes, and running holdout comparisons.\nThe cost optimization half answers “why is this expensive and how do I fix it.” The ROI half answers “is the agent better than the humans were.” Together with Part 1’s operating model (attribute, observe, enforce, optimize, operate), they form a complete framework: you can see who spent it, explain why, reduce the waste, and justify what remains.\nTo get started, benchmark your top model candidates against your own prompts using Amazon Bedrock model evaluation, capture tokens and turns from the usage block or your invocation logs, price them against current Bedrock pricing, and divide by success rate. For ROI measurement, consult the Well-Architected Agentic AI Lens for agent cost governance best practices.\nIf you have found other techniques for reducing cost per task or measuring agent ROI on Amazon Bedrock, let us know in the comments.","confidence":0.9,"diagnostics_url":"/api/diagnose?url=https%3A//aws.amazon.com/blogs/machine-learning/optimizing-cost-per-task-and-proving-agent-roi-on-amazon-bedrock/","quality_bucket":"high","failure_kind":"none","retryable":false,"quality_reason":"High confidence: full text extraction produced 16148 characters.","quality_profile":{"profile_version":"extraction_quality.v2","bucket":"high","confidence":0.9,"failure_kind":"none","retryable":false,"retry_after_attempts":0,"reason":"High confidence: full text extraction produced 16148 characters.","operator_guidance":{"severity":"ok","recommended_action":"trust_full_text","next_step":"Use the extracted full text as the primary article source.","operator_label":"Ready","can_retry":false,"can_use_summary":false,"diagnostics_required":false},"content_depth":{"contract_version":"content_depth.v1","category":"full_text","label":"Full text","has_full_text":true,"has_summary":true,"content_length":16148,"summary_length":403,"usable_text_length":16148,"source_field":"content"},"legacy_collapsed":false,"signals":{"extract_state":"ok","extract_error":null,"extract_retries":0,"content_length":16148,"summary_length":403}},"tags":[]},"fallback_formats":["markdown","json","html"],"actions":{"read":"/item/142415","export_markdown":"/api/items/142415/export?format=markdown","export_json":"/api/items/142415/export?format=json","diagnose":"/api/diagnose?url=https%3A//aws.amazon.com/blogs/machine-learning/optimizing-cost-per-task-and-proving-agent-roi-on-amazon-bedrock/"},"formats":{"full":{"id":142415,"title":"Optimizing cost per task and proving agent ROI on Amazon Bedrock - Amazon Web Services (AWS)","url":"https://aws.amazon.com/blogs/machine-learning/optimizing-cost-per-task-and-proving-agent-roi-on-amazon-bedrock/","source":"Amazon Web Services (AWS)","author":null,"published_at":"2026-11-12T18:43:19+00:00","locale":"en","topic":"ai","tags":[],"excerpt":"Optimizing cost per task and proving agent ROI on Amazon Bedrock\nPart 1 of this series built the operating model that controls Amazon Bedrock spend: attribution with AWS Identity and Access Management (IAM) principal tags and Cost and Usage Report 2.0, observability with model invocation logging, enforcement at three tiers, and a review cadence. That layer answers who spent it, and you can stop them.","full_text":"Optimizing cost per task and proving agent ROI on Amazon Bedrock\nPart 1 of this series built the operating model that controls Amazon Bedrock spend: attribution with AWS Identity and Access Management (IAM) principal tags and Cost and Usage Report 2.0, observability with model invocation logging, enforcement at three tiers, and a review cadence. That layer answers who spent it, and you can stop them. It can’t tell you whether the spend was well spent.\nThis post answers two questions that Part 1 deliberately left open. First: Why is this workflow expensive? The answer requires thinking in cost per task, not cost per token. Second: Is the agent better than the humans were? The answer requires baselines, controlled experiments, and a scorecard tied to decisions.\nIn this post, you learn a framework for calculating true model cost (including four hidden cost drivers that the pricing page doesn’t show), techniques for reducing cost per task through caching, routing, and output constraints, and a discipline for measuring agent ROI with human baselines, holdout experiments, and a five-dimension scorecard. This post is written for two audiences: the application and platform engineers who own the optimization levers, and the product owners and FinOps partners who need to justify agent spend to leadership.\nCost per task, not cost per token\nPrice per token invites quick comparison, but it doesn’t reflect what you actually pay. The published rate reflects the cost of a single token. Your bill reflects the cost of completing a task. A task is one complete unit of work your application asks a model to do: resolve one support email, extract fields from one invoice, or answer one user question. A task runs from the request through to a usable result, however many model calls it takes.\nThe lower-priced model might not be the cheaper one to run. A cheaper model might fragment your text into more tokens, pad responses with filler, misread your tool schema and loop through corrections, or burn thousands of reasoning tokens before answering. None of these costs appear on the Bedrock pricing page.\nThe four hidden cost drivers\nFour model characteristics determine what that published rate actually costs you on your workload.\nTokenizer efficiency\nA token isn’t a word, and it is not equal across models. Every model family uses a different tokenizer and vocabulary. The same text, code, or JSON payload splits into different token counts. If Model A’s list price is 15 percent lower but its tokenizer needs 40 percent more tokens for your data (common with structured schemas and numerical arrays), Model B is cheaper. The gap widens for non-English text: many tokenizers fragment non-Latin scripts into two to three times more tokens than the equivalent English.\nOutput alignment and verbosity\nOutput tokens commonly cost 3–5x more than input tokens (the ratio varies by family. Refer to the Bedrock pricing page). A model that ignores formatting constraints like “return only raw JSON” makes you pay that output premium for filler words. A model that follows formatting instructions closely saves money by generating fewer of these more expensive output tokens.\nAgentic loop efficiency\nAgentic workflows change the cost math entirely. Tool use (function calling) lets a model invoke external functions, requiring a multi-turn loop: analyze the prompt, decide to call a tool, wait for the observation, generate an answer. Each turn re-sends the full conversation history and tool results as input tokens. A model that takes four turns (each one re-sending a larger context payload) costs far more than one that finishes in a single pass.\nReasoning overhead\nMany models support extended thinking, working through a chain of thought before the visible answer. Reasoning tokens bill as output tokens, so a model that thinks for 2,000 tokens before a 200-token answer bills you for 2,200. Some models redact the reasoning while still charging for it. Start with reasoning turned off and enable it only when benchmarks show a quality gap that justifies the cost.\nCost per task: A worked example\nConsider an agentic workflow that reads a 750-word customer email, extracts entities, calls an API to verify account status, and outputs strict JSON. The following comparison uses illustrative prices (always benchmark against your own data and current Bedrock pricing):\n| Metric | Model A (lower list price) | Model B (higher list price) | \n| Input list price | $0.50 / 1M tokens | $1.00 / 1M tokens | \n| Output list price | $1.50 / 1M tokens | $3.00 / 1M tokens | \n| Tokenizer efficiency (turn 1 input) | 1,500 tokens | 1,000 tokens | \n| Output verbosity (final response) | 450 tokens | 150 tokens | \n| Agentic loops required | 3 turns (error correction) | 1 turn (zero-shot) | \n| Cumulative input tokens, all turns | 6,150 | 1,000 | \n| Cumulative output tokens, all turns | 750 | 150 | \n| Total task cost | $0.0042 | $0.00145 | \nModel A: (6,150 x $0.50 + 750 x $1.50) / 1,000,000 = $0.0042\nModel B: (1,000 x $1.00 + 150 x $3.00) / 1,000,000 = $0.00145\nWhy the 2x-priced model costs 65 percent less: three compounding factors. Model A’s tokenizer fragments the email into 50 percent more tokens, inflating every input payload. It pads its JSON with filler, tripling output tokens. And it misaligns with the tool schema, needing two correction turns that each re-send a growing history.\nCost per successful task\nThe preceding example assumes both models eventually succeed. In production they won’t, and a failure is rarely free. The formulas:\nFor retry-until-success workflows:\ncost per successful task = cost per attempt / success rate\nFor escalate-on-failure workflows:\ncost per successful task = cost per attempt + (1 - success rate) x escalation cost\nInput further splits into three buckets when prompt caching is active: uncached input at base rate, cache reads below base rate, and cache writes above base rate.\nMeasuring it on your own workload\nWhich model is actually cheaper only shows up when you benchmark against your own data. Amazon Bedrock model evaluation is the managed feature for the quality half of that: define criteria, upload your prompt datasets, and get scored results with automatic metrics and optional human review, with no custom infrastructure required.\nQuality scores alone don’t produce a bill, though. Three more Bedrock features supply the token and turn counts you price against them:\n- CountTokens returns the input token count a given model would charge for a given payload without running inference. It’s the cheapest way to compare tokenizer efficiency (driver #1) across candidates before you spend anything on generation.\n- Model invocation response carries a usageblock withinputTokens,outputTokens,cacheReadInputTokens, andcacheWriteInputTokens. Accumulating those across the turns of a single task gives you the four terms of the preceding cost-per-attempt formula. One gotcha: when caching is enabled,inputTokenscounts only the uncached tokens, so your total input volume isinputTokens + cacheReadInputTokens + cacheWriteInputTokens. Sum them to know the footprint, but price them separately, since the three bill at different rates. Evaluate this multiple times throughout your journey and set the cache checkpoints based on what is the active current load. The drift in cache checkpoints happens as the application progresses and the tools become stale. This means that you will be writing more to the cache in 3 months from now when the drift has happened. Evaluating your data constantly for optimal cache usage becomes a primary lever to reduce cost.\n- Model invocation logging writes per-invocation token counts to Amazon Simple Storage Service (Amazon S3) or Amazon CloudWatch Logs, so you can measure turns-to-completion against real production traffic instead of a sample. Tag calls with request metadata to slice those logged token counts by team, feature, or experiment. However, these are log fields, not cost allocation tags, and never appear in AWS Cost Explorer or your Cost and Usage Report. Application inference profiles do reach both, at a grain of one usage type per day. That grain is right for chargeback but too coarse for cost per task. Multiplying logged token counts by the published rates gives you a near real-time estimate rather than an invoice. It won’t reflect commitments, batch pricing, or provisioned throughput unless you model them. Reconcile against your Cost and Usage Report before you treat it as the bill.\nReducing cost per task: Four levers\nEach of the four drivers has a lever, and each is documented in depth. Prompt caching cuts the re-sent context that made Model A expensive, which makes it the largest win on agentic paths. Intelligent prompt routing sends the easy requests to a cheaper model in the same family. A tool schema plus a maxTokens cap holds verbosity down more reliably than prose instructions do, and extended thinking stays off until a benchmark shows it earns its cost back. Batch inference halves the rate on bulk single-turn work, though it rules out tool calling and multi-turn exchange.\nProving agent ROI: Describe the human baseline\nEfficient isn’t the same as valuable. An agent can be perfectly optimized and still not be worth running. The question that decides budgets is: is the agent better than the humans were?\nDocument the human process first\nThe biggest mistake in agent ROI is trying to prove value without first describing the human workflow. Before building or scaling an agent, write down the current process in operational terms: what triggers the work, which human roles are involved, where the handoffs sit, how completion is defined. This sounds like bureaucracy. It’s actually measurement design. Every instrumentation decision downstream (what counts as a run, what counts as success, where human time is spent) falls out of this description.\nMeasure the baseline before the agent ships\nWith the process described, measure the human baseline over a meaningful window: time to completion, queue time, active effort, reopen rate, escalation rate, cost per task, and outcome quality. Baselines must be measured before the agent goes live, not reconstructed from memory after the fact. Retrospective baselines are systematically flattering to the agent: people remember the average case and forget the fast ones.\nInstrument the workflow as an experiment\nAfter the baseline exists, instrument the agent workflow as an experiment from day one. Every run gets a trace ID, and every meaningful step is observable. A workflow-run record aggregates everything above the model call into a single analyzable unit:\nThree fields deserve emphasis:\nexperiment block: Stamped at run creation and propagated into Bedrock request metadata, so model-level and workflow-level records join cleanly.\nhumanMinutes: What most teams omit and most need. Without it, “the agent did the work” silently excludes the 35 minutes a human spent reviewing it.\nrevenueEventId: The hook that makes revenue attribution possible later. It costs nothing to record and can’t be reconstructed afterward.\nThe rule: If the workflow telemetry can’t answer the business question, the instrumentation is incomplete.\nJoin cost to outcomes\nWith invocation logs landing in Amazon S3 (Part 1) and workflow-run records in your analytics store, one join produces the metrics that matter. Amazon Bedrock logs record tokens, not dollars, so first build a view that prices each invocation from token counts and your model rate sheet, aggregated by run ID. Then query with Amazon Athena:\nNote: Column names and join keys shown in the preceding query are illustrative. Verify against your invocation log schema and workflow telemetry store, which might vary by implementation.\nCost per successful outcome, retries per success, and human minutes per success are the three numbers that survive contact with a skeptical CFO. Cost per call flatters agents that loop. Cost per success doesn’t. Note the variant grouping: the same query, split by experiment arm, is the ROI comparison.\nCompare agents and humans correctly\nThe most credible evaluation is an A/B or holdout test. Controlled treatment and control groups compare the agent-assisted workflow against the human baseline without confusing the result with market, seasonal, or organizational changes.\nFor customer-facing or revenue-linked workflows, randomize at the visitor, lead, account, or case level. For internal workflows (support operations, coding assistants), use matched cohorts: teams, repository groups, or pods.\nThe comparison covers four dimensions:\nEfficiency: time to completion, hours recovered, queue-time reduction.\nQuality: error rate, approval rate, reopen rate, escalation rate.\nCost: cost per task, cost per successful outcome, total cost to serve.\nBusiness value: conversion lift, retention lift, expansion rate, revenue per rep or per workflow.\nIf the agent improves one dimension while meaningfully degrading another, the result is ambiguous and the deployment needs tuning.\nRevenue: The hardest metric\nEfficiency gains are the easiest part of the ROI story to prove. Revenue impact is harder, and it is the metric leadership funds against. In revenue-adjacent workflows, measure whether the agent improves conversion, time-to-response, deal progression, or revenue per rep. Holdout tests are the most reliable way to separate incremental revenue attributable to the agent from general business momentum.\nWhen revenue lift is real, the conversation changes. The organization stops asking whether the Bedrock bill went up and starts asking whether the additional spend is buying a meaningful increase in business output.\nThe scorecard\nBased on what we have observed working with customers, a strong operating model doesn’t require fifty metrics. What works is a small scorecard tied to decisions, reviewed on a regular cadence for every production agent.\nThe following thresholds are starting points, not prescriptions. Calibrate them against your own fleet data and organizational context.\n| Dimension | Metric | Green | Yellow | Red | \n| Adoption | Active users / intended users | >70% | 40-70% | <40% | \n| Quality | Tasks completed without rework | >90% | 75-90% | <75% | \n| Efficiency | Hours recovered per week | >target | 50-100% of target | <50% of target | \n| Cost | Cost per successful outcome | ≤budget | 1-1.5x budget | >1.5x budget | \n| Business impact | KPI lift compared to baseline | Significant | Marginal | None or negative | \nGreen means scale: the agent beats baseline while meeting cost and quality thresholds. Yellow means tune: promising but needs work. Red means retire or redesign: the agent consumes cost without enough measurable value. The willingness to actually retire a red agent is what makes the rest of the scorecard credible.\nConclusion\nIn this post, you learned how to calculate the true cost of a model by accounting for four hidden cost drivers (tokenizer efficiency, output alignment, agentic loop efficiency, and reasoning overhead), how to reduce cost per task through prompt caching, model routing, output constraints, and batch inference, and how to prove agent ROI by measuring human baselines, instrumenting workflows as experiments, joining cost to outcomes, and running holdout comparisons.\nThe cost optimization half answers “why is this expensive and how do I fix it.” The ROI half answers “is the agent better than the humans were.” Together with Part 1’s operating model (attribute, observe, enforce, optimize, operate), they form a complete framework: you can see who spent it, explain why, reduce the waste, and justify what remains.\nTo get started, benchmark your top model candidates against your own prompts using Amazon Bedrock model evaluation, capture tokens and turns from the usage block or your invocation logs, price them against current Bedrock pricing, and divide by success rate. For ROI measurement, consult the Well-Architected Agentic AI Lens for agent cost governance best practices.\nIf you have found other techniques for reducing cost per task or measuring agent ROI on Amazon Bedrock, let us know in the comments.","reading_time_min":13,"extraction":{"state":"ok","confidence":0.9,"error":null,"explanation":"High confidence: full text extraction produced 16148 characters.","diagnostics_url":"/api/diagnose?url=https%3A//aws.amazon.com/blogs/machine-learning/optimizing-cost-per-task-and-proving-agent-roi-on-amazon-bedrock/","quality_profile":{"profile_version":"extraction_quality.v2","bucket":"high","confidence":0.9,"failure_kind":"none","retryable":false,"retry_after_attempts":0,"reason":"High confidence: full text extraction produced 16148 characters.","operator_guidance":{"severity":"ok","recommended_action":"trust_full_text","next_step":"Use the extracted full text as the primary article source.","operator_label":"Ready","can_retry":false,"can_use_summary":false,"diagnostics_required":false},"content_depth":{"contract_version":"content_depth.v1","category":"full_text","label":"Full text","has_full_text":true,"has_summary":true,"content_length":16148,"summary_length":403,"usable_text_length":16148,"source_field":"content"},"legacy_collapsed":false,"signals":{"extract_state":"ok","extract_error":null,"extract_retries":0,"content_length":16148,"summary_length":403}}},"quality_profile":{"profile_version":"extraction_quality.v2","bucket":"high","confidence":0.9,"failure_kind":"none","retryable":false,"retry_after_attempts":0,"reason":"High confidence: full text extraction produced 16148 characters.","operator_guidance":{"severity":"ok","recommended_action":"trust_full_text","next_step":"Use the extracted full text as the primary article source.","operator_label":"Ready","can_retry":false,"can_use_summary":false,"diagnostics_required":false},"content_depth":{"contract_version":"content_depth.v1","category":"full_text","label":"Full text","has_full_text":true,"has_summary":true,"content_length":16148,"summary_length":403,"usable_text_length":16148,"source_field":"content"},"legacy_collapsed":false,"signals":{"extract_state":"ok","extract_error":null,"extract_retries":0,"content_length":16148,"summary_length":403}},"actions":{"read":"/item/142415","export_markdown":"/api/items/142415/export?format=markdown","export_json":"/api/items/142415/export?format=json","diagnose":"/api/diagnose?url=https%3A//aws.amazon.com/blogs/machine-learning/optimizing-cost-per-task-and-proving-agent-roi-on-amazon-bedrock/"}},"digest":{"id":142415,"title":"Optimizing cost per task and proving agent ROI on Amazon Bedrock - Amazon Web Services (AWS)","url":"https://aws.amazon.com/blogs/machine-learning/optimizing-cost-per-task-and-proving-agent-roi-on-amazon-bedrock/","source":"Amazon Web Services (AWS)","topic":"ai","published_at":"2026-11-12T18:43:19+00:00","excerpt":"Optimizing cost per task and proving agent ROI on Amazon Bedrock Part 1 of this series built the operating model that controls Amazon Bedrock spend: attribution with AWS Identity and Access Management (IAM) principal tags and Cost and Usage Report 2.0, observability with model…","quality_bucket":"high","quality_reason":"High confidence: full text extraction produced 16148 characters.","reading_time_min":13,"cluster_id":null},"card":{"display_title":"Optimizing cost per task and proving agent ROI on Amazon Bedrock - Amazon Web Services (AWS)","subtitle":"Amazon Web Services (AWS) · 2026-11-12","summary":"Optimizing cost per task and proving agent ROI on Amazon Bedrock Part 1 of this series built the operating model that controls Amazon Bedrock spend: attribution with AWS Identity and Access Management (IAM) principal…","badges":["quality:high"],"links":{"read":"/item/142415","original":"https://aws.amazon.com/blogs/machine-learning/optimizing-cost-per-task-and-proving-agent-roi-on-amazon-bedrock/","diagnose":"/api/diagnose?url=https%3A//aws.amazon.com/blogs/machine-learning/optimizing-cost-per-task-and-proving-agent-roi-on-amazon-bedrock/"},"quality_warning":null},"export":{"title":"Optimizing cost per task and proving agent ROI on Amazon Bedrock - Amazon Web Services (AWS)","url":"https://aws.amazon.com/blogs/machine-learning/optimizing-cost-per-task-and-proving-agent-roi-on-amazon-bedrock/","summary":"Optimizing cost per task and proving agent ROI on Amazon Bedrock\nPart 1 of this series built the operating model that controls Amazon Bedrock spend: attribution with AWS Identity and Access Management (IAM) principal tags and Cost and Usage Report 2.0, observability with model invocation logging, enforcement at three tiers, and a review cadence. That layer answers who spent it, and you can stop them.","source":"Amazon Web Services (AWS)","date":"2026-11-12T18:43:19+00:00","content":"Optimizing cost per task and proving agent ROI on Amazon Bedrock\nPart 1 of this series built the operating model that controls Amazon Bedrock spend: attribution with AWS Identity and Access Management (IAM) principal tags and Cost and Usage Report 2.0, observability with model invocation logging, enforcement at three tiers, and a review cadence. That layer answers who spent it, and you can stop them. It can’t tell you whether the spend was well spent.\nThis post answers two questions that Part 1 deliberately left open. First: Why is this workflow expensive? The answer requires thinking in cost per task, not cost per token. Second: Is the agent better than the humans were? The answer requires baselines, controlled experiments, and a scorecard tied to decisions.\nIn this post, you learn a framework for calculating true model cost (including four hidden cost drivers that the pricing page doesn’t show), techniques for reducing cost per task through caching, routing, and output constraints, and a discipline for measuring agent ROI with human baselines, holdout experiments, and a five-dimension scorecard. This post is written for two audiences: the application and platform engineers who own the optimization levers, and the product owners and FinOps partners who need to justify agent spend to leadership.\nCost per task, not cost per token\nPrice per token invites quick comparison, but it doesn’t reflect what you actually pay. The published rate reflects the cost of a single token. Your bill reflects the cost of completing a task. A task is one complete unit of work your application asks a model to do: resolve one support email, extract fields from one invoice, or answer one user question. A task runs from the request through to a usable result, however many model calls it takes.\nThe lower-priced model might not be the cheaper one to run. A cheaper model might fragment your text into more tokens, pad responses with filler, misread your tool schema and loop through corrections, or burn thousands of reasoning tokens before answering. None of these costs appear on the Bedrock pricing page.\nThe four hidden cost drivers\nFour model characteristics determine what that published rate actually costs you on your workload.\nTokenizer efficiency\nA token isn’t a word, and it is not equal across models. Every model family uses a different tokenizer and vocabulary. The same text, code, or JSON payload splits into different token counts. If Model A’s list price is 15 percent lower but its tokenizer needs 40 percent more tokens for your data (common with structured schemas and numerical arrays), Model B is cheaper. The gap widens for non-English text: many tokenizers fragment non-Latin scripts into two to three times more tokens than the equivalent English.\nOutput alignment and verbosity\nOutput tokens commonly cost 3–5x more than input tokens (the ratio varies by family. Refer to the Bedrock pricing page). A model that ignores formatting constraints like “return only raw JSON” makes you pay that output premium for filler words. A model that follows formatting instructions closely saves money by generating fewer of these more expensive output tokens.\nAgentic loop efficiency\nAgentic workflows change the cost math entirely. Tool use (function calling) lets a model invoke external functions, requiring a multi-turn loop: analyze the prompt, decide to call a tool, wait for the observation, generate an answer. Each turn re-sends the full conversation history and tool results as input tokens. A model that takes four turns (each one re-sending a larger context payload) costs far more than one that finishes in a single pass.\nReasoning overhead\nMany models support extended thinking, working through a chain of thought before the visible answer. Reasoning tokens bill as output tokens, so a model that thinks for 2,000 tokens before a 200-token answer bills you for 2,200. Some models redact the reasoning while still charging for it. Start with reasoning turned off and enable it only when benchmarks show a quality gap that justifies the cost.\nCost per task: A worked example\nConsider an agentic workflow that reads a 750-word customer email, extracts entities, calls an API to verify account status, and outputs strict JSON. The following comparison uses illustrative prices (always benchmark against your own data and current Bedrock pricing):\n| Metric | Model A (lower list price) | Model B (higher list price) | \n| Input list price | $0.50 / 1M tokens | $1.00 / 1M tokens | \n| Output list price | $1.50 / 1M tokens | $3.00 / 1M tokens | \n| Tokenizer efficiency (turn 1 input) | 1,500 tokens | 1,000 tokens | \n| Output verbosity (final response) | 450 tokens | 150 tokens | \n| Agentic loops required | 3 turns (error correction) | 1 turn (zero-shot) | \n| Cumulative input tokens, all turns | 6,150 | 1,000 | \n| Cumulative output tokens, all turns | 750 | 150 | \n| Total task cost | $0.0042 | $0.00145 | \nModel A: (6,150 x $0.50 + 750 x $1.50) / 1,000,000 = $0.0042\nModel B: (1,000 x $1.00 + 150 x $3.00) / 1,000,000 = $0.00145\nWhy the 2x-priced model costs 65 percent less: three compounding factors. Model A’s tokenizer fragments the email into 50 percent more tokens, inflating every input payload. It pads its JSON with filler, tripling output tokens. And it misaligns with the tool schema, needing two correction turns that each re-send a growing history.\nCost per successful task\nThe preceding example assumes both models eventually succeed. In production they won’t, and a failure is rarely free. The formulas:\nFor retry-until-success workflows:\ncost per successful task = cost per attempt / success rate\nFor escalate-on-failure workflows:\ncost per successful task = cost per attempt + (1 - success rate) x escalation cost\nInput further splits into three buckets when prompt caching is active: uncached input at base rate, cache reads below base rate, and cache writes above base rate.\nMeasuring it on your own workload\nWhich model is actually cheaper only shows up when you benchmark against your own data. Amazon Bedrock model evaluation is the managed feature for the quality half of that: define criteria, upload your prompt datasets, and get scored results with automatic metrics and optional human review, with no custom infrastructure required.\nQuality scores alone don’t produce a bill, though. Three more Bedrock features supply the token and turn counts you price against them:\n- CountTokens returns the input token count a given model would charge for a given payload without running inference. It’s the cheapest way to compare tokenizer efficiency (driver #1) across candidates before you spend anything on generation.\n- Model invocation response carries a usageblock withinputTokens,outputTokens,cacheReadInputTokens, andcacheWriteInputTokens. Accumulating those across the turns of a single task gives you the four terms of the preceding cost-per-attempt formula. One gotcha: when caching is enabled,inputTokenscounts only the uncached tokens, so your total input volume isinputTokens + cacheReadInputTokens + cacheWriteInputTokens. Sum them to know the footprint, but price them separately, since the three bill at different rates. Evaluate this multiple times throughout your journey and set the cache checkpoints based on what is the active current load. The drift in cache checkpoints happens as the application progresses and the tools become stale. This means that you will be writing more to the cache in 3 months from now when the drift has happened. Evaluating your data constantly for optimal cache usage becomes a primary lever to reduce cost.\n- Model invocation logging writes per-invocation token counts to Amazon Simple Storage Service (Amazon S3) or Amazon CloudWatch Logs, so you can measure turns-to-completion against real production traffic instead of a sample. Tag calls with request metadata to slice those logged token counts by team, feature, or experiment. However, these are log fields, not cost allocation tags, and never appear in AWS Cost Explorer or your Cost and Usage Report. Application inference profiles do reach both, at a grain of one usage type per day. That grain is right for chargeback but too coarse for cost per task. Multiplying logged token counts by the published rates gives you a near real-time estimate rather than an invoice. It won’t reflect commitments, batch pricing, or provisioned throughput unless you model them. Reconcile against your Cost and Usage Report before you treat it as the bill.\nReducing cost per task: Four levers\nEach of the four drivers has a lever, and each is documented in depth. Prompt caching cuts the re-sent context that made Model A expensive, which makes it the largest win on agentic paths. Intelligent prompt routing sends the easy requests to a cheaper model in the same family. A tool schema plus a maxTokens cap holds verbosity down more reliably than prose instructions do, and extended thinking stays off until a benchmark shows it earns its cost back. Batch inference halves the rate on bulk single-turn work, though it rules out tool calling and multi-turn exchange.\nProving agent ROI: Describe the human baseline\nEfficient isn’t the same as valuable. An agent can be perfectly optimized and still not be worth running. The question that decides budgets is: is the agent better than the humans were?\nDocument the human process first\nThe biggest mistake in agent ROI is trying to prove value without first describing the human workflow. Before building or scaling an agent, write down the current process in operational terms: what triggers the work, which human roles are involved, where the handoffs sit, how completion is defined. This sounds like bureaucracy. It’s actually measurement design. Every instrumentation decision downstream (what counts as a run, what counts as success, where human time is spent) falls out of this description.\nMeasure the baseline before the agent ships\nWith the process described, measure the human baseline over a meaningful window: time to completion, queue time, active effort, reopen rate, escalation rate, cost per task, and outcome quality. Baselines must be measured before the agent goes live, not reconstructed from memory after the fact. Retrospective baselines are systematically flattering to the agent: people remember the average case and forget the fast ones.\nInstrument the workflow as an experiment\nAfter the baseline exists, instrument the agent workflow as an experiment from day one. Every run gets a trace ID, and every meaningful step is observable. A workflow-run record aggregates everything above the model call into a single analyzable unit:\nThree fields deserve emphasis:\nexperiment block: Stamped at run creation and propagated into Bedrock request metadata, so model-level and workflow-level records join cleanly.\nhumanMinutes: What most teams omit and most need. Without it, “the agent did the work” silently excludes the 35 minutes a human spent reviewing it.\nrevenueEventId: The hook that makes revenue attribution possible later. It costs nothing to record and can’t be reconstructed afterward.\nThe rule: If the workflow telemetry can’t answer the business question, the instrumentation is incomplete.\nJoin cost to outcomes\nWith invocation logs landing in Amazon S3 (Part 1) and workflow-run records in your analytics store, one join produces the metrics that matter. Amazon Bedrock logs record tokens, not dollars, so first build a view that prices each invocation from token counts and your model rate sheet, aggregated by run ID. Then query with Amazon Athena:\nNote: Column names and join keys shown in the preceding query are illustrative. Verify against your invocation log schema and workflow telemetry store, which might vary by implementation.\nCost per successful outcome, retries per success, and human minutes per success are the three numbers that survive contact with a skeptical CFO. Cost per call flatters agents that loop. Cost per success doesn’t. Note the variant grouping: the same query, split by experiment arm, is the ROI comparison.\nCompare agents and humans correctly\nThe most credible evaluation is an A/B or holdout test. Controlled treatment and control groups compare the agent-assisted workflow against the human baseline without confusing the result with market, seasonal, or organizational changes.\nFor customer-facing or revenue-linked workflows, randomize at the visitor, lead, account, or case level. For internal workflows (support operations, coding assistants), use matched cohorts: teams, repository groups, or pods.\nThe comparison covers four dimensions:\nEfficiency: time to completion, hours recovered, queue-time reduction.\nQuality: error rate, approval rate, reopen rate, escalation rate.\nCost: cost per task, cost per successful outcome, total cost to serve.\nBusiness value: conversion lift, retention lift, expansion rate, revenue per rep or per workflow.\nIf the agent improves one dimension while meaningfully degrading another, the result is ambiguous and the deployment needs tuning.\nRevenue: The hardest metric\nEfficiency gains are the easiest part of the ROI story to prove. Revenue impact is harder, and it is the metric leadership funds against. In revenue-adjacent workflows, measure whether the agent improves conversion, time-to-response, deal progression, or revenue per rep. Holdout tests are the most reliable way to separate incremental revenue attributable to the agent from general business momentum.\nWhen revenue lift is real, the conversation changes. The organization stops asking whether the Bedrock bill went up and starts asking whether the additional spend is buying a meaningful increase in business output.\nThe scorecard\nBased on what we have observed working with customers, a strong operating model doesn’t require fifty metrics. What works is a small scorecard tied to decisions, reviewed on a regular cadence for every production agent.\nThe following thresholds are starting points, not prescriptions. Calibrate them against your own fleet data and organizational context.\n| Dimension | Metric | Green | Yellow | Red | \n| Adoption | Active users / intended users | >70% | 40-70% | <40% | \n| Quality | Tasks completed without rework | >90% | 75-90% | <75% | \n| Efficiency | Hours recovered per week | >target | 50-100% of target | <50% of target | \n| Cost | Cost per successful outcome | ≤budget | 1-1.5x budget | >1.5x budget | \n| Business impact | KPI lift compared to baseline | Significant | Marginal | None or negative | \nGreen means scale: the agent beats baseline while meeting cost and quality thresholds. Yellow means tune: promising but needs work. Red means retire or redesign: the agent consumes cost without enough measurable value. The willingness to actually retire a red agent is what makes the rest of the scorecard credible.\nConclusion\nIn this post, you learned how to calculate the true cost of a model by accounting for four hidden cost drivers (tokenizer efficiency, output alignment, agentic loop efficiency, and reasoning overhead), how to reduce cost per task through prompt caching, model routing, output constraints, and batch inference, and how to prove agent ROI by measuring human baselines, instrumenting workflows as experiments, joining cost to outcomes, and running holdout comparisons.\nThe cost optimization half answers “why is this expensive and how do I fix it.” The ROI half answers “is the agent better than the humans were.” Together with Part 1’s operating model (attribute, observe, enforce, optimize, operate), they form a complete framework: you can see who spent it, explain why, reduce the waste, and justify what remains.\nTo get started, benchmark your top model candidates against your own prompts using Amazon Bedrock model evaluation, capture tokens and turns from the usage block or your invocation logs, price them against current Bedrock pricing, and divide by success rate. For ROI measurement, consult the Well-Architected Agentic AI Lens for agent cost governance best practices.\nIf you have found other techniques for reducing cost per task or measuring agent ROI on Amazon Bedrock, let us know in the comments.","confidence":0.9,"diagnostics_url":"/api/diagnose?url=https%3A//aws.amazon.com/blogs/machine-learning/optimizing-cost-per-task-and-proving-agent-roi-on-amazon-bedrock/","quality_bucket":"high","failure_kind":"none","retryable":false,"quality_reason":"High confidence: full text extraction produced 16148 characters.","quality_profile":{"profile_version":"extraction_quality.v2","bucket":"high","confidence":0.9,"failure_kind":"none","retryable":false,"retry_after_attempts":0,"reason":"High confidence: full text extraction produced 16148 characters.","operator_guidance":{"severity":"ok","recommended_action":"trust_full_text","next_step":"Use the extracted full text as the primary article source.","operator_label":"Ready","can_retry":false,"can_use_summary":false,"diagnostics_required":false},"content_depth":{"contract_version":"content_depth.v1","category":"full_text","label":"Full text","has_full_text":true,"has_summary":true,"content_length":16148,"summary_length":403,"usable_text_length":16148,"source_field":"content"},"legacy_collapsed":false,"signals":{"extract_state":"ok","extract_error":null,"extract_retries":0,"content_length":16148,"summary_length":403}},"tags":[],"format_contract_version":"news_item_formats.v1"}}}