AI Tokenomics FinOps
Published as-is under MIT-0; this is not official AWS documentation. Prices and features change, so check the linked AWS pages before relying on a figure. To suggest a correction, use the Suggest a change link under any lever, or open an issue on GitHub.
Generative AI is billed by the token, so cost follows usage directly and rises as adoption spreads, often before anyone notices. Agentic workloads raise the stakes, because a single task can trigger many model calls. This GenAI FinOps runbook sets out the decisions that move the bill, from Amazon Bedrock cost optimization to the LLM token cost of each task, for two kinds of team: those that adopt an AI coding assistant and tune how it is used, and those that build and operate an agent of their own. Start with the levers below, then work the track that is yours.
What you can change to optimise the cost
A lever is one change you can make to spend less. This runbook holds 28 levers, plus 6 sub-practices and 3 decision principles. Each lever either lowers the price of a model call or cuts how many tokens that call spends.
The grid below ranks the levers this runbook has scored, cheapest effort first, so you can see which ones pay off before you fund any engineering work. The list under it names all 28 levers, with what each one saves, grouped by the team that owns the decision.
Both views above are built in the browser, so without JavaScript they do not appear. Every lever is still in this document: the lever progress board carries the full lever index, and Top levers by effort-to-savings carries the ranking.
Which track should I choose?
Choose Track 1 if your team wants to optimise the cost of using AI coding assistants such as Claude Code or Codex.
Choose Track 2 if your team builds an application that lets a model plan, use tools and take actions, and your team owns the cost of each model call.
Track 1 - AI Coding Assistant
Track 1 assessment
Your AI Coding Assistant cost assessment
Work one layer at a time. Answers and notes stay in this browser, and Track 2 never contributes to these totals, gaps, exports or reset actions.
Nothing answered yet. Start with model and usage costs, or choose Agent Harness or End User from the layer links below.
Your gaps
No gaps recorded yet. Answer the questions in this track to see your gaps here.
This self-service assessment shows where your gaps are, but it does not rank or prioritise them. If you are an AWS customer and want a prioritised plan, share your gap report with your AWS account team and ask for a specialist-led engagement.
Model Inference
Know how your coding agent is metered
Challenge and why it costs
Challenge. Coding agents are not all metered the same way. Some count tokens and requests against a monthly allowance, some count them against a rolling time window, and some draw down a monthly pool of credits. Each of those meters empties differently, so each one needs something different watched.
Why it costs. A meter nobody is watching runs out mid-task. Depending on the plan the work then stops, queues, or continues as paid overage. So the cost of ignoring the meter is either lost developer time or a bill nobody approved.
How to close this gap best practice
Best practice. Confirm which meter you are on before you build any monitoring, because the meter decides what there is to monitor. Pay-as-you-go platforms meter tokens and requests per unit time. Seat subscriptions usually meter a rolling time window. Credit plans meter a monthly pool.
Read more for the self-serve reader
Several assistants changed meter in 2026, so re-check yours against the vendor’s current page rather than last year’s contract. As of 9 November 2026:
| Assistant | What the meter counts | What happens at the limit |
|---|---|---|
| Claude Code or Codex on Amazon Bedrock | Tokens at the Bedrock on-demand price of the model invoked, billed to your AWS account, counted against that model’s tokens-per-minute quota and the account’s daily token quota (Claude Code on Amazon Bedrock [52]; Codex with Amazon Bedrock [103]). | Bedrock throttles requests once a quota is reached; there is no plan allowance to run out of. Alert on quota use and request increases before you need them (see Q3). |
| Kiro | Two models. Kiro Enterprise credit pooling (Credit sharing in the Kiro console), the only option for new Kiro profiles: each seat costs $20 a month and adds 500 monthly credits to one shared pool, and add-on credits cost $0.04 each and stay usable for 12 months (Kiro changelog, credit pooling [195]; Kiro pricing [58]). Individual subscriptions: credit limits per plan, which reset each billing period. | Credit pooling has no overage: admins set profile, group and user limits, and usage is blocked at a limit until an admin buys more credits, with alerts at 80% and 100% by default (Kiro Blog, credit pooling [196]). Moving users from individual subscriptions to pooling cannot be undone. On individual subscriptions, teams that sign in with AWS IAM Identity Center or an external identity provider can cap overage at account level in the AWS Service Quotas console. Individual paid plans buy prepaid add-on credit packs and draw them down (Kiro Blog, Set a cap on overage spend, or pre-pay for it [156]). |
The Bedrock, Claude Code, Codex and Kiro credit-pooling pages were accessed 9 November 2026. Plans and rates change often, so treat this table as a starting point and confirm on the vendor’s page before you size alerts.
How to close this gap best practice
Best practice. Confirm what happens at the limit before you reach it. Name one approver for paid overage or a budget increase, and define the response time.
Read more for the self-serve reader
On Kiro credit pooling the limit is a hard stop with no overage, so the approver is whoever can buy add-on credits for the pool (Kiro Blog, credit pooling [196]).
How to close this gap best practice
Best practice. Alert on the metric you identified as your meter in the previous section, not a different one. Set the threshold so the headroom left when it fires covers the time it takes to get a budget increase approved. The slower that approval takes, the earlier the alert needs to fire.
Read more for the self-serve reader
On Amazon Bedrock, the quota is the meter. If your coding agent runs on Bedrock, for example Claude Code or Codex pointed at Bedrock, the limit you hit is your tokens-per-minute quota. Bedrock publishes an EstimatedTPMQuotaUsage metric in CloudWatch that tracks your estimated quota use, including cache writes and the output burndown multiplier, updated every minute. It needs no opt-in and costs nothing beyond the inference itself. Set a CloudWatch alarm on it below the quota, so you can ask for an increase before requests are throttled (AWS What’s New, March 2026 [175], accessed 5 November 2026).
Bedrock also meters tokens per day. Beside each model’s tokens-per-minute quota, the bedrock-runtime endpoint enforces Cross-Model Max Tokens Per Day: one quota per account and Region, across all supported models, with tokens estimated from on-demand pricing. A fleet can stay under every model’s TPM quota and still be throttled by this daily one, so when throttling persists while per-model TPM shows headroom, check it first. The per-model TPM quotas and the daily quota can be raised together: request an increase on the model’s cross-Region TPM quota, and AWS Support offers the other two (Quotas for the bedrock-runtime endpoint [192], accessed 9 November 2026).
What it saves: Enabler — turns a quota limit into a decision you see coming. It saves nothing directly on the bill, but it keeps that limit from becoming a paid-capacity call made under pressure.
Right-size the model to the task shared
Challenge and why it costs
Challenge. Each assistant offers models with different token prices and capabilities. Moving a routine task to a suitable lower-cost model can reduce spend without lowering task success.
How to close this gap best practice
Best practice. Treat the default as a platform decision. Distribute version-controlled configuration with a balanced session model and an efficient background model.
Read more for the self-serve reader
If the fleet routes through an AI gateway, keep the tiering policy there. LiteLLM can classify each request into a configured complexity tier (LiteLLM, Auto routing [87]).
Product controls differ. Claude Code's opusplan mode uses Opus for planning and Sonnet for execution instead of separating session and background defaults (Claude Code, Model configuration [88]).
Auto mode adds a classifier meter. From Claude Code 2.1.328, interactive sessions on Amazon Bedrock with no permission mode set start in auto mode (Claude Code v2.1.328 release notes [218], 19 November 2026). Each classifier check is billed as Bedrock tokens, on Claude Sonnet 5 by default, unless server-side review reaches the session; a gateway that drops the anthropic-beta header or the safeguards field falls back to billed checks. Set CLAUDE_CODE_AUTO_MODE_MODEL to pick a cheaper classifier model, or set disableAutoMode in managed settings to turn auto mode off (Claude Code, Permission modes [219]; Claude Code, Auto mode classifier request charges [220], both accessed 22 November 2026).
In Kiro, once an administrator turns on model access management, users see only the approved models, a new model stays hidden until an administrator approves it, and the default model the administrator sets applies to every client in the organisation (Kiro, Model governance [214], updated 11 November 2026).
For Codex, choose the model and reasoning effort from task difficulty, then test the workflow (OpenAI Codex best practices [98]). This runbook uses the configured model as its starting point and changes it only when task evidence justifies the trade-off. Pair model choice with Match reasoning effort to task complexity.
If Codex uses Amazon Bedrock, Bedrock is the inference, billing, quota, and AWS support boundary. OpenAI supports the local client and its configuration (OpenAI Codex on Amazon Bedrock [103]).
An AWS benchmark shows the harness is part of the default too. With the model and hosting held fixed, changing only the harness took one model from about $8 to about $24 per task with no gain in score. That is a one-repository result, so measure your own: the open-source benchmark, aws-samples/sample-agentic-coding-harness-benchmarks, runs against models on Amazon Bedrock (--provider bedrock) and reports cost and quality per task on your code (AWS Cloud Financial Management Blog, Tokenomics for coding agents [197]).
How to close this gap best practice
Codex subagents consume more tokens than comparable single-agent runs. Choose each subagent's model and reasoning effort deliberately, based on its task (OpenAI Codex subagents [100]).
Read more for the self-serve reader
Claude Code's documented multi-agent example uses about 7x the tokens of a standard session, so keep teams small (Claude Code, Manage costs effectively [60], as of July 2026).
A summarisation or mechanical subtask may suit a lower-cost model. If the subagent does difficult reasoning while the parent coordinates, assign capability accordingly.
Define the split in Plan before executing complex work, then set effort through Match reasoning effort to task complexity.
How to close this gap best practice
Best practice. Deep reasoning adds output tokens, so using it for a one-line change costs more without improving the answer.
Read more for the self-serve reader
Treat effort like the model tier. Ship a low-to-moderate fleet default in the same version-controlled configuration as the model defaults (Manage coding agent configurations).
Codex guidance says to choose reasoning effort from task difficulty and test the workflow (OpenAI Codex best practices [98]). This runbook sets a low-to-moderate fleet default, then raises effort only when work needs deeper analysis. Set subagent effort separately when its task differs from the parent (OpenAI Codex subagents [100]).
Use deeper reasoning for architecture decisions, subtle concurrency bugs, and long-horizon refactors. This question sets the fleet default. Match reasoning effort to task complexity covers the developer decision. Lower effort reports 50 to 70 per cent savings on straightforward tasks. Benchmark that on your own workload before quoting it.
How to close this gap best practice
Best practice. A model default set once and never revisited decays from both ends: newer, cheaper models arrive while the one you standardised on drifts toward the vendor's own retirement date. Own both ends of that cycle.
Read more for the self-serve reader
Evaluating in. Trial a new model with a small group before it becomes the fleet default, measuring quality, token counts, and cost per task on your own workloads rather than published benchmarks. Draw that group from teams who'll use it daily — they're the ones who'll notice reduced hand-holding or a broken workflow. Use the same experiment design as Measure cost per successful task, not cost per call: a comparable unchanged group, over real delivery work.
Retiring out. Managed products handle retirement for you; a self-managed fleet doesn't — its pinned model settings and environment variables age into Legacy because nobody rechecks them (Claude Code, Environment variables reference [53]). Audit those pinned IDs against the lifecycle source for whichever plane bills you (Bedrock model-lifecycle guidance [16]; Anthropic, Model deprecations [62]), checking both if the fleet uses both — their schedules run independently. A Bedrock model launched on or after 7 September 2026 has no extended-access phase and can have a Legacy period as short as 45 days, so read its end-of-life date floor from the model card when you adopt it [16]. Schedule a Legacy or Deprecated model's migration ahead of its date rather than deferring it; full mechanics are in Track 2 (Audit for Legacy / extended-access models).
Announcing the change. A default that changes silently reads to developers as the assistant getting worse. Share the evaluation's outcome through the same channels that carry the rest of the fleet's guidance (Developer education), so the reasoning travels with the setting.
What it saves: The largest per-call multiplier a fleet holds is the frontier-to-mid-tier price spread. Central defaults apply it to every session, instead of only the sessions where somebody remembered to switch.
Right-size the subscription plan
How to close this gap best practice
Coding assistants carry a per-seat licence cost that token-billed agentic work does not. That makes two actions here rather than one: remove or downgrade the seats nobody is using, and match the tier for the people who are (the next question).
Read more for the self-serve reader
Audit who is actually active, then reassign or remove the rest. On Kiro credit pooling, the pool dashboards track seat utilisation, assigned against purchased, and show which seats are underused; seat assignments update when users leave or change roles (Kiro Blog, credit pooling [196]). The seat cost also makes right-sizing the subscription plan Track 1's defining non-token lever: it is the one saving that does not depend on changing how anybody works.
How to close this gap best practice
Match plan capacity to observed usage, then repeat the review before renewal. Kiro’s individual plans step up from Pro through Pro+ and Pro Max to Power, each with a larger monthly credit allowance, and paid plans can buy add-on credits (Kiro pricing [58]). Move a user to a higher tier only when their observed usage keeps exceeding the lower one.
Read more for the self-serve reader
Credit pooling replaces per-user tier matching. Each seat adds the same credits to one shared pool, so credits a light user leaves unused cover a heavy user, and per-user, group and profile limits take the place of tier choice (Kiro Blog, credit pooling [196]). Existing customers move users to pooling with a wizard and cannot undo the switch, so size the pool from observed usage before you move (Kiro changelog, credit pooling [195]).
Plan changes bill by direction. Since 1 November 2026 an upgrade partway through a month is prorated to the second, while a downgrade takes effect the next month and the current month is charged in full, so schedule downgrades for the end of the billing cycle (Kiro, Billing [215], updated 1 November 2026).
What it saves: The organisation stops paying for idle seats and for plan capacity its users do not draw on. The saving depends on the organisation's contract and seat mix, so do not quote a multiplier without a current price source.
Cost attribution and spending caps
Challenge and why it costs
Challenge. Without spending caps, saving money depends entirely on individual developers making the right call, task by task — and nobody reviews cost until a bill shocks someone. Most cost drivers are invisible mid-session, so when cost isn't something a developer is tracking, the default is the frontier model, not the right-sized one.
A cap isn't there to punish developers or slow them down — it's there to make cost visible. That only works if two things come with it: a clear process for requesting more quota, and follow-up education on how to stay inside the budget next time (Developer education). Skip either one, and the cap becomes a silent throttle that costs productivity and trust instead of saving money.
How to close this gap best practice
Best practice. Start from the path between the coding agent and its model. Use coding-agent telemetry for activity measures, and use the billing plane for charged inference.
Read more for the self-serve reader
Use two complementary views. Coding Agent Insights works independently of the inference provider on its bearer-token path. Bedrock IAM principal allocation applies when Bedrock handles inference.
- Coding agent telemetry with CloudWatch Coding Agent Insights. OpenAI Codex and Claude Code can emit OpenTelemetry data to CloudWatch. Coding Agent Insights records token consumption, per-turn latency, tool calls, API requests, and approvals. It slices these measures by organisation, department, team, cost centre, and user (Coding Agent Insights [74]). For Codex, follow the AWS setup guide so metrics populate the Codex dashboard tab (AWS OpenTelemetry setup for OpenAI Codex [104]).
- Amazon Bedrock IAM principal cost allocation. Identifies which IAM users and roles invoke Amazon Bedrock, so per-user cost surfaces in the
line_item_iam_principalcolumn of Cost and Usage Reports 2.0. Session tags extend the same breakdown to team, department, and cost centre (Track Amazon Bedrock costs by caller identity with IAM-based cost allocation [75]). IfAWS_BEARER_TOKEN_BEDROCKis set, Claude Code and Codex use that API key before the SSO profile, so the spend lands on the key’s IAM user; a CUR 2.0 export created before this feature must be re-created with caller identity included, and principal tags apply only from activation, with no backfill, so activate them early (AWS ML Blog, cost attribution and controls [217]).
Where Codex uses Amazon Bedrock, Bedrock owns inference billing, quotas, and AWS service support. OpenAI remains the support boundary for the Codex client and its local configuration (OpenAI Codex on Amazon Bedrock [103]).
If the assistant connects through a gateway:
- Claude apps gateway. Fans out the same telemetry over OTLP/HTTP, and stamps each export with the developer's identity from your identity provider. CloudWatch dashboards then populate with user, team, and organisation attributes without you configuring every machine individually (Claude Code gateway telemetry [76]).
- LiteLLM. Tracks spend per key, per user, and per team in the proxy itself. Attribution therefore comes from how you issue keys rather than from the backend's billing data, and the same layer carries the budget windows that turn attribution into a cap (LiteLLM, Budgets and rate limits [45], LiteLLM, Cut costs with Claude Code [73]).
Other telemetry sources:
- Seat plans. Per-user analytics and exportable spend reports usually ship with the plan (Claude Code analytics documentation [56]).
- Credit-metered products. Per-user credit usage is usually provided in the admin views (Kiro pricing [58]).
- Assistant-native OTel metrics. Where the assistant exports its own usage and cost metrics, you can point them at your existing observability stack instead of standing up a separate pipeline (Claude Code, Monitoring [54]).
- Programmatic usage and cost reporting. A usage and cost API lets you pull the same figures into your own FinOps reporting on a schedule rather than reading them from a console (Claude Platform, Usage and Cost API [57]).
Whichever tool you use, establish a baseline before you set a cap. Record a normal day and week per developer and team. This separates an expensive week from a busy one.
CloudWatch does not know whether a coding task succeeded. Join its measures to a defined outcome through a stable task or workflow key, then calculate cost per successful task.
How to close this gap best practice
Best practice. Set organisation-level per-user limits with rolling reset windows and fail requests once a budget is crossed, so the stop happens on the request path rather than on the invoice. Amazon Bedrock has no native per-user spend limit, so a gateway is where this is enforced.
Read more for the self-serve reader
- Claude apps gateway. Sets hard daily, weekly, and monthly caps per organisation, group, or user, and blocks requests at the cap (Claude apps gateway spend limits [72]; Introducing Claude apps gateway for AWS [42]).
- LiteLLM. Enforces dollar budgets alongside
tpmandrpmlimits per key, user, and team, with short reset windows — stack a daily cap inside a monthly one so a burst is contained the same day (LiteLLM, Budgets and rate limits [45]). Its cost surface is wider than caps alone: fallback chains, prompt routing, prompt compression, and MCP auto-routing each reduce what a capped budget has to absorb in the first place (LiteLLM, Cut costs with Claude Code [73]). For a deployable reference architecture, AWS publishes a multi-provider generative AI gateway solution built on LiteLLM (Multi-provider generative AI gateway on AWS [77]).
Where teams run the coding agent through their own AWS accounts rather than a shared gateway, add the account-native controls underneath. AWS Budgets can trigger a budget action that applies a restrictive policy or stops the target automatically once a threshold is crossed (Configuring budget actions [118]). Treat it as a backstop, not a hard cap: Budgets refreshes up to three times a day and Bedrock charges can take up to a day to appear, so a heavy user can overshoot. CloudWatch token metrics with AWS Lambda react in minutes, and a gateway, or a per-user token counter checked at credential refresh, gives real-time control (AWS ML Blog, cost attribution and controls for AI developer tools [217], 13 November 2026). Pair it with AWS Cost Anomaly Detection so an unexpected jump in spend alerts on its own, ahead of any fixed threshold, on each account that bills for inference (Getting started with AWS Cost Anomaly Detection [119]). The gateway caps enforce the per-user limit on the request path; these enforce the account-level ceiling and catch the anomaly the per-user cap cannot see.
How to close this gap best practice
Best practice. A usage limit's job is to make cost visible, not restrict productivity — that visibility is what makes developers more efficient and builds a cost-aware culture (FinOps Foundation, FinOps for AI [41]). Set it to cover most normal work, and pair it with an escalation path defined before anyone needs it: a way to request more, a named approver, and a short turnaround.
Read more for the self-serve reader
Miss any of those three and the limit becomes a silent throttle that costs delivery time and trust instead of money.
Where teams manage their own Bedrock quotas per account, wrap the standard escalation around the AWS-native request flow rather than inventing a parallel one. Service Quotas is the request path for a higher per-account limit, so the template, the named approver, and the turnaround target sit on top of it (Requesting a quota increase [120]). Point the criteria at the specific meters that gate the work, the per-model requests-per-minute and tokens-per-minute quotas for Amazon Bedrock, so a request names the quota it needs and by how much (Quotas for Amazon Bedrock [121]).
Treat repeated requests as a signal to revisit the limit, not a rule to enforce harder, and pair it with developer education (Developer education).
What it saves: Enabler — turns one shared invoice into spend you can see per user and per team. It saves nothing directly, but it's what lets a spending cap stop an overspend at the moment of the request instead of on next month's bill — and every other lever in this track needs that same visibility to work.
Collects your answers across every Track 1 Model Inference lever above. Run it with an AWS specialist during a cost-optimisation engagement, or self-serve. Answers and notes are saved in this browser only. Gaps (answered Not covered or Partially) are gathered here for your report; export to PDF or Markdown to share.
No gaps recorded yet. Answer the questions above and any Not covered or Partially items will appear here.
Agent Harness
Manage coding agent configurations
Challenge and why it costs
Challenge. Each release can add optional capabilities, including agent teams, dynamic workflows, long context windows, and scheduled tasks. Fleet defaults can enable them without a fresh review.
Why it costs. These mechanisms can spawn agents, run background work, or retain more context. Without an inventory and measurement, developers cannot see which enabled capability drives usage.
How to close this gap best practice
Best practice. You cannot manage what you have not inventoried. Work with your internal AI champions (Developer education, Q4) to list the optional capabilities enabled across the fleet.
Read more for the self-serve reader
Include agent teams, dynamic workflows, the 1M-token context window, scheduled tasks, and background work. Measure enabled use and completed outcomes before classifying a capability as expensive.
For Codex, record model and effort defaults, subagent concurrency, instruction loading, and MCP catalogues. Its subagent guidance makes model and effort selection explicit (OpenAI Codex subagents [100]).
How to close this gap best practice
Best practice. Turn the inventory into version-controlled fleet configuration alongside model and reasoning-effort defaults. Use managed settings where the product provides them (Claude Code settings, available settings [80]; Claude Code, Permissions [81]).
Read more for the self-serve reader
Deploy that configuration centrally so a setting cannot be overridden locally: Claude Code reads a managed settings file placed on each machine by the fleet, which is how a disabled feature or an allowlist stays disabled without trusting each developer to keep it that way (Deploy managed settings [122]).
For Codex MCP servers, use enabled_tools and disabled_tools to narrow the catalogue. Set tools.<tool>.output_token_limit for tools whose responses can flood context (OpenAI Codex MCP configuration [101]).
Record why each capability is enabled, then revisit the decision as products change. Coordinate the approved baseline through Manage organisational plugins.
What it saves: Expensive optional features off by default, fleet-wide — agent teams, the 1M-token context window, scheduled tasks — instead of trusting each developer to notice they're moving the bill. The saving stays invisible until you inventory what's switched on.
Manage organisational plugins shared
Challenge and why it costs
Challenge. When developers assemble their own toolset, every developer installs a different set of plugins, MCP servers, and skills. Efficiency gains found by one developer stay with one person. Unreviewed tooling spreads without anyone assessing its cost or data-handling behaviour.
Why it costs. Configured tool catalogues and their metadata consume context, although implementations load them differently. Measure standing overhead and remove unused capability instead of assuming every definition is billed on every call.
How to close this gap best practice
Best practice. Curate the toolset in layers that match the work. An organisation baseline carries common tools, a team layer carries domain tools, and a repository layer carries project-specific tools.
Read more for the self-serve reader
The servers in that baseline speak the Model Context Protocol, the open standard for how a coding agent connects to tools and data, so the reviewed set is expressed in one portable format rather than a per-product one (What is the Model Context Protocol (MCP)? [123]).
Ship deterministic governance in the same baseline. Lifecycle hooks run a fixed command on a defined event, so a shipped baseline can enforce a pre-commit lint, a security scan, or a session-start check without depending on each developer to wire it up. A third-party practitioner catalogue collects concrete, config-level hook examples across the event model that a baseline can standardise on; treat its figures as the author's own and validate them yourself before quoting (AY Automate, Claude Code hooks examples [124]).
Start with one or two tools that remove a real manual loop. Measure their value and context cost, then expand only from evidence (OpenAI Codex best practices [98]).
For Codex MCP servers, narrow each catalogue with enabled_tools and disabled_tools. Use per-tool output_token_limit when a response can dominate context (OpenAI Codex MCP configuration [101]).
Put narrower tools one layer down or enable them only when the task needs them. Review standing overhead through Manage the session and its context actively, Q7.
How to close this gap best practice
Best practice. Community tooling cuts cost at points the assistant does not. Put each tool through your own security review before you adopt it.
Read more for the self-serve reader
For example:
- RTK (Rust Token Killer) — CLI proxy that compresses shell command output before it reaches context (reports 60–90 per cent reductions on listings, reads, grep, git, tests). Bash tool only.
- Ponytail — plugin that steers the agent to reuse existing code rather than write new code (reports ~54 per cent less code, ~20 per cent lower cost).
- CodeGraph — builds a local semantic graph of the codebase and exposes it over MCP, cutting the tool calls needed to understand code. Savings scale with codebase size.
None of these are products from AWS or from the AI coding agent vendors. Each one sits in the path of your source code and your prompts, so put it through your own security, supply-chain, data-handling, and telemetry review before you approve it. Then validate the saving on your own codebase, because the figures above are the projects' own reports.
What it saves: A good tool set one team finds becomes the default for everyone. Keeping the same tools loaded fleet-wide keeps the prompt prefix identical across sessions, so caching keeps working, and it stops unreviewed tools from quietly working their way into what's loaded on every call.
Run an open-weight model behind your coding-agent harness
Challenge and why it costs
Challenge. A coding agent is a model plus a harness. Most harnesses default to their vendor's frontier model, even though many can be pointed at a cheaper open-weight model through a compatible gateway.
Why it costs. Every call then pays frontier per-token rates, including calls a cheaper model might solve. The saving exists only if cost per solved task holds, and only a benchmark on your own tasks can show that.
How to close this gap best practice
Best practice. Benchmark each candidate model and harness pair on the measure set out in Compare models on cost per solved task, not price per token. Build the task suite from your own repositories, because a public benchmark rarely matches your codebase, languages or review standards.
Read more for the self-serve reader
Hold the harness and inference setup fixed while you compare models, then hold the model fixed while you compare harnesses. Record the resolution rate, input and output tokens, cache hits and turn count for every task. Price each run at the Region and pricing tier you will actually use. Adopt the open-weight pair only when its cost per solved task beats the incumbent's on the same suite.
Terminal-Bench 2.1 scores the model and the harness together, and the harness alone moves the result. Opus 4.6 scored 70.1 per cent on Claude Code and 63.8 per cent on Terminus 2. GPT-5.3-Codex scored 79.1 per cent on Codex CLI and 68.5 per cent on Terminus 2 (Terminal-Bench 2.1 [139]). Compare scores within version 2.1 only, because that release fixed 28 of its 89 tasks. These are the benchmark's own results, so validate the pattern on your own tasks before you rely on it.
Use the public Terminal-Bench leaderboard to shortlist candidates. It ranks each model and agent pair by resolution rate, cost and tokens, and you can search it for the open-weight models you are considering (Terminal-Bench leaderboard [144]). Treat a leaderboard rank as a shortlist, then confirm the pair on your own tasks.
A study by imec's aistack team ran two open-weight models across Claude Code, Codex and Pi on 64 tasks. Every combination resolved 44 to 53 per cent of the tasks, yet cost per resolved task ranged from $0.35 to $0.70 depending on the pair (aistack, Does your harness matter more than your model? [140]). Token efficiency drove that spread, because some pairs used far more input and output tokens for a similar result. The study used default settings and a small suite, so treat the figures as the authors' own and validate them on your workload.
A controlled study ran 80 tasks from a private 256-task suite under each model's native harness and a neutral harness, and found no average advantage for the native harness (Harness or Model? Isolating the Harness Effect [141]). The neutral harness cost 1.2x to 1.6x as much per solved task, based on observed-usage estimates. The authors could not confirm the billed-cost ordering because usage records were missing, so treat the 1.2x to 1.6x range as directional. The study also found that 22 of 81 runs cancelled at the time limit had already produced a passing patch, so measure completion and correctness separately. These are the authors' results, so validate the ratios on your own suite before you quote them.
Load-test the deployed endpoint for throughput and latency before you move developers onto it, using AWS's LLMPerf and LiteLLM guidance (Benchmarking customized models on Amazon Bedrock using LLMPerf and LiteLLM [138]). That test complements the task benchmark but does not measure task success.
AWS runs its own evaluations of open-weight models across coding-agent harnesses. If you want help designing the benchmark or reading its results, ask your AWS account team to arrange a dedicated engagement with AWS specialists.
How to close this gap best practice
Best practice. Start with the managed open-weight models in Amazon Bedrock, which bill per token and need no infrastructure of your own. The launch list includes coding-oriented models such as Kimi K2.5 and Qwen3 Coder Next (Amazon Bedrock adds six open weights models [135]), and GLM 5.3 followed in October 2026 for eligible customers (GLM 5.3 model card [216]).
Read more for the self-serve reader
Amazon Bedrock Runtime offers an OpenAI-compatible Chat Completions endpoint, and AWS recommends it for new applications. A harness's custom-provider setting can therefore point straight at a supported model, with no gateway in between (Amazon Bedrock, OpenAI Chat Completions API [145]). Check each model card to confirm the model supports that API on Bedrock Runtime, and check current Region availability before you choose, because the catalogue changes often.
Put a governed gateway between the harness and the model. A customer-operated LiteLLM gateway on Amazon ECS (Codex with LiteLLM on Amazon ECS [136]) or Amazon EKS (LiteLLM gateway on Amazon EKS [137]) centralises model authentication, routing, budgets, rate limits and telemetry in your account. Set budgets and per-key limits in that same layer (LiteLLM, Budgets and rate limits [45]). The gateway holds model credentials and sees every prompt and code change, so review, patch and monitor it like any other in-path infrastructure.
Running the model and the gateway in your own account keeps code and prompts inside your trust boundary. A third-party hosted API may log or retain them, so review residency, retention and training use for both the model provider and the gateway. Apply the same review you use in Manage organisational plugins, Q2.
Open weight does not mean open source, and open source does not mean unrestricted commercial use. Verify the licence, the publisher and the integrity of the weights before you approve a model for developer use.
Treat cyber capability as a threat-model input. NIST's Center for AI Standards and Innovation called GLM-5.3 "the most cyber-capable open-weight model released to date" (CAISI's assessment of Z.ai's GLM-5.3 cyber capabilities [142]). Anthropic's Frontier Red Team reported that the model's safeguards could be bypassed or removed with simple techniques (GLM-5.3 and the spread of advanced cyber capabilities [143]). Anthropic is a competing model vendor, and its finding concerns offensive capability and safeguards rather than coding quality. Weigh both findings in the security review of any open-weight model you consider.
Amazon Bedrock Custom Model Import is the in-account route when you need a model the managed catalogue does not offer (Amazon Bedrock Custom Model Import [51]). If you then decide to own the inference, the Track 2 lever Self-host or distill when volume justifies it sizes the self-hosting economics, so this lever does not repeat them.
How to close this gap best practice
Best practice. Tool calling, also called function calling, is where a model swap usually breaks. Each harness expects its own tool-call format, and a gateway that translates between formats can drop or mangle calls.
Read more for the self-serve reader
Compare the two harnesses on the same two questions: which provider runs inference, and whether a gateway sits in front of it. Both harnesses can call Amazon Bedrock directly as their provider, with no gateway in between. Claude Code calls Amazon Bedrock as its provider when you set CLAUDE_CODE_USE_BEDROCK=1 (Claude Code on Amazon Bedrock [52]). Codex calls Amazon Bedrock Runtime as its provider when you set model_provider = "amazon-bedrock-runtime" (OpenAI Codex on Amazon Bedrock [103]).
A gateway is optional and sits between the harness and the provider. Q2 covers the controls it adds. Claude Code can send its requests through a LiteLLM gateway when you point ANTHROPIC_BASE_URL at it (LiteLLM, Cut costs with Claude Code [73]). Codex can send its requests through a LiteLLM gateway on Amazon ECS, which then calls Amazon Bedrock as the provider (Codex with LiteLLM on Amazon ECS [136]).
AWS's Codex and LiteLLM walkthrough validated streaming and function calling end to end through that gateway, but with an OpenAI model on Amazon Bedrock (Codex with LiteLLM on Amazon ECS [136]). No verified source shows the same parity for an open-weight model, so test every model, provider and harness combination yourself, both direct and through the gateway.
Add tool-calling cases to the Q1 benchmark suite, including multi-step edits, file and shell tools, and parallel calls. Reject any pair that fails or loops on them, whatever its token price.
What it saves: Frontier per-token rates on the work a cheaper open-weight model proves it can solve. Developers keep the harness they already use, and a governed gateway in your account carries the switch. The saving is real only after your own benchmark shows a lower cost per solved task, because a cheaper model that fails or loops can cost more.
Collects your answers across every Track 1 Agent Harness lever above. Run it with an AWS specialist during a cost-optimisation engagement, or self-serve. Answers and notes are saved in this browser only. Gaps (answered Not covered or Partially) are gathered here for your report; export to PDF or Markdown to share.
No gaps recorded yet. Answer the questions above and any Not covered or Partially items will appear here.
End User
Developer education
Challenge and why it costs
Challenge. How well developers use an AI coding agent determines both its cost and its benefit. Caps and defaults bound spend, but they don't teach anyone how to work within it — a developer who doesn't understand a cap just works around it, and productivity suffers instead of cost.
Why it costs. The tools change every few months. Developers who keep learning compound their advantage; developers who don't stay stuck on old habits. That gap in cost and effectiveness widens quietly across the whole fleet, on every task.
How to close this gap best practice
Best practice. Give every developer the same starting point instead of leaving them to figure it out over months on their own. The anchor is a single organisational guide — kept as a living document, not a one-time launch, since the tools it describes change every few months.
Read more for the self-serve reader
Cover four things: how to install and configure the assistant; what constraints exist and why; the prompting and session habits that keep cost down (session and context, reasoning effort); and the named process for requesting a higher limit (Cost attribution and spending caps) — that last part is what keeps a cap from landing as a silent throttle.
Explain the reasoning, not just the rule: a constraint people understand gets followed, one that just shows up as a restriction gets routed around.
How to close this gap best practice
Best practice. A developer's first week sets habits that stick — and if that week runs on default configuration, they're paying the expensive default the whole time. Make day-one setup an explicit step that installs all three configuration layers: organisation settings and skills, the team's own, and whatever the repository ships.
Read more for the self-serve reader
This question is simply whether those layers actually land on a new machine — you already define them in Manage organisational plugins and enforce them in Manage coding agent configurations.
Verify it landed, don't just tell them to set it up: have the developer confirm the model default, reasoning-effort default, and tool set they actually ended up with. A setup step that silently failed looks identical to one that was never run.
How to close this gap best practice
Best practice. Context management, effort matching, and good prompting are hard to teach as rules but obvious when you watch someone do them. Pair and mob programming on real tasks is how they spread — a developer sees a colleague reset context, plan before a multi-file change, or phrase a request that lands first time.
Read more for the self-serve reader
Don't build the fundamentals yourself. Anthropic Academy has free self-paced courses with certificates, including Claude Code in Action, AI Fluency, and Model Context Protocol (Anthropic Academy [78]). AWS Skill Builder has generative AI learning plans, role-based courses, and hands-on labs, free with an optional paid tier (AWS Skill Builder [79]). Your AWS account team can also run a coding-agent workshop or architecture review at no cost. Spend your own effort only on what no external course covers: your codebase, your constraints, your tooling.
How to close this gap best practice
Best practice. New models and features ship faster than any platform team can document them — the developers using the tools daily find the new tricks first. A written guideline captures what was true when someone wrote it down; a community of practice captures what's true right now.
Read more for the self-serve reader
Give internal AI champions real time to experiment, and expect them to share what they find — through internal sessions and a forum for trading usage patterns, configurations, and cost wins. Fund it properly; unfunded enthusiasm fades. Then feed what they find back into the actual artefacts: an update to the guide (Q1), a candidate for the curated baseline (Manage organisational plugins), or a new fleet default — not something that stays known only to one team. This is also how a changed default gets explained, since a default that changes silently just looks like the assistant getting worse.
What it saves: Enabler — this is what makes every other Track 1 lever actually work. It saves nothing directly on the bill, but it's the difference between a cap developers understand as a signal and one they just experience as an obstacle to route around. (Qualitative: you'll see the gap it closes in your per-developer attribution data.)
Manage the session and its context actively shared
Challenge and why it costs
Challenge. A coding agent re-sends its context on every message, so a long-lived session resends its whole accumulated history every turn. That makes stale or oversized context the largest source of silent waste in Track 1. Every irrelevant file, finished sub-task, and abandoned thread is re-billed on each turn for the rest of the session.
Why it costs. Because the whole working set is re-billed every turn, an append-only session keeps paying for context the current task no longer needs, and the charge grows every turn. Wrong-direction detours are paid for twice: the tokens the detour spent, and the detour's residue re-sent on every turn after it.
How to close this gap best practice
Best practice. Run the assistant's clear command when you start a new task. Do not wait for auto-compaction. By the time it fires, the context is already full and you have paid for far more tokens than the task needed. The vendor's own worked comparison puts three tasks run in one session at 1.9x the tokens of the same three with a clear between them (Maximizing the value of your Claude Code sessions [90]).
Read more for the self-serve reader
Name the session before you clear it. Clearing does not delete the old one, but the resume list gets hard to read once a day's worth have accumulated. A developer who fears losing the thread will keep working in one context instead, so renaming first removes that reason (Claude Code, Manage costs effectively [60]).
Keep one chat per coherent outcome. In Codex CLI, use /new when the outcome changes and /compact when the same outcome still needs a long chat (Codex CLI developer commands [106]). Command availability varies by surface. For Codex in the ChatGPT desktop app, configured to use Amazon Bedrock, /compact, /plan, and /review are documented separately (Codex desktop slash commands [102]; Codex with Amazon Bedrock [103]).
If your assistant calls Amazon Bedrock on pay-as-you-go pricing, a long session has one more cost: some models bill the whole request at a higher long-context rate once the prompt passes a set size, such as 100,000 tokens on Claude Haiku 5.5. Clearing between tasks keeps you under that line. The thresholds are listed under Track 2, Context.
How to close this gap best practice
If the agent goes down the wrong path, rewind to a checkpoint instead of carrying on. Otherwise the failed attempt stays in context and you pay for it again on every turn that follows.
Read more for the self-serve reader
Rewinding is also the cheaper of the two ways to shed context. A rewind costs nothing, while compaction rewrites the conversation and loses the prompt cache with it, so the next turn re-prefills at full price (Maximizing the value of your Claude Code sessions [90]). Reach for rewind when you know which turn went wrong, and for compaction only when the whole history has to go.
How to close this gap best practice
Best practice. Most assistants have a command that shows exactly what's filling your context — which tools and files used the tokens, plus cache misses and oversized files (Claude Code, Manage costs effectively [60]). Check that before you reset, so you fix the actual cause instead of hitting the same wall next session.
Read more for the self-serve reader
If your assistant fires lifecycle hooks around compaction and session start, automate this check fleet-wide rather than relying on developers to remember (Claude Code, Hooks reference [63]).
Run the same command in a fresh session too, before anyone has done any work. What it reports there is your standing overhead: the instruction files, tool definitions and connected servers every session pays for whether it uses them or not (Maximizing the value of your Claude Code sessions [90]). That number is the one Q6 and Q7 below act on, and it is invisible if you only ever look at a session that has already filled up.
How to close this gap best practice
Best practice. Precise reads keep the working set small from the start. Point the agent at specific files by path rather than asking it to go and find them: "read src/auth/login.ts and src/auth/session.ts" spends no tokens on exploration.
Read more for the self-serve reader
Precise reads matter twice over, because every file an exploration pulls in is then re-billed on every turn that follows. The vendor documents this as the way to work in a monorepo or large codebase: give the agent the paths and the structure instead of letting it search (Set up Claude Code in a monorepo or large codebase [125]).
Where the assistant supports an attach syntax, use it rather than naming the file in prose. Naming it still costs a read turn. Attaching it puts the contents in the prompt directly. The vendor's worked example runs one request three ways. Asking "the tests are failing" spends six turns searching before the fix even starts. Naming the file spends one. Attaching it with @ spends none (Maximizing the value of your Claude Code sessions [90]).
How to close this gap best practice
Best practice. Large command output can pollute the main context and be re-sent on later turns. Stop unnecessary output before deciding whether to delegate it.
Read more for the self-serve reader
The vendor's cookbook treats this as context engineering: clear a tool result once it has been used, compact when the history has served its purpose, and keep only what the current step needs in the window (Context engineering: memory, compaction, and tool clearing [126]).
Use quiet flags such as --silent, -q, and -no-color. Filter to failures when a quiet flag would hide the answer. Put those defaults in the instruction file (Maximizing the value of your Claude Code sessions [90]).
Codex subagents consume more tokens than comparable single-agent runs because each agent performs its own model and tool work. Use bounded parallelism only for independent, read-heavy exploration, tests, triage, log analysis, or summarisation. Avoid parallel writes by default (OpenAI Codex subagents [100]).
Use delegation to isolate necessary noise, not as a default saving. Define the split in Plan before executing complex work, then measure net tokens and successful outcomes through Cost attribution and spending caps.
How to close this gap best practice
Best practice. Keep always-loaded instruction files limited to conventions, the directory map, and key commands. Move specialised workflows into on-demand skills or separate documents.
Read more for the self-serve reader
Codex reads guidance from global scope, then from the project root down to the current working directory. Closer AGENTS.md or override files win. The combined project-document cap defaults to 32 KiB and is configurable (Codex custom instructions with AGENTS.md [99]).
Keep shared guidance at the root and place narrow overrides close to the code they govern. This prevents broad instructions from carrying project-specific detail into every task.
Claude Code documents a target below 200 lines for its always-loaded instruction file (Claude Code, Manage costs effectively [60], as of July 2026). Prune periodically because these files tend to grow.
How to close this gap best practice
Best practice. Review configured MCP servers and remove those that no longer support a real workflow. Implementations load catalogues differently, so measure standing context rather than assuming a fixed overhead.
Read more for the self-serve reader
Codex supports enabled_tools, disabled_tools, and per-tool output_token_limit controls (OpenAI Codex MCP configuration [101]). Start with one or two tools that remove a manual loop, then expand only from evidence (OpenAI Codex best practices [98]).
The fleet-wide counterpart to this habit is Manage organisational plugins.
How to close this gap best practice
Best practice. Both settings sit in the cached prefix, so changing either one part-way through a session invalidates the cache. The whole conversation is then re-prefilled at the new model's price, and toggling fast mode does the same (Maximizing the value of your Claude Code sessions [90]). Decide both before the first prompt.
Read more for the self-serve reader
Read this alongside Match reasoning effort to task complexity. That lever is right that effort should follow the task, and session start is where following it is cheap. Escalating once the conversation has grown means paying for the re-prefill on top of the deeper reasoning.
The cache also expires on its own, after an hour on a subscription and five minutes on an API key (Claude Code, Manage costs effectively [60]). Coming back after that re-prefills at full price too, so compact before a long break rather than after it. Track 2 carries the read and write multipliers behind all of this (Place and verify cache checkpoints).
What it saves: 20 to 40 per cent on long sessions from the documented context habits. Delegating noisy work protects the main thread but can increase total tokens, so count it only when measured cost per successful task improves (Measure cost per successful task).
Match reasoning effort to task complexity
Challenge and why it costs
Challenge. Extended "thinking" is a token cost like any other, and applying maximum reasoning to a one-line rename is the cognitive equivalent of routing trivial work to a frontier model.
Why it costs. Deep reasoning generates many extra output tokens, the most expensive kind, so spending it on routine work inflates cost with no quality gain.
How to close this gap best practice
Best practice. Choose reasoning effort from task difficulty, then validate it on representative workflows. Use lower effort for routine, well-specified work and raise it only when deeper analysis improves results.
Read more for the self-serve reader
Claude Code exposes effort through /effort, /model, or MAX_THINKING_TOKENS on models with a fixed thinking budget (Claude Code, Model configuration [88]).
Codex guidance says to choose effort from task difficulty, then test what works for your workflow (OpenAI Codex best practices [98]). Set the fleet default in Right-size the model to the task, Q3.
How to close this gap best practice
Reserve deep reasoning for multi-step planning, architecture decisions, subtle concurrency bugs, and long-horizon refactors. Escalating by exception keeps the expensive setting where it earns its cost.
Read more for the self-serve reader
For Codex subagents, select the model and model_reasoning_effort deliberately when the delegated task differs from the parent (OpenAI Codex subagents [100]).
What it saves: 50 to 70 per cent on straightforward tasks, because deep reasoning spends extra output tokens, the most expensive kind, and routine work gains no quality from them.
Plan before executing complex work
Challenge and why it costs
Challenge. Diving straight into edits on a non-trivial change risks discovering a wrong assumption only after the agent has generated, tested, and partially integrated the wrong solution.
Why it costs. Late discovery of a wrong assumption causes avoidable generation, test, and integration work. A planning pass can expose the assumption before code is written. Measure the local difference instead of relying on a universal token benchmark.
How to close this gap best practice
Best practice. Use a read-only planning pass for multi-file changes and unfamiliar code. Codex Plan mode can inspect context and propose an approach before implementation starts (OpenAI Codex best practices [98]).
Read more for the self-serve reader
Review the plan while assumptions are cheap to correct. If local evidence supports different model tiers for planning and implementation, apply Right-size the model to the task.
How to close this gap best practice
Best practice. Structure the task as Goal, Context, Constraints, and Done when. Use Codex Plan mode before implementation (OpenAI Codex best practices [98]).
Read more for the self-serve reader
Make Done when observable. Name the smallest relevant tests, lint or type checks, review criteria, and stopping condition. OpenAI recommends running relevant tests, lint or type checks, and a final review (OpenAI Codex best practices [98]). This runbook's decision rule is to run targeted checks first, then use /review before completion (Codex CLI developer commands [106]).
Record the successful outcome so telemetry can be joined to it later. See Measure cost per successful task, not cost per call.
What it saves: Avoided rework from assumptions caught before implementation. Measure the planning cost against generation, test, and integration work avoided on comparable tasks.
Collects your answers across every Track 1 End User lever above. Run it with an AWS specialist during a cost-optimisation engagement, or self-serve. Answers and notes are saved in this browser only. Gaps (answered Not covered or Partially) are gathered here for your report; export to PDF or Markdown to share.
No gaps recorded yet. Answer the questions above and any Not covered or Partially items will appear here.
Track 2 - Purpose-Built Agentic AI Application
Track 2 assessment
Your Purpose-Built Agentic AI Application cost assessment
Work one layer at a time. Answers and notes stay in this browser, and Track 1 never contributes to these totals, gaps, exports or reset actions.
Nothing answered yet. Start with model and usage costs, or choose Agent Harness or End User from the layer links below.
Your gaps
No gaps recorded yet. Answer the questions in this track to see your gaps here.
This self-service assessment shows where your gaps are, but it does not rank or prioritise them. If you are an AWS customer and want a prioritised plan, share your gap report with your AWS account team and ask for a specialist-led engagement.
Model Inference
Know what you spend and what it buys
Challenge and why it costs
Challenge. An agentic workload does not make one model call per user task: it loops, re-sending accumulated context on every pass. Token cost therefore scales faster than adoption, and a pilot that looked cheap at ten users is expensive at a hundred, non-linearly. Without a way to decompose total spend into the terms that drive it, every anomaly becomes a billing dispute rather than an engineering investigation.
Why it costs. Token counts measure usage, not value. No executive can act on "we used 3.2 billion tokens"; everyone can act on "cost per resolved ticket fell 18% while volume doubled" (FinOps Foundation, Unit Economics capability [91]). Without outcome-denominated metrics, you cannot tell whether a model swap, a prompt change, or an architecture decision made things better or worse. And without per-workload attribution, overspend cannot be traced to the team or application that caused it (AWS ML Blog, Track and allocate Bedrock cost [107]; WA Agentic AI Lens, AGENTCOST01 [39]).
How to close this gap best practice
The short answer. Write the equation down and measure every term: spend = users × sessions per user × turns per session × requests per turn × tokens per request × price per token. When the bill moves, name the term that moved it.
Read more for the self-serve reader
Uber's cost equation in practice
Uber decomposed their AI spend into exactly this equation (Uber Engineering, Running a Software Factory Efficiently at Uber Scale [109]). From February to August 2026, weekly active users across all agentic offerings grew 7x and weekly requests grew 9.4x, yet total spend stabilised because they optimised the middle terms (turns, tokens, price). Holding one model fixed, they measured a 34% drop in cost per 1,000 requests and a 52% drop in cost per session. The decomposition told them exactly where the savings came from: not from cutting usage, but from reducing waste in each term while letting adoption grow.
What is your cost equation? Total agentic spend is the product of several terms that multiply together: users × sessions per user × turns per session × requests per turn × tokens per request × price per token. Each term can be measured and improved independently. When the bill moves, the goal is to point at exactly which term moved it, with nothing left unexplained.
Why this matters for agents. Agentic workloads amplify cost: one task becomes multiple tool-call rounds, and each round re-sends the full conversation so far. Cost per task grows roughly with the square of the number of rounds, not linearly. Without explicit caps on iterations, token budgets, or confidence thresholds, the invoice is often the first sign something is wrong (WA Agentic AI Lens, AGENTCOST01 [39]).
Do you have the observability to gather this? Most of the signals you need already flow through standard AWS cost tooling and any OpenTelemetry-compatible telemetry pipeline. Confirm you can see: your monthly invoice broken down by service and tag (CUR 2.0), per-application token metrics from tagged Bedrock inference profiles (CloudWatch), gateway or API logs showing who called what and when, and per-request logs for spike investigation. If your agents run outside AWS, the same signals are available through OpenTelemetry exporters into CloudWatch or your existing observability stack (CUR 2.0 [108]; Bedrock invocation logging [47]).
Put every provider’s AI spend in one schema. If some of your token spend is on Bedrock and some on a direct model API, the FinOps Open Cost and Usage Specification (FOCUS) gives both the same columns. AWS Data Exports can deliver your AWS cost and usage in FOCUS 1.2 (AWS Data Exports, FOCUS 1.2 [177]). FOCUS 1.4, ratified on 4 June 2026, adds Invoice Detail and Billing Period datasets that tie usage rows to the invoice (FinOps Foundation, Introducing FOCUS 1.4 [176]; both accessed 5 November 2026). FOCUS 1.5 is due for ratification on 3 December 2026; its release candidate was completed on 2 November and gives AI token cost common labels: the model and its developer, cached against uncached tokens, input against output, and provider-issued credits, plus columns that name the principal and credential behind a charge. The separate SKU Price dataset arrives only as a preview, so do not plan on a FOCUS price catalogue yet (FinOps Foundation, FOCUS 1.5 release scope [198], accessed 16 November 2026). Map each direct-API invoice into the same columns, so showback and chargeback run from one table.
Break down each month's bill movement into four drivers: adoption (more users), engagement (more requests per user), input workload (more tokens per request), and output workload (more output tokens per request). This is how you answer "why did the bill go up" without guessing.
How to close this gap best practice
The short answer. Divide spend by what it bought: cost per successful task = total spend across all attempts / successful outcomes, and fail a release that raises it even when quality holds.
Read more for the self-serve reader
Define the unit of work. For each agent or use case, name the business outcome it delivers: a conversation handled, an invoice processed, a code review completed, an alert resolved. Then track cost per successful task = total spend across all attempts / successful outcomes. The denominator matters: if only 70% of attempts succeed, the effective cost per success is 1.43x the per-attempt figure. A falling success rate is a cost regression even when the per-call price has not changed (FinOps Foundation, Unit Economics [91]).
Track outcomes alongside cost. For every managed agent, measure three things together: (1) outcome-denominated cost (cost per completed task, cost per review, cost per alert), (2) quality signal (error rate, accuracy, time-to-resolution), and (3) volume (tasks completed, reviews posted). This tells you whether each agent is getting cheaper per unit of value delivered, and whether quality holds when you swap models or change prompts.
Gate releases on cost, not just quality. Track token-per-task in your test suite alongside accuracy for every change to prompts, tools, or models. Gate merges on the budget the same way you gate on accuracy. A prompt tweak or a model swap can quietly double per-task tokens, and nothing in the release process catches it until the invoice unless cost is in the gate (WA Agentic AI Lens, AGENTCOST01 [39]).
Pair each cost metric with a measure of value. The FinOps Foundation’s token economics guidance links cost per token to cost per inference and then to cost per outcome, and says these metrics only inform a decision alongside a business measure such as cost-to-serve reduction, cycle-time compression or revenue uplift. A model that spends more tokens can still be the cheaper choice if its outcome is worth far more, and a model that spends fewer tokens saves nothing if its output is unusable. The same guidance names a token yield rate: the share of generated tokens that led to a business action once retries, abandoned sessions and outputs that failed review are counted (FinOps Foundation, Token economics [190]).
The maturity path. Start with cost per token (you can compute it from your invoice today). Mature toward cost per outcome by wiring your release pipeline to record both accuracy and token-per-task. The FinOps Foundation frames this as the standard progression for AI workloads, and advises reporting cost per successful outcome as a range (FinOps for AI Working Group [41]; FinOps Foundation, FinOps for AI Overview [213], accessed 16 November 2026).
How to close this gap best practice
The short answer. Attribute in layers, strongest first: the team’s own account, then a tagged application inference profile per application or tenant, then cost allocation tags, then per-user tracking. Call the model through the profile ARN, never a raw model ID.
Read more for the self-serve reader
Layer your attribution, strongest first. (1) Account boundaries: keep the AI model calls in the team's own AWS account so the bill lands directly on the team that caused it. (2) Application inference profiles: tag one profile per application or tenant, and always call the model through the profile ARN rather than a raw model ID. The profile's CloudWatch metrics give you near-real-time token counts per workload. (3) Cost allocation tags: at minimum business_unit, application, environment, and cost_centre, activated in the billing account before launch. (4) Per-user tracking: use IAM principal cost allocation to see per-person spend in your invoice (AWS CFM Blog, IAM-based cost allocation [75]; Bedrock inference profiles [18]). That names the developer only when they call Bedrock with their own identity. Behind a shared gateway, per-user allocation needs the gateway’s telemetry and spend records, and hard budgets or rate limits need gateway policy (AWS ML Blog, OpenAI Codex on Amazon Bedrock [211], accessed 16 November 2026).
Use AWS’s own tokenomics framework beside the FinOps Foundation’s. AWS Cloud Financial Management recasts its See, Save, Run and Plan pillars for token spend as Visibility and Attribution, Optimization, Governance, and Value/ROI, which gives a finance team that already uses those pillars a place for each lever in this runbook. Its first visibility step is layer (4) above: turn on IAM principal data in the CUR 2.0 export, activate the IAM principal cost allocation tag, and group Bedrock spend by role and project tag with one CUR query (AWS Cloud Financial Management Blog, Getting started with Tokenomics on AWS [199], accessed 9 November 2026). The FinOps Foundation framing in Q2 sets the unit metrics; this one sets the AWS steps to collect them. AWS’s Bedrock cost playbook runs the same work as a loop of five stages, attribute, observe, enforce, optimize and operate, with FinOps leading the first and last and platform engineering the three between (AWS ML Blog, Managing Amazon Bedrock costs end to end [212], accessed 16 November 2026).
Use the attribution resource that matches the endpoint. Application inference profiles carry cost allocation tags for calls on the bedrock-runtime endpoint. For calls on the bedrock-mantle endpoint, Projects and Workspaces carry them instead, and both flow to Cost Explorer and CUR 2.0. Combine them with IAM principal attribution for per-user dollars, and with request metadata in invocation logs for per-prompt detail (Best practices for cost attribution, Amazon Bedrock User Guide [153], accessed 5 November 2026).
Group spend by model without parsing CUR. Cost Explorer, Budgets and Cost Management Dashboards can now group and filter Amazon Bedrock cost by product attributes: model, model provider, inference type (such as input or output tokens) and feature (such as on-demand inference). Combine an attribute with the cost allocation tags above to see which application drives spend on each model, or set a budget that alerts on one model (AWS What’s New, October 2026 [152], accessed 5 November 2026).
Look for third-party model spend under AWS Marketplace too. Third-party models such as Claude are offered and billed through AWS Marketplace, so their charges appear on your bill and in Cost Explorer under the model provider, not under Amazon Bedrock (Claude Haiku 5.5 model card, Pricing [146], accessed 5 November 2026). A report, budget or alert filtered to the Amazon Bedrock service alone misses that spend. Build each view to include the Marketplace charges, and check that your anomaly monitors cover them: since August 2026 AWS Cost Anomaly Detection evaluates third-party Bedrock model costs through the AWS managed service monitor, with no setup (AWS What’s New, August 2026 [151], accessed 5 November 2026).
Allocate shared platform costs. Some costs (gateway, policy engine, monitoring) are shared across teams. Split them using logged per-team usage shares for traffic-driven costs, and an even or tiered split for fixed costs. Document the formula and review it annually. Start with a transparency report ("showback") for the first quarter while the numbers stabilise, then switch to chargeback once teams trust the numbers (AWS Tagging Best Practices [110]).
Make the numbers visible in time to act. Attribution is useless if nobody sees it until month-end. Set budget alerts per team account (monthly + daily, filtered to your AI service) with automatic restrictions at 100%. Add anomaly detection scoped per account. Best practice is a live cost indicator visible to the developer during their session, with automated alerts at 50%, 80%, and 100% of expected spend (AWS CFM Blog, Budget Actions [111]).
What it saves: Visibility first. It saves nothing directly on the bill, but every other lever in this layer needs this decomposition to tell you whether it worked.
Route to the right model shared
Challenge and why it costs
Challenge. The per-token spread between a frontier model and a light one spans one to two orders of magnitude, yet most teams default every call to the frontier. Meanwhile, pinned model IDs age into Legacy pricing without anyone re-reading them.
Why it costs. Without deliberate per-step routing, the entire workload pays frontier prices. Without lifecycle auditing, a Legacy model launched before 7 September 2026 silently moves to a higher price tier (Amazon Bedrock pricing [1]; Bedrock model lifecycle (Legacy) [93]), and a model launched since then can reach end of life with as little as 45 days of notice (Bedrock model-lifecycle guidance [16]).
How to close this gap best practice
The short answer. Send each step to the cheapest model that clears your quality bar, judged by cost per solved task: blended cost = f × cheap model cost + (1 − f) × frontier model cost, where f is the fraction of requests the cheaper model can serve.
Read more for the self-serve reader
Tiered routing with GPT-6.1 Sol and GPT-6 Luna
The blended monthly cost is blended_cost = f × cheap_model_cost + (1 − f) × frontier_model_cost, where f is the fraction of prompts the cheaper model can serve at acceptable quality. Savings versus a frontier-only baseline are f × (1 − cheap_model_cost / frontier_model_cost). This example uses one million requests per month, averaging 2,000 input and 500 output tokens each, with 60% routed to Luna.
Prices per 1M tokens, Standard tier, Global cross-Region inference, at or under the 272,000-token long-context threshold: GPT-6.1 Sol $2.00 input and $10.00 output, or $0.00900 per request; GPT-6 Luna $0.10 and $0.50, or $0.00045 per request. US geographic and In-Region rates are 10% higher on both ($2.20 / $11.00 and $0.11 / $0.55) (GPT-6.1 Sol model card [148]; GPT-6 Luna model card [209], both accessed 16 November 2026). GPT-6.2 Sol, available since 17 November 2026, has the same rates, so the sums hold for it too (GPT-6.2 Sol model card [222]).
- Sol-only baseline: 1,000,000 × $0.00900 = $9,000 / month
- Tiered (60% Luna / 40% Sol): (600,000 × $0.00045) + (400,000 × $0.00900) = $270 + $3,600 = $3,870 / month
- Savings: roughly 57%
- IPR surcharge avoided: one million requests routed through Intelligent Prompt Routing adds $1 per 1,000 requests, or about $1,000 / month, on top of model-token cost (Amazon Bedrock pricing [1]).
The arithmetic is illustrative, not a quality recommendation. Recompute it with the live prices, context band, Region, and models your evaluation set selects.
The same sum on the current Claude pair. It has the same 20x price spread, so the saving is the same. Claude Sonnet 5.5 and Claude Haiku 5.5, Standard tier, Global cross-Region inference from US East (N. Virginia), prompts at or under Haiku 5.5’s 100,000-token long-context threshold, with the same one million requests of 2,000 input and 500 output tokens and 60% routed to Haiku (AWS Price List, AmazonBedrockFoundationModels offer version 20261120083414, accessed 23 November 2026 [150]; Claude Haiku 5.5 model card [146]):
| Item | Claude Sonnet 5.5 | Claude Haiku 5.5 |
|---|---|---|
| Input price (per 1M tokens, Global) | $2.00 | $0.10 |
| Output price (per 1M tokens, Global) | $10.00 | $0.50 |
| Cost per request (2,000 in / 500 out) | $0.00900 | $0.00045 |
| Monthly cost, one model only | $9,000 | $450 |
Tiered (60% Haiku / 40% Sonnet): (600,000 × $0.00045) + (400,000 × $0.00900) = $270 + $3,600 = $3,870 / month, roughly 57% below the Sonnet-only baseline. The non-Global rate in the same offer (for example a US geographic profile: $2.20 / $11.00 and $0.11 / $0.55) is 10% higher on both models, which leaves the percentage unchanged. These are third-party models billed through AWS Marketplace, so the charges appear under the model provider, not under Amazon Bedrock (see Know what you spend, Q3).
A mid-tier GPT pair: GPT-6.1 Sol and Terra. GPT-6.1 Terra has been generally available on Bedrock since 26 October 2026 (AWS What’s New, GPT-6.1 Terra [194]) and is priced at half of GPT-6.1 Sol. Standard tier, Global cross-Region inference, prompts at or under the 272,000-token long-context threshold, the same one million requests of 2,000 input and 500 output tokens, with 60% routed to Terra (GPT-6.1 Terra model card [191]; GPT-6.1 Sol model card [148], both accessed 9 November 2026):
| Item | GPT-6.1 Sol | GPT-6.1 Terra |
|---|---|---|
| Input price (per 1M tokens, Global) | $2.00 | $1.00 |
| Output price (per 1M tokens, Global) | $10.00 | $5.00 |
| Cost per request (2,000 in / 500 out) | $0.00900 | $0.00450 |
| Monthly cost, one model only | $9,000 | $4,500 |
Tiered (60% Terra / 40% Sol): (600,000 × $0.00450) + (400,000 × $0.00900) = $2,700 + $3,600 = $6,300 / month, 30% below the Sol-only baseline. The saving is smaller than in the Sol and Luna example because Terra is a mid tier at half Sol’s price, not a light model. On a US geographic profile or In-Region the rates are 10% higher on both models ($2.20 / $11.00 for Sol and $1.10 / $5.50 for Terra), which leaves the percentage unchanged. Terra supports the Standard tier only.
Task-tier routing. Route each prompt to the cheapest model that clears your quality bar, judging tiers by cost per solved task, not price per token. AWS Prescriptive Guidance recommends this cascade as a core cost pattern (APG, Agentic AI cost optimisation [7]; APG, Selecting the right model on Amazon Bedrock [46]). The Well-Architected Agentic AI Lens calls it out as a model-cost best practice (AGENTCOST02 [4]).
Where to run the routing. Options fall into two camps:
- Managed AI gateways. Amazon Bedrock AgentCore Gateway [32] routes across Bedrock, OpenAI, Anthropic, and other OpenAI-compatible providers. LiteLLM router [48] and Portkey [49] add multi-model routing with budget and policy controls.
- Open-source semantic routers. vLLM Semantic Router [112] classifies each request by intent and routes to the model tier that fits; NVIDIA NeMo Switchyard [113] orchestrates model selection and fallback across a fleet of self-hosted models.
Real-world implementation. Spotify's Portal plugin applies task-based routing to Claude Code by classifying each call as I/O or reasoning. Pre-tool-use hooks intercept file reads above a configurable line threshold and redirect them to a cheaper worker model via declarative "modes", while targeted reads and reasoning stay on the frontier model. Boilerplate generation (tests, config stubs) follows the same path: the worker writes the output straight to disk so it never enters the frontier model's context. The reported result was a 90% token reduction on bulk reads. The pattern has three layers: hooks enforce the routing, scripts wrap the delegation calls, and skill files teach the agent when to use each path. The routing degrades gracefully: even if the agent ignores the skill description, the hook still blocks the expensive read (Spotify Engineering, Portal by Spotify cut my Claude Code token usage by 90% [114]).
Treat Intelligent Prompt Routing as an option for older model families, and run current-generation routing in your own gateway. As of 5 November 2026 the IPR support table lists only Amazon Nova Lite and Nova Pro (v1) and Meta Llama 3.1 and 3.3 models; the page’s AWS CLI example still names Claude Sonnet 4.5 as a configurable router target (Bedrock Intelligent Prompt Routing [28]; IPR product page [31], first checked 10 September 2026). Llama 3.1 8B and 70B and Llama 3.3 70B Instruct have been Legacy since 30 September 2026, with end of life on 30 March 2027 (Bedrock model lifecycle (Legacy) [93], accessed 16 November 2026). The current-generation model cards list intelligent prompt routing as not supported, for example Claude Sonnet 5.5 (Claude Sonnet 5.5 model card [149]), Claude Haiku 5.5 (Claude Haiku 5.5 model card [146]) and GPT-6.1 Sol (GPT-6.1 Sol model card [148]), all accessed 5 November 2026. So for the models most teams run today, put the routing rule in the gateway options above, and do not pay the per-request IPR charge for a router that cannot reach them. Re-check the support table and the card before you rule IPR in or out.
A gateway changes the cost-safety posture, and a cost runbook must say so plainly. AgentCore Gateway does not enforce a default maximum on response stream duration or size. So without an explicit token-limit policy configured per inference target, a single caller can exhaust the shared provider's tokens-per-minute quota and generate unbounded, maximum-cost responses. Those are the classic "noisy neighbour" and "cost amplification on shared credentials" failure modes (AgentCore inference connector targets, response stream limits [33]). Configure a per-target token-limit policy before you send production traffic, and confirm the current inference-target quotas (tokens- and requests-per-minute, maximum targets per gateway) on the limits page at design time (AgentCore service quotas [35]). Since 6 August 2026 that ceiling is a first-class gateway control rather than something you assemble. An AgentCore Gateway rate limit carrying a tokens metric caps tokens per minute on an inference target, and can be scoped per caller or per model (rate limit metrics [68]). The full pattern, including the two dimensions a token ceiling alone still leaves open, is covered in the Agent Harness layer (Guardrails and limits).
How to close this gap best practice
The short answer. Keep an inventory of every pinned model ID and check it monthly against both the Bedrock and the Anthropic lifecycle pages. For an older Bedrock model, move off it before Legacy turns into extended-access pricing. For a model launched on or after 7 September 2026, record the card’s end-of-life date and Legacy period, and plan to finish the migration inside that period.
Read more for the self-serve reader
| The plane that bills you | Where to check | What the states mean for cost |
|---|---|---|
| Amazon Bedrock invocation, models launched before 7 September 2026 | The Bedrock model lifecycle (Legacy) page [93], or the modelLifecycle field of GetFoundationModel and ListFoundationModels. | Active, then Legacy, then End-of-Life. Public extended access sits between Legacy and EOL, where active users keep calling at a higher, provider-set price until requests start failing at EOL. |
| Amazon Bedrock invocation, models launched on or after 7 September 2026 | The Bedrock model-lifecycle page [16] and each model’s card, plus the same modelLifecycle field. | Active, then Legacy, then End-of-Life, with no extended-access phase and no price step. The card gives an “EOL no sooner than” date and a Legacy period of 6 months or 45 days. GPT-6.1 Sol follows OpenAI’s own deprecation terms instead. |
| The Claude API and Claude for Enterprise | Anthropic's model-deprecations page [62], which lists retirement dates and recommended replacements. | Active, then Legacy, then Deprecated, then Retired. The dates are independent of Bedrock, so the same model can be healthy on one plane and scheduled for retirement on the other. |
Lifecycle audit. On Amazon Bedrock a model moves through Active, Legacy, and End-of-Life (EOL); read the current state from modelLifecycle in GetFoundationModel, and per-model dates from the Bedrock model-lifecycle guidance [16]. For a model launched before 7 September 2026, after at least three months in Legacy the model enters public extended access at a higher, provider-set price (Bedrock model lifecycle (Legacy) [93]). Anthropic publishes its own lifecycle (Active, Legacy, Deprecated, Retired) with independent schedules (Anthropic, Model deprecations [62]). The two schedules are independent, so check both if you invoke on both.
What to do about it. Keep a small inventory of every pinned model ID in your fleet (Bedrock model ID and, where relevant, the Anthropic model name), and run a monthly check against both lifecycle pages. Move workloads off any model that has entered Legacy on either page before the extended-access price kicks in.
Newer models trade the price step for a hard deadline. Models launched on Bedrock on or after 7 September 2026 follow a different policy. There is no extended-access phase, so Legacy never raises the price, but the end date is firm. Each card states an “EOL no sooner than” date and a Legacy period, which is 6 months for most models and 45 days for some. Once a model is Legacy, new customers can’t adopt it, an account that stops calling it may lose access after 15 days, and no new Provisioned Throughput can be created for it (Bedrock model lifecycle [16], accessed 9 November 2026). Bedrock also does not grant quota increases for a model scheduled for retirement, so a Legacy model cannot absorb growth (Quotas for the bedrock-runtime endpoint [192], accessed 9 November 2026).
What this means for cost and planning. On these models the risk is not a higher bill but an unplanned migration. Record each model’s EOL-no-sooner-than date and Legacy period in the inventory. Budget the migration as a known cost: an evaluation run on the successor, prompt re-tuning, and a period of paying for both models side by side. With a 45-day Legacy period that work must start when the Legacy notice arrives, not in the following quarter. Send new volume to the successor rather than to a Legacy model whose quota cannot grow.
Pin the model on an AgentCore harness. When a harness omits model, it uses a recommended default that changes as new models ship, so its price can change with no one approving it. Set model (and list allowedTools) for predictable cost. The same managed defaults add automatic prompt caching, initially for Anthropic models on Converse (AWS ML Blog, AgentCore harness adds Strands harness defaults [223], 19 November 2026).
What it saves: Blended bill under half the frontier-only baseline through tiered routing (worked example above). Lifecycle audit prevents Legacy pricing surprises, and rushed migrations when a Legacy period is as short as 45 days.
Route to the right price
Challenge and why it costs
Challenge. The same model on the same Region bills at different rates depending on the service tier, the inference mode, and the routing profile, yet most teams leave everything on Standard in a single Region because nobody made these explicit decisions.
Why it costs. Development and test traffic that tolerates queuing pays the full interactive Standard price. Non-interactive, single-turn work that could run as a batch job consumes the interactive quota. A single-Region setup means throttling for callers in busy Regions with no automatic overflow, so latency-critical traffic on a model that offers Priority ends up on that tier at a 75% premium (Amazon Bedrock pricing [1]; CRIS pricing [22]).
How to close this gap best practice
The short answer. Default to Standard for anything a user waits on, and to batch, at half the price, for self-contained single-turn work the model supports and that has no hard deadline, because batch completion is best effort. Check the model card before planning on Flex, Priority or Reserved.
Read more for the self-serve reader
| Your work | Mode | Price vs Standard |
|---|---|---|
| Anything a user is waiting on | Standard | baseline |
| Self-contained, single-turn, no-tool generation (bulk generation, offline eval scoring, nightly summarisation) | Batch, where the model is in the support table | 50% cheaper, separate quota |
| Single-turn work that calls tools or returns structured output, where nobody is waiting | Batch, where the model is in the support table: tool calling needs the InvokeModel invocation type (each record in the model’s native request format); structured outputs work with InvokeModel or Converse | 50% cheaper, separate quota |
| Multi-turn or interactive work | Standard; extract any independent generation step to batch | baseline |
Best practice. Make the inference mode an explicit per-workload decision (Amazon Bedrock pricing [1]; AGENTCOST02-BP01 [11]).
Batch inference is 50% cheaper than on-demand and runs on its own quota, so batched tokens stop drawing on the interactive TPM quota developers share during the day (Batch inference [37]). Its limits: it is asynchronous (submit a file of requests, read results from S3 hours later), and it is per model. It is also best effort. On-demand requests are served ahead of batch jobs, a job is not guaranteed to complete, and each job times out after 24 hours by default, or up to 168 hours if you set timeoutDurationInHours in CreateModelInvocationJob (Capacity and Performance, Amazon Bedrock User Guide [193], accessed 9 November 2026). To keep the 50% saving real, set the timeout from the work’s deadline, plan to resubmit the records a failed or timed-out job did not process, and keep work with a hard deadline on Standard. Tool calling works only when the job uses the InvokeModel invocation type with each record in the model’s native request format; a Converse-format job rejects records that include toolConfig with a 400 error. Structured outputs work with both invocation types (Batch inference [37], accessed 5 November 2026). As of October 2026 the support table lists Claude 4.x and Opus 5 through cross-region inference profiles, but not Sonnet 5.x, GPT-5.x, or anything a user is waiting on (Supported Regions and models for batch inference [130]). Extract the self-contained, single-turn steps from mixed pipelines, including ones that call tools or need structured output if you write them in the InvokeModel format; keep the rest interactive.
Other service tiers: check the model card for supported service tiers. Amazon Bedrock defines four tiers, but which ones a model supports is set per model and listed only in the Service Tiers section of its model card (Models at a glance [127]). As of 5 November 2026, Claude Sonnet 5 supports the Standard tier only (Claude Sonnet 5 model card, Service Tiers [128]), and the OpenAI GPT-5.x cards say the same (GPT-5.6 Sol [129]). The current Claude 5.5 cards, Haiku, Sonnet and Opus 5.5, also list Standard only, and list batch inference as not supported (Haiku 5.5 [146]; Sonnet 5.5 [149]; Opus 5.5 [162]). Reserved is listed on some Claude 4.x cards, such as Claude Sonnet 4.6, but not on all of them: Claude Opus 4.8 does not list it (Sonnet 4.6 [183]; Opus 4.8 [184]). Amazon Nova supports Flex and Priority. GPT-6 Sol lists Standard only (GPT-6 Sol [147]). GPT-6 Astra and GPT-6.1 Sol list Standard plus a model-specific Ultrafast tier, a speed tier priced at six times Standard, and no Priority, Flex or Reserved (GPT-6 Astra [185]; GPT-6.1 Sol [148]; all cards accessed 5 November 2026). This changes at model launches, so check the card for each model you call before planning on a tier discount, and confirm what was actually served with the ResolvedServiceTier CloudWatch dimension (Bedrock service tiers [65]).
Where a model does support them, the tier is one request parameter, service_tier, set to default, flex, priority or reserved [65]:
| Tier | What it is for | Price vs Standard | Quota |
|---|---|---|---|
Standard (default) | Everyday interactive traffic; where requests land when service_tier is omitted | baseline | Shared on-demand quota |
| Flex | Queue-tolerant work such as model evaluation, summarisation and agentic workflows that can wait | 50% cheaper | Shared on-demand quota; Flex changes the price, not the quota draw |
| Priority | Latency-critical, customer-facing paths; served ahead of Standard and Flex | 75% dearer | Shared on-demand quota |
| Reserved | Committed tokens-per-minute capacity for 1 or 3 months, set at account level with your AWS account team, overflowing to Standard when exceeded | fixed price per 1K TPM | Separate reservation, not on-demand |
Ultrafast (ultrafast) | A speed tier offered only on some models, such as GPT-6 Astra and GPT-6.1 Sol [185] | six times Standard on those models; GPT-6.2 Astra is three times Standard as a promotion until 28 February 2027, then six times [221] | See the model card |
Before you ask for Reserved, size it and plan the exit. A reservation needs at least 100,000 input and 10,000 output tokens per minute. It runs for 1 or 3 months at a fixed price per 1K TPM, billed monthly, and traffic above it overflows to Standard. Size it from InputTokenCount plus CacheWriteInputTokens in CloudWatch, because cache writes count toward your tokens per minute. Billing continues until the reservation is deleted, which you do with your AWS account team, so a reservation nobody uses is pure cost: review its end date alongside the workload it serves (Bedrock service tiers [65], accessed 5 November 2026). Provisioned Throughput is now positioned for custom and imported models, not for the shared on-demand models these tiers serve (AWS Prescriptive Guidance, Amazon Bedrock [174]).
How to close this gap best practice
The short answer. Call a cross-region inference profile instead of a single-Region model ID, so a busy Region does not throttle you. There are two kinds. A Geographic profile (for example US, EU or APAC) only sends requests to Regions inside that geography, so use it when data residency matters; it costs the same as calling the model in the Region you call from. A Global profile can send requests to any supported commercial Region, so use it when residency does not matter; it costs about 10% less. Neither adds a routing charge (Cross-Region inference, Amazon Bedrock User Guide [22], accessed 5 November 2026).
Read more for the self-serve reader
| Profile | Where requests can run | What you must configure, and the price |
|---|---|---|
| Geographic | Within a single geography, which most compliance regimes require. | An SCP that allows every destination Region in the profile. Standard price: the same per-token rate as the Region you call from. |
| Global | Any commercial Region, including opt-in Regions where prompts and outputs can be stored for abuse detection (inference profiles [26]). | An SCP that permits an unspecified aws:RequestedRegion. About 10% below the standard price. For example, Claude Haiku 5.5 input from US East (N. Virginia) is $0.11 per 1M tokens on a geographic profile and $0.10 on the Global profile (AWS Price List [150], accessed 5 November 2026). |
Best practice. Cross-region inference sends each request to a Region that has capacity. Price is worked out from the Region you call the profile from (the source Region), whichever Region actually runs the request, and there is no routing, data-transfer, or network charge (CRIS pricing [22]). On top of that, the two profile types differ: a Geographic profile is billed at the standard price, and a Global profile is documented at approximately 10% savings against it.
In both cases data at rest stays in the source Region, and only transient compute crosses (CRIS security [27]). A throttled 429 is refused before inference runs, so it is not billed (429 errors [23]; on-demand billing [24]). Chronic throttling's real cost is user-facing latency and forced escalation to the Priority tier.
Check whether your profile has limited model selection. Some In-Region and geographic profiles, for example In-Region inference in Europe (London) and Asia Pacific (Singapore), and the Canada cross-Region profile, are designated as having limited model selection. New models and versions may arrive late or not at all on them, and when a model reaches end of life a successor might not be offered there. If residency rules pin you to one of these, plan the migration from each model’s End-of-Life date rather than expecting a replacement on the same profile (Inference profiles with limited model selection [186], accessed 5 November 2026).
What it saves: 50% on batch-eligible work, plus up to approximately 10% on a Global cross-region profile; Flex adds the same 50% on queue-tolerant traffic only where the model card lists it.
Cache what repeats
Challenge and why it costs
Challenge. Every agentic call re-sends the same system prompt, tool definitions, and accumulated context. Without prompt caching, that repeated prefix is billed at the full input price on every turn of every session.
Why it costs. Cache reads bill at 0.1x the base input price or less, depending on the model: a 90% discount on the cached portion for models such as Claude Haiku 5.5 and GPT-5.6, and a 95% discount (0.05x) on Claude Sonnet 5.5, Claude Opus 5.5 and GPT-6.1 Sol and Terra (Amazon Bedrock pricing [1]; per-model rates in Q1). So an uncached workload pays ten to twenty times more than it needs to for its stable prefix; the Well-Architected Generative AI Lens recommends caching as a primary cost-optimisation practice (GENCOST03-BP03 [3]). Caching also fails silently: a reordered payload, a stripped checkpoint marker, or a timestamp added to the system prompt reverts every request to full price with no error, and the regression is only visible in the bill.
How to close this gap best practice
The short answer. Turn caching on and order the request so the stable content comes first: system prompt, then tool schemas, then reference documents, then the variable user turn. A read bills at 0.1× down to 0.025× the input price, depending on the model, and a 5-minute write at 1.25×, so one re-read already pays for the write.
Read more for the self-serve reader
How to enable it. Place cache checkpoint markers in your request to tell Bedrock where the stable prefix ends. You get up to 4 checkpoints per request. Order them by how often each block changes: system prompt first (rarely changes), then tool schemas, then reference documents, then the variable user turn last. Only the content before the first variable section is cached (Bedrock prompt-caching documentation [5]; Anthropic prompt-caching documentation [6]).
Key constraint: the write premium. The first write costs 1.25x (5-minute TTL) or 2x (1-hour TTL) of the base input price. Reads cost 0.1x on some models and 0.05x on others (table below). Either way, one re-read of a 5-minute write already saves more than three times the write premium. Anything that rewrites the prefix mid-session, including context pruning and compaction in the harness, pays that premium again; see Memory Q2 for when to prune.
The cache-read rate is set per model. Read it from the model card or the Price List for each model you call, rather than assuming one multiplier. Standard tier, Global cross-Region inference, per 1M tokens:
| Model | Input | Cache read | Read vs input |
|---|---|---|---|
| Claude Haiku 5.5 | $0.10 | $0.01 | 0.1x |
| OpenAI GPT-5.6 Sol | $4.00 | $0.40 | 0.1x |
| Claude Sonnet 5.5 | $2.00 | $0.10 | 0.05x |
| Claude Opus 5.5 | $4.00 | $0.20 | 0.05x |
| OpenAI GPT-6.1 Sol | $2.00 | $0.10 | 0.05x |
| OpenAI GPT-6.1 Terra | $1.00 | $0.05 | 0.05x |
| Claude Fable 5.2 | $8.00 | $0.20 | 0.025x |
Sources: AWS Price List, AmazonBedrockFoundationModels offer version 20261120083414, for the three Claude models [150], checked 23 November 2026; the GPT-5.6 Sol [129], GPT-6.1 Sol [148] and GPT-6.1 Terra [191] model cards, checked 9 November 2026. Claude Fable 5.2, launched 9 November 2026, bills $40.00 output and supports the Standard tier only (AWS Price List, AmazonBedrockFoundationModels offer version 20261120083414 [150], accessed 23 November 2026; Claude Fable 5.2 model card [210], accessed 16 November 2026). The write multiplier is 1.25x on every model in the table. At 0.05x, one read saves 0.95x of the input price instead of 0.9x, so the same hit rate saves a little more, and the cached prefix costs half as much as on a 0.1x model with the same input price.
A fallback after a refusal can read the cache instead of rewriting it. If your application retries on another model when Claude Sonnet 5.5 refuses a request, the refusal response can carry a fallback credit token (beta, fallback-credit-2026-07-01). Redeem it on the retry to the valid fallback model, Claude Sonnet 5, and the cached conversation prefix bills at the cache-read rate instead of the cache-write rate (Claude Sonnet 5.5 model card [149], accessed 9 November 2026). Without the credit, each fallback on a long prefix pays a full write.
For a more recent Claude-specific study on maximising cache hit rates, removing prompt anti-patterns, and calibrating effort, see Anthropic, Reducing cost and improving performance with Claude Platform [115].
OpenAI models on Bedrock cache differently. From GPT-5.6, OpenAI models on the bedrock-mantle endpoint cache in one of two modes. Implicit mode is on by default, and Bedrock picks the breakpoint for you. Explicit mode, set with prompt_cache_options, uses only the breakpoints you mark with prompt_cache_breakpoint: up to 4 per request, with at least 1,024 tokens in each cached prefix. On GPT-5.6, in both modes a read bills at a 90% discount and a write at 1.25× the input price; GPT-6.1 Sol and Terra bill reads at a 95% discount (table above). A cached prefix stays available for at least 30 minutes. GPT-5.5 and GPT-5.4 cached automatically with free writes, so a straight model-ID upgrade starts paying for writes. For a stable prefix followed by a changing turn, such as an agent tool loop, AWS recommends explicit mode with one breakpoint at the end of the static content and the same prompt_cache_key on every request in the session. Check cached_tokens and cache_write_tokens in the response usage, as in Q2 (AWS ML Blog, Explicit prompt caching for OpenAI models on Amazon Bedrock [173], accessed 5 November 2026).
Cache whole answers for repeated questions
Prompt caching discounts the repeated prefix, but the model still runs. A semantic cache skips the call. It stores each question’s embedding with its answer, and when a new question is close enough in meaning, it returns the stored answer with no model inference at all. In an AWS test using Amazon ElastiCache for Valkey vector search with Amazon Bedrock, this cut inference cost by up to 86%. It suits questions that repeat and have stable answers, such as an IT help desk or a product FAQ. Send real-time data, such as order status, straight to the model (AWS Database Blog, ElastiCache as a semantic cache with Amazon Bedrock [181], accessed 5 November 2026).
Three controls keep the saving honest. Set a similarity threshold and treat it as a quality setting: the ElastiCache example returns a cached answer only at a cosine similarity of 0.8 or more (Implementing a semantic cache with ElastiCache for Valkey [182], accessed 5 November 2026). Set a TTL that matches how often the underlying data changes: a longer TTL raises the hit rate and the risk of a stale answer [181]. And count what a miss costs: every request still pays for an embedding and a vector search, so measure hit rate and answer quality together before you bank the saving.
How to close this gap best practice
The short answer. Check that cacheReadInputTokens is non-zero from the second call of a session, then chart cache hit rate = cache reads / (cache reads + cache writes + uncached input) weekly per inference profile and alert when it drops.
Read more for the self-serve reader
Common ways the cache silently breaks.
- A dynamic value creeps into the stable prefix. The most frequent cause: a developer adds
The current time is {timestamp}or a request ID into the system prompt for logging or debugging. Every request now has a unique prefix, so nothing matches the cache. Hit rate collapses to near-zero the day the change ships, but the invoice does not spike until month-end. - Tool schemas or reference documents change too often. Auto-refreshed tool catalogues, retrieved documents inserted before the stable block, or reordered system prompts all invalidate the cached prefix.
- A gateway upgrade changes how requests are rewritten. In July 2026, LiteLLM releases v1.91.0 and v1.91.1 moved mid-conversation system messages into the top-level system field for Claude Code sessions on the Bedrock Invoke API, which invalidated the cached prefix. The vendor reports that affected customers saw warm-session cache hit rates fall from about 90% to 25–45% and daily spend rise 2–3x, while every request still returned a correct answer. The fix shipped in v1.91.2 (LiteLLM, Prompt cache invalidation incident report [189]). Re-check the hit rate at the Bedrock end after every gateway upgrade.
Why verification matters. Caching fails silently. If the prefix is too short, the payload is reordered, or a proxy between your agent and Bedrock strips the checkpoint markers, every request quietly reverts to full-price input with no error. Budget projections that assume the cache discount without checking are guesses.
What to check first. Bedrock API responses include cacheReadInputTokens and cacheWriteInputTokens; per-profile CloudWatch metrics use CacheReadInputTokenCount and CacheWriteInputTokenCount. If cacheReadInputTokens is zero on the second and subsequent calls in a session, caching is not landing. Check at each layer: if an OpenAI-compatible shim or AgentCore Gateway sits between your agent and Bedrock, verify the metric at the Bedrock end, not just the proxy response (Bedrock prompt-caching documentation [5]).
Track cache hit rate over time, not just at launch. Compute cache hit rate = cacheReadInputTokens / (cacheReadInputTokens + cacheWriteInputTokens + non-cached input tokens) per application inference profile, and chart it as a weekly time series alongside your spend. A hit rate that drifts down over weeks is a silent cost regression: input tokens quietly move from the cache-read price (0.1x or 0.05x, depending on the model) back to the 1.0x base price, with no error and no alert.
Alert when the weekly hit rate falls more than, say, 10 percentage points week over week, or below an absolute floor you set per workload. Otherwise these regressions are only visible in the bill.
How to close this gap best practice
The short answer. Use the 1-hour TTL (2× write) when users can pause for more than five minutes between calls, and the 5-minute default (1.25× write) for automated sessions that finish in seconds. A hit refreshes the TTL at no charge.
Read more for the self-serve reader
Cache break-even for the supported Claude rates
A 5-minute write bills at 1.25× base. A read bills at 0.1× on Claude Haiku 5.5 and at 0.05× on Claude Sonnet 5.5 and Opus 5.5. One read saves 0.9× or 0.95×, more than the 0.25× write premium either way, so the first re-read clears break-even. A 1-hour write at 2× base carries a 1× premium, so it clears break-even after the second read on either rate (two reads save 1.8× or 1.9×). Check live model pricing before attaching a dollar figure (Bedrock pricing [1]).
Two TTL options. Bedrock offers a 5-minute TTL (default, 1.25x write cost) and a 1-hour TTL (2x write cost). The TTL refreshes on every cache hit at no additional charge, so a session that makes calls more frequently than the TTL window keeps the cache alive indefinitely (Bedrock prompt-caching documentation [5]).
Which to choose. Interactive sessions where a user may pause for more than 5 minutes between actions should use the 1-hour TTL; otherwise the cache expires mid-session and the next call pays the full write premium again. Short-lived automated sessions (subagents, batch pipelines) that complete in seconds can stay on the cheaper 5-minute default.
Cost trade-off. The 1-hour TTL costs 2x on the initial write vs 1.25x for 5-minute. But if the 5-minute cache expires and has to be rewritten, the second write wipes out the saving. Choose the TTL that avoids cache misses in your typical session pattern.
What it saves: About 90% to 97.5% off repeated-prefix input (cache reads at 0.1x down to 0.025x base, by model), the single largest per-call saving for agentic workloads that re-send system prompts and tool definitions on every turn.
Set reasoning effort per call
Challenge and why it costs
Challenge. Current models think before they answer, and how much they think is a request setting. Leave it out and you get the model’s default, and the defaults differ. On Amazon Bedrock, Claude Sonnet 5.5 defaults to high effort, Claude Opus 5.5 and Claude Haiku 5.5 to medium, and Opus 5.5 cannot turn thinking off at all (Claude Sonnet 5.5 model card [149]; Claude Opus 5.5 model card [162]; Claude Haiku 5.5 model card [146], all accessed 5 November 2026).
Why it costs. Thinking tokens are billed as output tokens, the dearest tokens on the bill. An agent that runs every step at the default, from a one-word classification to a final summary, pays for deep reasoning on steps that need none. A model upgrade can add the cost with no code change: on Claude Sonnet 5 and Claude Opus 5 a request that omits the thinking field runs with adaptive thinking, where the same request on Claude Sonnet 4.6 ran without it, and the thinking is billed as output (Adaptive thinking, Amazon Bedrock User Guide [163], accessed 5 November 2026).
How to close this gap best practice
The short answer. Put the effort level in every request, chosen by what the step does: low for routing, extraction and formatting, and the default or higher only for steps that plan, debug or decide. Where the model lets you, turn thinking off for steps that need no reasoning.
Read more for the self-serve reader
| Model | Control | Default | Thinking |
|---|---|---|---|
| Claude Opus 5.5 | output_config.effort: low, medium, high, xhigh, max | medium | Adaptive thinking is always on and cannot be disabled [162] |
| Claude Sonnet 5.5 | output_config.effort: low, medium, high, xhigh, max | high | Adaptive thinking is on by default [149] |
| Claude Haiku 5.5 | output_config.effort: low, medium, high, xhigh, max | medium | On by default; can be turned off, and effort is then capped at high [146] |
| OpenAI GPT-6 Sol | Reasoning effort: none, low, medium, high, xhigh, max | medium | none is one of the levels [147] |
Effort is guidance, not a budget. In adaptive mode Claude decides per request whether and how much to think. At high effort it almost always thinks; at lower levels it may skip thinking for simple problems. On the InvokeModel and Messages format the level goes in a separate output_config object, not inside thinking; on Converse both go in additionalModelRequestFields. On the 5.5 models a beta lets the harness lower effort partway through a conversation, for the turns that follow (Adaptive thinking [163]).
Vary the level, not the mode. Consecutive adaptive-thinking requests keep their prompt-cache breakpoints, but switching between adaptive and enabled or disabled thinking breaks the cache breakpoints on messages; system prompts and tool definitions stay cached [163]. So within one conversation, change effort rather than toggling thinking on and off (see Cache what repeats).
Re-check max_tokens. It caps thinking and answer together, so a workload that ran without thinking before needs a fresh limit [163]. The coding-assistant version of this choice is Match reasoning effort to task complexity in Track 1.
How to close this gap best practice
The short answer. Treat effort as a tuned setting. Run a representative set of each step type at two levels, compare output tokens per successful task, latency and task success, and keep the lowest level that still clears your quality bar.
Read more for the self-serve reader
Measure from the token count, not the visible text. By default the response carries a thinking block with empty text, so the reasoning you pay for does not show up in what you read; take the output token count from the response usage instead (Adaptive thinking [163]).
Lower effort can cost quality. AWS warns that steering Claude to think less often may reduce quality on tasks that benefit from reasoning, and recommends measuring on your own workload and trying lower effort levels before prompt-based tuning [163]. A step that fails and retries at low effort can cost more than one pass at the default, so judge the change on cost per successful task, not cost per call.
What it saves: Fewer billed thinking tokens on the steps that do not need deep reasoning. Thinking is billed as output, so the saving lands on the most expensive token type.
Self-host or distill when volume justifies it
Challenge and why it costs
Challenge. Routing sends each request to the cheapest existing model that clears the quality bar, but for a high-volume, stable, well-defined task the cheapest existing small model may still miss the bar that a frontier model clears.
Why it costs. That traffic then sits permanently on the expensive tier, paying frontier prices for a task whose shape never changes. Two paths convert that recurring premium into a fixed cost: self-host an open-weight model on infrastructure you own, or distill a smaller student model from the frontier teacher.
Reality check first. Very few organisations get to this lever. Self-hosting an open-weight model (Llama, Mistral, DeepSeek) on your own infrastructure, or distilling a smaller student model from a frontier teacher, both ask for in-house ML or platform engineering capacity and access to enough compute (GPUs) to run training or inference. Self-hosting trades API simplicity for full control over weights, data residency, and per-token economics. Distillation goes further: it needs a large curated dataset to teach the student. If any of those inputs is missing, the earlier levers (route to the right model, route to the right price, cache what repeats) still have material savings left in them; come back here once volume, data, and staffing all line up.
How to close this gap best practice
The short answer. Work out the break-even before the technique: months to break even = one-off training cost / monthly saving. Above about $500 a month and 10,000 invocations a month, customisation typically pays back within 6 to 12 months.
Read more for the self-serve reader
Start with the break-even, not the technique: per the Agentic AI Lens, customization typically reaches break-even within 6 to 12 months above $500/month and 10,000 invocations/month (AGENTCOST02-BP04 [13]). The worked example: "for a $5,000 training run that saves $400 per month, break-even lands at month 13." Month 13 is acceptable for a workload with a multi-year lifespan and unacceptable for an experimental project.
Check how the customised model is hosted before you run the sum. The monthly saving is the old per-call cost minus the new model’s running cost. A customised Amazon Nova model can run on on-demand inference at the same per-token price as the base Nova model, plus a monthly model storage fee, instead of on Provisioned Throughput capacity. That keeps hosting from eating the saving at low or uneven volume, so the break-even comes sooner (AWS ML Blog, Customize Amazon Nova models with Amazon Bedrock fine-tuning [161], accessed 5 November 2026). For a model that needs dedicated capacity, put the hourly capacity cost into the monthly saving too.
Real-world implementation. Goodnotes, the digital note-taking platform with over 24 million monthly active users, self-hosted an open-weight model on an Amazon EKS GPU cluster and cut inference costs by 97% compared to SaaS LLM APIs. The saving held while the team owned the GPU fleet and the user base fit within the cluster's capacity. When demand scaled to millions of concurrent users, operational overhead tipped the balance back toward the managed path, and the team migrated to Anthropic Claude on Amazon Bedrock. The lesson: self-hosting clears the break-even when you own the ops capacity to sustain it; when scaling outpaces your team, the managed path recaptures time that the token savings alone cannot buy back (Goodnotes case study, AWS [116]).
How to close this gap best practice
The short answer. Pick the path by how much control you need: managed Bedrock Model Distillation, or reinforcement fine-tuning when you can score answers but lack labelled data, for the least engineering; SageMaker Training Jobs when you choose the student and its licence, and a self-managed HyperPod cluster only when you need a persistent cluster under your own control.
Read more for the self-serve reader
| Path | Choose it when | How it works |
|---|---|---|
| Managed: Amazon Bedrock Model Distillation | A supported student fits your task and you want the least engineering. | Bedrock generates responses from a teacher model and uses them to fine-tune a cheaper student; you only provide prompts. |
| Managed: Amazon Bedrock reinforcement fine-tuning (RFT) | You can score a good answer with code or a model judge, but you do not have a large labelled dataset. | The model generates responses to a small set of prompts, a reward function (an AWS Lambda function or a model as judge) scores them, and training favours the higher-scoring ones. It can train from your stored invocation logs. It started with Amazon Nova in December 2025 and added open-weight models such as GPT OSS 20B and Qwen 3 32B in February 2026, with OpenAI-compatible APIs; the result can serve on-demand (AWS News Blog, Amazon Bedrock adds reinforcement fine-tuning [159]; AWS ML Blog, RFT with OpenAI-compatible APIs [160], both accessed 5 November 2026). |
| Managed compute: SageMaker Training Jobs | You need to pick an open-weight student and its licence, but do not want to run a persistent training cluster. | Generate training data from your teacher, submit a Training Job with your chosen framework and training script; SageMaker provisions the GPUs, runs training, and tears the cluster down. Host on SageMaker or import to Bedrock via Custom Model Import. |
| Self-managed: SageMaker HyperPod clusters + Custom Model Import | You need a persistent cluster, custom topology, or long-running training under your control. | Run your own HyperPod cluster, orchestrate training end-to-end, host on SageMaker or import to Bedrock. Confirm the student architecture is on the Custom Model Import supported list. |
Three paths trade off engineering effort against control:
- Managed distillation service: Amazon Bedrock Model Distillation. Least engineering. Bedrock generates responses from a teacher model and uses them to fine-tune a cheaper student; you only provide prompts. Confirm your student choice is on the supported list.
- Managed compute: SageMaker Training Jobs. SageMaker provisions and tears down the training cluster; you keep control of the student family, the training code, and the licence, without operating a persistent GPU fleet. Fits teams that want to distil an open-weight student (Llama, Mistral, DeepSeek) but do not want to run their own cluster (SageMaker Training Jobs [117]).
- Self-managed cluster: SageMaker HyperPod clusters + Custom Model Import. Most control, most operational overhead. Choose this when you need a persistent cluster, custom topology, or long-running training that must sit entirely under your control (Effective cost optimization strategies for Amazon Bedrock [12]; Bedrock Custom Model Import [51]).
How to close this gap best practice
The short answer. Train only on high-confidence successful production completions, A/B test the student against the teacher before promoting it, and budget a refresh cadence so the student does not drift.
Read more for the self-serve reader
Curate training prompts from production logs filtered for high-confidence successful completions, A/B test the distilled model against the foundation model before promoting it, and budget a refresh cadence. Confirm supported teacher/student pairs on the live Bedrock Model Distillation documentation [14].
What it saves: Break-even in 6 to 12 months above the thresholds. It converts a recurring per-invocation premium into a one-time training cost (distillation) or a fixed fleet cost you control (self-hosting); the cited thresholds are >$500/month and >10,000 invocations/month.
Collects your answers across every Model Inference lever above. Run it with an AWS specialist during a cost-optimisation engagement, or self-serve. Answers and notes are saved in this browser only. Gaps (answered Not covered or Partially) are gathered here for your report; export to PDF or Markdown to share.
No gaps recorded yet. Answer the questions above and any Not covered or Partially items will appear here.
Agent Harness
How the harness multiplies cost. The model determines the price of one invocation. The harness determines how many invocations a task makes and how much context each invocation carries. Use the cost model below to identify which multiplier dominates before choosing a lever.
Challenge and why it costs
Challenge. An agent loop does not bill like a chat. A task that takes N tool-call rounds re-sends the accumulating context on every round, so the same tokens are billed again and again as the loop runs.
Why it costs. Model the cost of one task as cost per task ≈ rounds × average context size × input price (plus output). Every extra round both adds a multiplication and grows the average context it multiplies, because each round appends its tool results to the context the next round re-sends; total input tokens therefore grow roughly with the square of the round count, not linearly. The mechanism is architectural: transformer attention creates "n² pairwise relationships for n tokens" (Anthropic engineering, Effective context engineering for AI agents [38], Sep 2025), and the same growth that inflates the bill also degrades recall as context lengthens, which Anthropic calls context rot. Long, expensive contexts are worse contexts.
System prompt
Challenge and why it costs
Challenge. The system prompt is re-sent on every model call in the loop, so it is the largest fixed cost of an invocation. It grows by accretion: every incident adds a sentence and nothing removes one.
Why it costs. Every token in a system prompt is paid for on every invocation, so prompt bloat compounds linearly with traffic (AGENTCOST02-BP02 [83]). A padded prompt is also a larger cache prefix to write, and a volatile value placed inside it, such as a timestamp or a user name, breaks the cache on every call, so the discount you planned on is never collected (Bedrock prompt caching [5]).
How to close this gap best practice
The short answer. The fixed cost of a task is system prompt tokens × model calls per task × input price, paid before the user says a word. Measure the prompt in tokens, strip persona padding and redundant explanation, and keep only the instructions the behaviour needs.
Read more for the self-serve reader
The same 15-call task under four system prompts
One task takes 15 model calls. The example assumes a model whose cache reads bill at 0.1× the input price, such as Claude Haiku 5.5 or GPT-5.6, and a 5-minute cache write at 1.25×; the dollar column uses an illustrative $3 per million input tokens. On a model that bills reads at 0.05×, such as Claude Sonnet 5.5, the two stable-prefix rows fall further, to 3,900 and 1,560 token-equivalents (cache-read rate by model). “Billed token-equivalents” weights each token by the rate it was billed at, so the rows compare directly.
| Configuration | Prompt tokens | Billed token-equivalents per task | Cost per task | Against the baseline |
|---|---|---|---|---|
| Padded prompt, no caching (baseline) | 2,000 | 30,000 | $0.090 | baseline |
| Padded prompt, caching on, but a timestamp on the first line (the common mistake: every call is a cache write, none is a read) | 2,000 | 37,500 | $0.113 | 25% worse |
| Padded prompt, caching on, stable prefix | 2,000 | 5,300 | $0.016 | 82% saved |
| Trimmed to the minimum, caching on, stable prefix (best practice) | 800 | 2,120 | $0.006 | 93% saved |
The arithmetic: 2,000 × 15 = 30,000 uncached; 2,000 × 1.25 × 15 = 37,500 when every call rewrites the cache; 2,000 × 1.25 + 14 × 2,000 × 0.1 = 5,300 when the prefix holds; 800 × 1.25 + 14 × 800 × 0.1 = 2,120 once the prompt is trimmed as well. The second row is the point: caching that is switched on but never hits costs more than no caching at all, and the invoice is the first place it shows (Bedrock prompt caching [5]; AGENTCOST02-BP02 [83]).
Minimum, not short. The goal is the smallest set of instructions that still produces the behaviour you need, not the fewest words. Start with a minimal prompt on the most capable model, measure where it fails, and add instructions and examples only for the failure modes you observed. Strip persona descriptions, restated context and explanations the model does not need (Effective context engineering for AI agents [38]; AGENTCOST02-BP02 [83]).
Right altitude. Avoid both extremes: brittle if-then logic written out in prose, and vague guidance that assumes shared context. Give the model strong heuristics and tell it why, and organise the prompt into labelled sections (background, instructions, tool guidance, output format) so each instruction is found once (Effective context engineering for AI agents [38]; Anthropic, Claude 4 prompting best practices [134]).
Examples are paid for on every call. Test zero-shot first. Where examples are needed, two or three canonical ones usually suffice; retrieve them per task from a library rather than embedding every edge case for every task (AGENTCOST02-BP02 [83]; Effective context engineering for AI agents [38]).
Constrain the output in the prompt. State the response structure and a maximum length, and set the model’s token limit parameter as a hard cap, because output tokens compound across the rounds of a loop (AGENTCOST02-BP02 [83]).
A starting allocation, not a target. The Agentic AI Lens suggests budgeting the context window as roughly 20 to 30% system prompt, 30 to 40% user context, 10 to 20% examples and 20 to 30% scratchpad, then adjusting to the agent’s observed reasoning pattern (AGENTCOST02-BP02 [83]).
Let an optimiser shorten it, and budget the run. Amazon Bedrock Advanced Prompt Optimization rewrites a prompt against your own evaluation set, and can compare the result across up to five models (AWS Prescriptive Guidance, Amazon Bedrock [174]). Since October 2026 it can also shorten the prompt. Turn on shortenPrompt for a template and the optimiser returns a new prompt only when it is shorter than yours and scores at least as well; otherwise you get your original back. The results show the original and optimised token counts and a compression ratio, so a ratio of 0.7 means 30% fewer input tokens on every call (Shorten prompts, Amazon Bedrock User Guide [171]; AWS What’s New, October 2026 [172], both accessed 5 November 2026). The optimiser itself bills tokens: on-demand Standard-tier tokens for the target model on every evaluation record, for the rewriter model, and for any judge model. The pricing page gives formulas to estimate a run, for example target model tokens = 16 × N × (P + O) per prompt template, where N is the number of evaluation records, P the prompt tokens and O the expected output tokens (Amazon Bedrock pricing, Prompt Optimization [1], accessed 5 November 2026). Run it when the prompt changes, and check that a month of input tokens saved is worth more than the run. Shortening also depends on your evaluation samples. If the original prompt already scores the maximum on them, or they cannot tell candidate prompts apart, the optimiser has no reason to prefer a shorter one and returns your original with a compression ratio of 1.0, after billing the run’s tokens. Include samples the current prompt does not fully pass, so a better and shorter prompt can win (Shorten prompts, Amazon Bedrock User Guide [171], accessed 9 November 2026).
How to close this gap best practice
The short answer. Treat the prompt as a versioned artefact: record token count, task success and cost per task for every version, and keep the prefix byte-stable, with volatile values (date, user, session id) placed after it, so the cache survives every call.
Read more for the self-serve reader
Keep the prefix stable for the cache. Bedrock and Anthropic cache the request in order: tools, then system prompt, then messages. Any value that changes per request and sits in or before the system prompt (the current time, a user name, a request id added for logging) invalidates everything after it. Put volatile content in the first user message instead, and treat any edit to the system prompt as a cache-rewrite event that will show as a one-day dip in hit rate (Bedrock prompt caching [5]; Anthropic prompt caching [6]).
Version and measure. Store the prompt as a versioned artefact rather than a string in code, and for each version record its token count, task success rate and cost per task, so a change that quietly doubles tokens per task is caught in review rather than in the bill. Amazon Bedrock Prompt Management provides versions and variants (Bedrock Prompt Management [131]), its prompt optimizer produces a measured rewrite you can compare against the current version (Optimize a prompt [132]), and the Generative AI Lens treats versioned prompt templates with a baseline evaluation as the operating standard (GENOPS03-BP01 [133]; AGENTCOST02-BP02 [83]).
Review on a cadence. A monthly review that compares cost per task across prompt versions, alongside the cache hit rate in Cache what repeats, keeps compression an ongoing practice instead of a one-off clean-up (AGENTCOST02-BP02 [83]).
What it saves: Up to about 90% of the prompt’s share of input when a trimmed prompt is also cache-stable (worked example above). The trim alone saves in proportion to the tokens removed, on every call of every task.
Context
Challenge and why it costs
Challenge. The harness assembles instructions, retrieved material, conversation history, memory and tool results into every model request. Without an explicit lifecycle, the working set grows by default.
What belongs here. This lever covers how one request is assembled: which sources go in and how much each tool returns. What the agent keeps from one turn to the next, and when it prunes, summarises or compacts that history, belongs to Memory. Count a practice under one of the two levers, not both.
Why it costs. Every token that remains in the working set is billed again on later rounds. Append-only history, full tool results and oversized checkpoints make cost grow with session length rather than task complexity.
How to close this gap best practice
The short answer. Measure before you cut: input tokens per call = instructions + capability definitions + working context + runtime output + retained state. Record each source’s tokens and how many rounds it survives; whatever is both large and carried across rounds is billed again on every round.
Read more for the self-serve reader
| Context source | What to measure |
|---|---|
| Stable instructions | System prompts, organisation guidance and repository instructions. |
| Capability definitions | Tool, skill and MCP descriptions and schemas. |
| Working context | Retrieved material, recent conversation and active task state. |
| Runtime output | Tool results, files, logs and browser output. |
| Retained state | Summaries, memory retrieved for the task and checkpoint data. |
Measure the context before trying to reduce it. Break each request into the sources that contribute input tokens.
Record the token contribution of each source and how long it remains in the working context. Prioritise content that is both large and carried across many rounds, because it is billed repeatedly.
Keep requests under the long-context price threshold. Some current models bill a request at a higher long-context rate once its prompt passes a set size, and the higher rate applies to the whole request, not only to the tokens above the line. A context that creeps past the threshold therefore raises the unit price of every token in that call. Find the threshold on the model card of each model you call, budget the context to stay under it, and alert on any request above it:
| Model | Long-context threshold | What changes above it |
|---|---|---|
| Claude Haiku 5.5 | Prompts over 100,000 tokens | Higher rates for input, output, cache read and cache write, billed as a separate “Long Context” row. In the current Price List the Global input rate goes from $0.10 to $0.50 and output from $0.50 to $2.50 per 1M tokens (Claude Haiku 5.5 model card [146]; AWS Price List [150], both accessed 5 November 2026). |
| OpenAI GPT-6 Sol and GPT-6.1 Sol | More than 272,000 input tokens | Long-context rates apply to the full request. On Global cross-Region inference input goes from $2.00 to $4.00 and output from $10.00 to $15.00 per 1M tokens (GPT-6 Sol model card [147]; GPT-6.1 Sol model card [148], both accessed 5 November 2026). |
| OpenAI GPT-6.1 Terra | More than 272,000 input tokens | The model card lists separate long-context rates for requests above the threshold. On Global cross-Region inference input goes from $1.00 to $2.00 and output from $5.00 to $7.50 per 1M tokens (GPT-6.1 Terra model card [191], accessed 9 November 2026). |
| OpenAI GPT-5.6 Sol and GPT-5.6 Luna | More than 272,000 input tokens | The model card lists separate long-context rates for requests above the threshold. On Global cross-Region inference GPT-5.6 Sol input goes from $4.00 to $8.00 and output from $20.00 to $30.00, and GPT-5.6 Luna input from $0.20 to $0.40 and output from $1.20 to $1.80 per 1M tokens (GPT-5.6 Sol model card [129]; GPT-5.6 Luna model card [95], both accessed 9 November 2026). |
Track the share of requests above each threshold as its own metric. A rise usually means a context leak, such as history or tool output that is no longer trimmed, rather than a harder task.
How to close this gap best practice
The short answer. Give every tool an output contract: return the smallest result that supports the next decision, with a pointer to the rest, so a file read, a log search or a page snapshot cannot flood the context.
Read more for the self-serve reader
| Runtime operation | Prefer | Avoid |
|---|---|---|
| File reading | Requested line range, matching sections or a diff | An entire large file |
| Log search | Matching errors, bounded context and a maximum match count | An unlimited log stream |
| Repository search | Ranked snippets with pagination | Every matching file and its full contents |
| Browser inspection | Relevant fields or an accessibility snapshot | Complete page source when only one value is needed |
| Sandbox execution | Status, key output, bounded error tail and artifact paths | Unbounded standard output |
Bound what each capability returns
Give every runtime operation an explicit output contract. Return the smallest result that supports the next decision, together with a pointer or continuation token when more detail remains available.
Measure direct runtime cost separately from context cost. Track API calls or execution duration for the first, then p50 and p95 result tokens, truncation frequency and follow-up requests for the second. If consumers repeatedly request omitted detail, increase the bound carefully rather than removing it.
Anthropic recommends token-efficient tools and just-in-time retrieval instead of loading complete data objects into context (Effective context engineering for AI agents [38]). AWS Prescriptive Guidance identifies excessive tool invocation as a direct runtime cost driver (APG, Agentic AI cost optimisation [7]).
Judge a context cut by the bill, not by the tokens it removes. When most input bills as cache writes and reads, removing tokens can save little and can cost more. In one study of Claude Code on controlled coding tasks, the most aggressive tool-output compression cut delivered tool-output tokens by 38.4% but raised billed cost by 6.8%. Prompt-cache creation and reads made up most of the input-side cost, and compression changed what the agent did next, adding retrieval, testing and turns. Across tasks, tokens removed and cost saved were only weakly correlated (Token Reduction Is Not Cost Reduction, arXiv:2607.12161 [200]; preprint, v5 12 August 2026, accessed 9 November 2026). It is one study, so measure your own: compare billed cost per successful task, with the cache hit rate, before and after any bound or compression proxy, as in Measure cost per successful task.
What it saves: Keeps per-round input bounded, so context cost tracks the task rather than the age of the session.
Retrieval
Challenge and why it costs
Challenge. A retrieval (RAG) pipeline bills in four places: the vector store that holds the corpus, the embedding calls that turn documents into vectors on every ingest and re-ingest, any reranking per query, and the retrieved chunks themselves, which enter the model request as input tokens.
Why it costs. An always-on vector store bills whether or not anyone asks a question, and embedding cost follows how often the corpus changes, not how often it is used. The retrieved text then rides on every call that needs it. Context measures retrieved material as one source of a request and decides how long it stays; this lever decides what the pipeline costs to keep and how much it hands over.
How to close this gap best practice
The short answer. Choose the store by how it is queried. A large corpus with low or uneven query volume suits pay-per-use storage; only steady, high query rates that need millisecond answers justify capacity billed by the hour.
Read more for the self-serve reader
| Option | How it bills | Fits |
|---|---|---|
| Amazon Bedrock Managed Knowledge Base | Usage-based: storage of your raw data, standard retrieval calls and Agentic Retrieval. The managed parser, embedding model and re-ranker are included; choosing another Bedrock model for embedding, reranking or orchestration bills that model at its standard rate (AWS ML Blog, Managed Knowledge Base [164]). | Teams that would rather not choose or run a vector store |
| Bedrock Knowledge Bases on Amazon S3 Vectors | Pay-as-you-go storage and queries. AWS reports up to 90% lower vector upload, storage and query cost than alternatives, with subsecond rather than millisecond queries (AWS ML Blog, Bedrock Knowledge Bases and S3 Vectors [165]; reported vendor figure). | Large or archival corpora that can wait a second for an answer |
| A vector database you provision | Capacity billed while it runs, queried or not | Sustained high query rates that need millisecond latency |
Agentic Retrieval adds model calls. On a Managed Knowledge Base, Agentic Retrieval uses a foundation model to split a question into sub-queries, retrieves, and checks whether the results are enough, running up to five rounds by default (maxAgentIteration, 1 to 10). Use the plain Retrieve call for direct lookups and FAQ-style questions, and cap the rounds where a multi-hop answer is rare [164]. Both blogs were accessed 5 November 2026; recheck the Amazon Bedrock pricing page for the current rates.
How to close this gap best practice
The short answer. Retrieved input per call is roughly chunks returned × tokens per chunk. Set the number of results on purpose, size chunks to the answer, and where quality needs a wide search, rerank a larger candidate set down to a few before generation.
Read more for the self-serve reader
The default is a choice too. A Bedrock knowledge base returns up to five results by default, and numberOfResults is a maximum. With hierarchical chunking it counts child chunks, and children that share a parent are replaced by the larger parent chunk, so the tokens handed over can be more than the result count suggests (Configure retrieval, Amazon Bedrock User Guide [166], accessed 5 November 2026).
Rerank when it removes more than it costs. A reranker scores retrieved chunks against the query so you can pass fewer, more relevant ones to the model, which AWS notes can cut cost and latency (Reranker models, Amazon Bedrock User Guide [167]). It is billed per query: Amazon Rerank 1.0 in US West (Oregon) lists $1 per 1,000 search units in the AWS Price List (AmazonBedrock offer version 20261111013037 [168], accessed 23 November 2026). Check the pricing page for how a search unit is counted, then compare that charge with the input tokens the reranker takes out of each call.
Count the retrieved tokens as their own row in the Context breakdown, so a rise in retrieval shows up as retrieval rather than as a longer prompt.
How to close this gap best practice
The short answer. Embedding cost follows corpus churn. Sync incrementally, change only metadata files when only metadata changed, and settle the parsing and chunking choices up front, because changing them later means a new knowledge base and a full re-ingest.
Read more for the self-serve reader
What a re-sync re-embeds. Knowledge base syncs are incremental: an unchanged document is skipped, a new one is ingested, and a document whose content or metadata changed is re-parsed, re-chunked, re-embedded and re-indexed. When only .metadata.json files change, the content is not CSV and no custom transformation Lambda function runs, Bedrock merges the new metadata into the stored embeddings without calling the embedding model (Sync your data, Amazon Bedrock User Guide [169], accessed 5 November 2026). A Managed Knowledge Base likewise processes only new or modified documents on later syncs [164].
Decide once. Parsing and chunking choices cannot be modified after the knowledge base is created [165], and an existing vector store only takes embeddings of the dimension it was built for, so a model with a different dimension fails ingestion [165]. Test the parser, chunking and embedding model on a sample before you ingest the full corpus.
What it saves: Lowers the fixed cost of a searchable corpus and the retrieved input that every grounded call carries.
Memory shared
Challenge and why it costs
Challenge. Conversation history, tool results and checkpoints accumulate by default. Without a memory policy, the working set grows with every turn.
What belongs here. This lever covers what the agent keeps across turns: history, summaries, checkpoints, and when to prune or compact them. How a single request is assembled, including how much one tool call returns, belongs to Context. Count a practice under one of the two levers, not both.
Why it costs. Every retained token is billed again on each later round, so append-only history makes cost track the length of the session rather than the complexity of the task (AGENTCOST03 [40]). Compaction done carelessly rewrites the cached prefix and pays the write premium again (Bedrock prompt caching [5]).
How to close this gap best practice
The short answer. Decide how the agent remembers before the history grows: a fixed window, rolling summaries, or retrieval from external memory. Append-only history makes cost grow with the age of the session rather than the size of the task.
Read more for the self-serve reader
| Architecture | How it works | Trade-off |
|---|---|---|
| Fixed-window truncation | Keeps the most recent turns and removes older ones. | Cheapest and simplest, but may discard an earlier decision. |
| Rolling summarisation | Replaces older history with a shorter summary. | Bounds context growth, but adds summarisation cost and may omit detail. |
| Semantic memory with retrieval | Stores structured information outside the active context and retrieves it when relevant. | Keeps the working context small, but adds storage, retrieval and relevance risk. |
Choose how the agent will retain information before the history becomes large. The appropriate approach depends on how far back the task must remember and how costly an omitted detail would be. The Agentic AI Lens sets the goal as sessions that “compress and prune history continually, keeping token cost sub-linear as conversation length grows” (AGENTCOST03 [40]).
For long-running work, Anthropic describes compaction as an early context-engineering control because it can retain architectural decisions and unresolved issues while removing redundant tool output (Effective context engineering for AI agents [38]).
On supported Anthropic models, server-side compaction and context editing can clear older tool-use and thinking blocks after configurable thresholds (Anthropic, Context editing [64]). The user-managed counterpart is Track 1's Manage the session and its context actively.
Let Bedrock do the compaction. On Amazon Bedrock, compaction is a beta feature of the Claude Messages API, called through InvokeModel; the Converse API does not support it. The current Claude 5.5 cards list it with the beta value compact-2026-09-04: you send a compaction request, Bedrock summarises the earlier messages into one block, and later requests send that block in place of the messages it replaces (Compaction, Amazon Bedrock User Guide [170]; Claude Haiku 5.5 model card [146], both accessed 5 November 2026). Two cost points come with it. The summary is a model call you pay for, and its tokens are reported under usage.iterations, not in the top-level input and output counts, so a cost report that reads only the top-level fields under-counts the session [170]. And the compacted block is a new prefix, so the next call pays a cache write: compact at the natural boundaries in Q2, not on every turn.
Memory management and prompt caching solve different problems. Memory management reduces the amount of changing history sent with each call. Prompt caching reduces the price of stable content sent unchanged. Use both, but avoid rewriting the stable prefix during compaction because that can cause a cache miss.
How to close this gap best practice
The short answer. Prune at natural boundaries (task completion, an idle gap longer than the cache TTL, a size threshold), not every turn, because each prune rewrites the cached prefix and pays the write premium again. Keep the conclusion, drop the raw material.
Read more for the self-serve reader
| Content | Retain |
|---|---|
| Large tool output | The relevant result, error, excerpt or summary. |
| Changed code or configuration | A diff or changed lines rather than complete before-and-after files. |
| Prior conversation | A recent window plus the summary or retrieved memory selected by the memory policy. |
| Checkpoint state | Decisions, unresolved work and restart data rather than the complete transcript. |
Prune consumed context
Remove or reduce content once the agent has extracted what it needs. Preserve the useful conclusion, not the complete raw material that produced it.
Set the history bound from observed task behaviour. If tasks rarely refer to older turns, carrying them forward adds cost without value. Do not compact too frequently, because summarisation is itself a model call. Compare the tokens removed with the tokens spent producing the summary.
Pruning rewrites the cached prefix. Prompt caching only pays when the prefix is byte-identical between requests; editing an earlier turn or clearing a tool result changes the prefix from that point on, so the next call misses the cache and re-writes it at the cache-write premium (Bedrock prompt caching [5]). Prune at natural boundaries rather than every turn: task completion, before an idle gap longer than the cache TTL, or when context crosses a size threshold. Prefer appending a summary to editing history where the harness allows it, and weigh the tokens removed against the re-cache cost, not only against the summary cost. See Cache what repeats for the write premium and TTLs.
This is the builder-controlled version of context hygiene. Implementing it in the harness applies the policy consistently instead of relying on every user to manage context manually. See Track 1's Manage the session and its context actively for the user-managed counterpart.
What it saves: Sub-linear history cost: the context sent per call stops growing with the age of the session, and compaction at boundaries keeps the cache discount intact.
Tool design shared
Challenge and why it costs
Challenge. Every tool, skill, MCP operation and bundled execution facility expands what the agent can invoke. Definitions add standing context, while invocations add runtime cost and results that may enter later model calls.
Why it costs. A broad catalogue raises the fixed input floor, and unbounded filesystem, sandbox or browser output can dominate the working context long after the tool call completed.
How to close this gap best practice
The short answer. Keep a versioned inventory of every tool, skill and MCP operation with an owner, a use case, its definition tokens and its measured runtime cost. definition tokens × calls per task is a fixed tax on every task.
Read more for the self-serve reader
| Review item | Practical action |
|---|---|
| Purpose and owner | Give every capability one clear use case and an accountable owner. Remove entries without a current use case. |
| Functional overlap | Combine tools such as find_order and search_orders when their inputs and results overlap, or define a clear boundary between them. |
| Definition weight | Count tokens in the serialized name, description and parameter schema. Remove tutorials, repeated examples and implementation detail that do not help tool selection. |
| Runtime cost | Record direct API or compute cost, calls per successful workflow and typical result size. |
| Evidence | After catalogue changes, compare task success, input tokens, tool-selection errors, retries and cost per successful workflow on representative tasks. |
Audit the capability catalogue
Maintain a versioned inventory of every capability available to the agent. Measure the actual definitions sent to the model because frameworks package tool metadata differently.
Do not optimise for the fewest tools alone. Keep the smallest catalogue that completes representative tasks reliably.
AWS recommends keeping tool descriptions at the minimum size required for accurate decisions and warns that unreviewed tool catalogues create a growing fixed input-token cost (AGENTCOST02 [4]). Anthropic similarly recommends clear, self-contained tools with minimal functional overlap (Effective context engineering for AI agents [38]).
How to close this gap best practice
The short answer. Separate the full registry from what one request carries: load a small core set plus the capabilities the current intent needs, and keep the rest out of the context.
Read more for the self-serve reader
| Current intent | Expose | Withhold |
|---|---|---|
| Answer a documentation question | Documentation search and read operations | Deployment, administration and write operations |
| Investigate a failed build | Source search, log reading and test execution | Production deployment and unrelated business systems |
| Process a return | Order lookup, policy lookup and return creation | Infrastructure, browser automation and unrelated customer operations |
Load capabilities for the current task
Separate the complete capability registry from the definitions placed in a model request. The registry records everything the application can use; the context builder selects what the current invocation needs.
For a large or changing catalogue, use semantic tool selection or a lightweight classifier. Retain a small core set for routing and recovery, then load specialised capabilities when needed. If intent is uncertain, allow progressive discovery or include a borderline capability rather than forcing failure and retry.
Measure definition tokens per invocation, task success, tool-selection errors, missing-capability retries and net cost per successful workflow. AWS recommends dynamically presenting task-relevant tools and describes AgentCore Gateway Semantic Tool Selection as one implementation (AGENTCOST02-BP02 [83]).
Use the model’s own tool search where it has one. Current Claude models on Amazon Bedrock support server-side tool search on the bedrock-runtime endpoint (Claude Sonnet 5.5 model card [149]; Claude Haiku 5.5 model card [146], both accessed 5 November 2026). You send the full catalogue but mark most tools for deferred loading, so the model first sees only the search tool and a few core tools, then loads the definitions it finds. Anthropic reports an 85% reduction in tool-definition tokens on a large MCP catalogue, and notes that deferred tools stay out of the cached prefix, so caching still works. It suggests keeping the three to five most-used tools always loaded (Anthropic, Introducing advanced tool use [157], accessed 5 November 2026; reported vendor figure).
For any model, search the catalogue at the gateway. MoEngage exposed about 400 internal APIs as agent tools through Amazon Bedrock AgentCore Gateway. At roughly 50 tokens of schema per tool, a full tool list would have been over 20,000 tokens on every connection, spent before the agent did any work. Filtering on the client does not help, because the whole catalogue has already been sent. Instead, Cedar policies scope each agent’s tool list on the gateway before it is returned, and the agent sees one search_tools meta-tool that calls the gateway’s semantic search, so it starts with one tool definition in context and adds only the few it finds (AWS ML Blog, How MoEngage turned over 400 APIs into agent tools with AgentCore Gateway [201], accessed 9 November 2026; one customer’s figures). This works whichever model is behind the gateway.
Keep intermediate tool results out of the context with programmatic tool calling. Instead of one model round trip per tool call, the model writes code that calls the tools in a sandbox, and only the final result returns to its context. That removes both the extra inference passes and the intermediate data, which matters most for multi-step workflows over large datasets. AWS shows three ways to run it on Amazon Bedrock: a self-hosted sandbox on Amazon ECS, AgentCore Code Interpreter, or an Anthropic SDK-compatible proxy (AWS ML Blog, Implementing programmatic tool calling on Amazon Bedrock [158], accessed 5 November 2026). Anthropic reports average tokens falling from 43,588 to 27,297 (37%) on complex research tasks [157]. It pays off less for single tool calls or small results, so measure net tokens per successful workflow before and after.
What it saves: Lowers the fixed capability tax and prevents runtime output from becoming recurring context.
Orchestration
Challenge and why it costs
Challenge. The orchestrator decides when to invoke a model, retry, delegate, synthesise and stop. Multi-agent designs multiply those decisions across workers and supervisors.
Why it costs. Every unnecessary branch, retry, hierarchy level and handoff adds model calls or moves context before the workflow produces an outcome.
How to close this gap best practice
The short answer. Put the stopping, retry and routing rules in code: an iteration cap, a session token budget, a completion exit, retries only for transient failures, and a deterministic branch wherever the inputs decide it.
Read more for the self-serve reader
| Control | What to implement | Practical example |
|---|---|---|
| Termination | Set an iteration cap, a session token budget and a completion or confidence exit. | Stop after eight tool rounds, when the token budget is spent, or as soon as all acceptance criteria pass. |
| Retries | Retry only failures classified as transient, with a maximum attempt count and a terminal path for repeated failure. | Retry a timeout twice, but do not repeat a request rejected for an invalid parameter. |
| Routing | Use code for deterministic branches, a lightweight classifier for narrow ambiguity and a supervisor model only for decisions needing language understanding. | Route by status, file type or numeric threshold without invoking a model. |
Bound control flow in harness code
Put stopping, retry and routing rules in the harness rather than relying on the model to regulate itself. Each rule should be explicit, observable and independently testable.
Route deterministically before invoking a supervisor
If the inputs fully decide the branch, encode the decision as a rule. Reserve model supervision for genuinely ambiguous intent or planning decisions. AWS identifies missing iteration limits, unnecessary model-based routing and overly deep orchestration as common causes of unpredictable token consumption (AGENTCOST01 [39]).
How to close this gap best practice
The short answer. Establish a single-agent baseline first. multi-agent cost ≈ N × (worker context + worker execution) + coordination + synthesis, so add workers only for independently divisible work, and have them hand back distilled results, not transcripts.
Read more for the self-serve reader
| Design test | What to do | Practical example |
|---|---|---|
| Independent divisibility | Split work only when workers do not depend on unfinished results or compete to modify the same state. | Search three independent evidence sources in parallel; keep a sequential refactor of one file with one agent. |
| Context isolation | Give each worker only its task, ready inputs, constraints and acceptance criteria. | Let a log-analysis worker inspect the full log, then return the failure signature and supporting lines rather than its complete exploration. |
| Structured handoff | Define a compact payload containing the task, inputs, output schema, acceptance criteria and unresolved issues. | Pass a result object or artifact reference instead of replaying the parent conversation. |
| Shallow topology | Use the fewest supervision and synthesis layers the workflow needs. | Allow an independent worker to complete its bounded subtask without reporting to a supervisor after every tool call. |
| Baseline comparison | Compare task success, elapsed time, total tokens, retries and total cost with the single-agent run. | Keep the multi-agent design only when its measured benefit is worth its added cost. |
Make multi-agent execution earn its overhead
Establish a single-agent baseline before adding workers. Parallelise only work that can proceed independently and whose latency or outcome benefit justifies the additional context, coordination and synthesis.
What the 2026 evidence says. One preprint compared six multi-agent workflows with a single-agent reference across ten reasoning, coding and tool-use benchmarks, all on the same model. Only one multi-agent design beat the single agent on pooled accuracy; the other five trailed by 1.71 to 8.76 points. A debate-style design used 1.39 times the single agent’s tokens and another used 4.34 times, and each won on one benchmark while losing overall (Do More Agents Help?, arXiv:2606.05670 [178]). A second preprint on agentic coding found that runs of the same task can differ by up to 30 times in total tokens, that more tokens did not buy more accuracy, and that input tokens, not output, drive the cost (How Do AI Agents Spend Your Money?, arXiv:2604.22750 [179]; both accessed 5 November 2026). Neither result is a rule for your workload; both are reasons to measure your design against a single-agent run.
Minimise multi-agent handoff payloads
A worker can explore a large context and return only a distilled result to the parent. Anthropic describes subagents that use tens of thousands of tokens internally but return summaries of about 1,000 to 2,000 tokens, preventing the full exploration from entering the main session history (Effective context engineering for AI agents [38]).
Use the simplified estimate multi-agent cost ≈ N × (worker context + worker execution) + coordination + synthesis. More workers are not a free speed-up: each worker receives context, and the workflow still pays to dispatch, coordinate and combine their results.
How to close this gap best practice
The short answer. Instrument the whole workflow, not just the worker calls: execution, retries, idempotency, checkpointing, coordination and synthesis, per workflow version and per outcome. Trend the orchestration-to-execution token ratio.
Read more for the self-serve reader
| Cost component | What to measure | What it reveals |
|---|---|---|
| Execution | Worker model tokens, tool calls and direct runtime charges. | The cost of useful task work. |
| Retries | Repeated model and tool calls, grouped by failure type and attempt. | Retry amplification and failures that should terminate rather than repeat. |
| Idempotency | State writes, prior-completion checks and compensating operations. | The standing cost of making selected steps safe to repeat. |
| Checkpointing | State serialisation, storage, retrieval and the size of each checkpoint. | Whether durable recovery stores distilled state or duplicates full context. |
| Coordination | Dispatch, routing, supervisor and handoff tokens and calls. | Overhead added before workers produce useful output. |
| Synthesis | Tokens and calls used to combine, evaluate or reconcile worker results. | The cost paid after parallel work completes. |
Measure total orchestration cost
Instrument the complete workflow rather than measuring worker model calls alone. Attribute each cost to a workflow version and successful or failed outcome so architecture changes can be compared on the same basis.
Track total tokens and total cost per successful workflow. Also trend the orchestration-to-execution token ratio, using coordination and synthesis tokens as the numerator and useful worker-execution tokens as the denominator. There is no universal target: compare later releases with a known-good baseline, and investigate when the ratio rises while task complexity and success remain stable.
AWS recommends measuring reasoning and orchestration costs against successful outcomes because retries, handoffs and hierarchy can multiply spend without improving decision quality (AGENTCOST01 [39]).
Count the runtime meters beside tokens
An agent hosted on Amazon Bedrock AgentCore pays for more than tokens. Each of these meters grows with session length or call count, so add them to the workflow cost above (Amazon Bedrock AgentCore pricing [36], accessed 5 November 2026; rates are from that page’s worked examples, so check them for your Region):
| Meter | How it bills | What to do |
|---|---|---|
| Runtime (microVMs) | Per second of CPU and memory, from session start until the session ends. CPU stops billing during I/O wait, such as waiting for a model response, but memory bills at its peak until it is reclaimed, after 120 idle seconds in Runtime v2. The pricing example uses $0.1276 per vCPU-hour and $0.0169 per GB-hour. Since 12 November 2026, new runtimes use v2 by default in 19 Regions, including Asia Pacific (Sydney); an existing runtime stays on v1 ($0.0895 per vCPU-hour, $0.00945 per GB-hour) until you set platformVersion to V2 (AWS What’s New, November 2026 [208]). v2 also has a committed baseline at $0.0997 per vCPU-hour and $0.0132 per GB-hour, about 22% below consumption: the session’s memory baseline bills as a minimum and can burst to four times the baseline (AWS ML Blog, next-generation AgentCore runtime [206]; AWS Price List, AmazonBedrockAgentCore offer version 20261120191134, us-east-1 [207], accessed 23 November 2026). Neither source states the commitment term. | End each session when its task is done, so an idle session does not keep billing. For agents that run all day, compare the committed baseline with consumption, and ask your AWS account team for the commitment term. |
| Runtime (Instances) | Generally available since 6 August 2026 (AWS What’s New, August 2026 [202]). Agents run on AWS-managed EC2 instances in your account. The instance bills at your EC2 rate per instance-hour from boot until it is stopped or terminated, with about a 1-minute minimum, plus a management fee of 12% of the EC2 On-Demand price, or 7.8% for G-series GPU instances. EC2 Savings Plans, Reserved Instances and On-Demand Capacity Reservations apply to the compute, not to the fee, and EBS volumes bill at standard rates even while a session is stopped (Amazon Bedrock AgentCore pricing [36], accessed 9 November 2026). | Use Instances for long or hardware-specific sessions, up to 14 days, that your EC2 commitments can cover. Keep short, bursty, I/O-bound sessions on microVMs, and end sessions you will not resume, because their storage keeps billing. |
| Short-term memory | Since October 2026, $1.00 per GB ingested, $0.20 per GB retrieved and $0.10 per GB-month stored. Ingestion and retrieval bill at least 12 KB per event (AWS What’s New, October 2026 [180]). | Combine many tiny events, and set a TTL no longer than the session needs. |
| Long-term memory | Per memory record stored and per retrieval request. | Store only processed knowledge you will retrieve again. |
| Gateway | Per API call, for example $5 per million InvokeTool calls. | Track calls per task; retries and fan-out raise them. |
| Policy | $0.000025 per authorization request ($0.025 per 1,000): Policy checks each tool call made through Gateway against your rules. The first 100 temporal policies per policy engine incur no authorization charge, and natural-language policy authoring is $0.13 per 1,000 input tokens ([36]; [207], accessed 16 November 2026). | Estimate requests as tool calls per task times policies enforced per call. The pricing example’s 500,000 requests a month cost $12.50. |
| Web Search (AgentCore) | $7 per 1,000 queries. The first 5,000 queries a month are free, shared across Regions and every account in an organisation; this does not apply to Web Search on Amazon Bedrock or Web Answer (AWS What’s New, November 2026 [224]; AWS Price List, AmazonBedrockAgentCore offer version 20261120191134 [207]). | Reuse a result within a task instead of searching again. |
| Web Answer (AgentCore) | Generally available since 5 November 2026, in US East (N. Virginia). $10 per 1,000 tool calls. One call returns a finished answer with citations: the tool plans and runs its own searches (AWS What’s New, November 2026 [203]; [36], accessed 9 November 2026). | Use it where the agent would otherwise search, read the results and write the answer itself. It swaps those tokens for a flat fee per call, so compare it with Web Search plus the tokens spent reading results. |
| Web Search on Amazon Bedrock | Not an AgentCore meter: the built-in, server-side web search tool that OpenAI GPT models on Amazon Bedrock call from the Responses API (AWS What’s New, August 2026 [204]). $12 per 1,000 tool calls in US East (N. Virginia), usage type USE1-Bedrock-Web-Search (AWS Price List, AmazonBedrock offer version 20261111013037 [187], accessed 23 November 2026). | Before tokens, the same lookup costs about 70% more here than on AgentCore Web Search. Pick the path per workload and count its calls per task. |
What it saves: Bounds the orchestration multiplier, removing avoidable calls and keeping coordination proportional to useful work.
Guardrails and limits
Challenge and why it costs
Challenge. A termination rule limits one workflow, but it does not constrain how many workflows run concurrently or how several callers consume shared capacity.
Why it costs. Queue drains, tenant fan-out and shared credentials can multiply otherwise controlled per-workflow cost across the system.
How to close this gap best practice
The short answer. A termination rule makes one workflow finite; dispatcher limits (queue depth, worker count, concurrency, fan-out width) decide how many finite workflows run at once. Enforce them in code, not in prompts.
Read more for the self-serve reader
| Burst source | Control to implement | Practical outcome |
|---|---|---|
| Queue backlog | Set a maximum queue depth and an explicit admission or deferral policy. | A backlog cannot become an unlimited inventory of future model calls. |
| Worker pool | Set a maximum worker count and apply backpressure when the pool is full. | A queue drain cannot start every waiting workflow at once. |
| Concurrent tasks | Set global and, where needed, per-tenant concurrency ceilings. | One tenant cannot occupy the complete worker pool. |
| Fan-out | Set the maximum child-task count in dispatcher configuration. | The width is reviewed as code rather than chosen dynamically by a prompt. |
Cap aggregate consumption in dispatcher code
The termination controls in Orchestration make one workflow finite. Dispatcher limits control how many finite workflows can consume resources at the same time. Enforce these ceilings in code rather than prompts.
Size each limit using observed legitimate demand and the cost budget for the workload. Review it when traffic, model choice, context size or workflow design changes. A ceiling set too high provides little containment; one set too low creates avoidable throttling and retries.
How to close this gap best practice
The short answer. At the gateway, limit requests, tokens and connections per caller, tenant or target, keyed to an identity the gateway already validates. Request count alone does not describe request cost.
Read more for the self-serve reader
| Dimension | What it contains | Why it is needed |
|---|---|---|
| Requests | Calls per second or minute. | Contains high-frequency loops and retry storms. |
| Tokens | Input plus output tokens over a time window. | Contains expensive requests that remain within a request-count limit. |
| Connections | Concurrent long-lived sessions. | Contains slow sessions that hold capacity while sending few requests. |
Isolate shared consumption at the gateway
Dispatcher limits cover paths your application owns. A gateway or proxy adds a common enforcement point for agents and callers that share targets or provider credentials. Limit each relevant consumption dimension because request count alone does not describe request cost.
Amazon Bedrock AgentCore Gateway supports request, token and connection rate limits. Token limits apply to supported inference paths, while request and connection limits apply more broadly (Control agent behaviors and cost [71]; AgentCore inference connector targets [33]).
Key limits to an identity or resource your gateway already validates. Examples include an OAuth subject, role or authorized party; an IAM principal or source identity; and a target, tool or model identifier. A wildcard dimension can give each distinct caller its own bucket without pre-registering every caller (Add rate limits to a gateway [67]; rate limit metrics [68]).
Validate the limit
- Test fail-open behaviour. AgentCore rate limits allow requests to proceed if the limiter is unavailable or a dimension cannot be resolved, so retain dispatcher limits and authorization controls.
- Check service quotas. The effective ceiling cannot exceed the underlying service-managed limit. On Amazon Bedrock that means the account-wide
Cross-Model Max Tokens Per Dayquota as well as each model’s tokens-per-minute quota [192]. - Verify identity resolution. Test every authentication path and confirm the intended caller receives an isolated bucket.
- Verify attribution. Confirm throttle telemetry identifies enough context to investigate the responsible caller; use harness invocation tracing where it does not.
- Tune with evidence. Review throttling, retries and legitimate demand when changing models, traffic patterns or limit values.
Optional defence in depth. Where a runaway workflow can repeat high-impact actions, AgentCore temporal policies can enforce a session-scoped action count or cumulative value outside the harness. This constrains blast radius; it does not replace token budgets or rate limits (Temporal policies [69]; Authoring temporal policies [70]).
Size safety-guardrail spend
Safety guardrails are a second meter beside tokens. Amazon Bedrock Guardrails bills each enabled filter per text unit of up to 1,000 characters, on every input and output it checks, so a 1,500-character response is 2 text units for each filter. In US East (N. Virginia), content filters and denied topics cost $0.15 per 1,000 text units each, sensitive information filters and contextual grounding checks cost $0.10, and word filters cost nothing (Amazon Bedrock pricing, Guardrails [1]; AWS Price List, AmazonBedrock offer version 20261111013037 [187], accessed 23 November 2026). An agent that runs its guardrail on every loop step pays those charges on every step.
- Enable only the filters the use case needs. Each filter is billed on its own, and a filter you leave off costs nothing [1].
- Check the user’s input once per task, not on every loop step. Re-checking text that already passed adds text units and no protection. Check output where it leaves the system: the answer the user sees, or a tool call with side effects.
- Use contextual grounding only where answers cite a source. It bills the source, the query and the response together, so its cost grows with the size of the retrieved context, not only the answer [1].
- Scope what is checked. The standalone ApplyGuardrail API checks content without calling a model, and input tags let you evaluate only selected sections of a prompt, so a system prompt or retrieved context you control is not re-checked on every call (AWS Prescriptive Guidance, Amazon Bedrock [174]).
- For per-step checks in an agent loop, consider InvokeGuardrailChecks. It runs only the checks you name (content filter, prompt attack or sensitive information) at any step, needs no guardrail resource, and returns a score from 0 to 1 for each check, so each step can run a different set (Use the InvokeGuardrailChecks API, Amazon Bedrock User Guide [205], accessed 9 November 2026). In US East (N. Virginia) a content-filter check costs $0.07 per 1,000 text units, a prompt-attack check $0.08 and a sensitive-information check $0.10, against $0.15 for the content-filter policy on a guardrail (AWS Price List,
AmazonBedrockoffer version 20261111013037 [187], accessed 23 November 2026). The trade-off: it only detects. It never blocks or redacts, so your code applies the threshold and the action. It is available in seven Regions, including Asia Pacific (Sydney) [205].
The Standard tier for contextual grounding checks, added in October 2026, handles reasoning and conversational answers better than Classic and is priced the same (it needs a guardrail cross-Region profile), so choosing it is a quality decision, not a cost one (AWS What’s New, October 2026 [188], accessed 5 November 2026).
What it saves: Caps aggregate and per-caller consumption, preventing concurrent workflows or one shared caller from multiplying otherwise controlled cost.
Observability
Challenge and why it costs
Challenge. Not every model or tool invocation traces back to work somebody requested. Loops can continue after completion, retries can repeat permanent failures, and scheduled jobs or health checks can invoke models without a user task.
Why it costs. These calls look legitimate in aggregate usage, but produce no valid task outcome. Without task-level correlation and reconciliation, they can continue until a billing review exposes them.
How to close this gap best practice
The short answer. Stamp caller, task, workflow and harness version on every model and tool call when work enters the harness, and turn on Bedrock model invocation logging, which is off by default.
Read more for the self-serve reader
| Field | What it identifies | Practical use |
|---|---|---|
| Caller | The user, service, scheduler or system component that initiated the work. | Separates interactive work from background callers. |
| Task | The requested unit of work and its current outcome. | Shows whether an invocation belongs to valid work. |
| Workflow | The workflow type, run and step that issued the invocation. | Locates loops, retries and expensive branches. |
| Harness version | The deployed configuration or code version controlling the run. | Connects a traffic change to a release. |
Attach a correlation contract to every invocation
Generate the identifiers when work enters the harness and propagate them through every model call, tool call, retry, worker and synthesis step. Do not reconstruct them later from timestamps or log text.
Enable Amazon Bedrock model invocation logging in the invoking account because it is disabled by default. It can record supported Bedrock Runtime requests and the calling principal in identity.arn; add task, workflow and harness-version identifiers in your own harness telemetry (Bedrock model invocation logging [47]).
How to close this gap best practice
The short answer. Join invocation records to the task ledger. Any call with no valid task, after a terminal outcome, or above the configured calls per task is a finding, not usage.
Read more for the self-serve reader
| Invocation pattern | Likely cause |
|---|---|
| Calls without a valid task or correlation identifier | An orphaned caller or untracked integration. |
| Calls continuing after a terminal task outcome | A runaway loop, stale worker or scheduler that was not cancelled. |
| The same failed step repeating | A retry storm around a permanent failure. |
| Regular calls without a corresponding user session | A scheduled job or model-backed health check. |
| Calls per task above the configured workflow limit | A termination or retry control failure. |
Reconcile invocations against the task ledger
Join model and tool invocation records to the harness task ledger using the correlation identifiers from Q1. Every invocation should map to a requested task, a valid workflow step and the task state at the time of the call. Treat an unmatched or post-completion invocation as a finding rather than allocating it to aggregate usage.
Review the highest-volume unmatched pattern first. The objective is not to reduce valid task traffic; it is to find invocations that should not have occurred.
How to close this gap best practice
The short answer. Publish the reconciliation as metrics and alert on contract violations (unmatched calls, post-completion calls, calls per task over the limit), routed to the owner of that workflow and harness version.
Read more for the self-serve reader
| Signal | How to use it |
|---|---|
| Unmatched invocations | Alert when any production call lacks a valid task, workflow or caller identifier. |
| Post-completion invocations | Alert when a workflow continues after success, failure or cancellation. |
| Calls per task | Compare with the workflow's configured iteration and retry limits. |
| Repeated failure signatures | Detect retries that repeat the same terminal error without changing inputs. |
| Background-call volume | Track scheduled and health-check traffic separately from user-requested work. |
Turn reconciliation findings into continuous signals
Publish metrics from the reconciliation in Q2 and alert on violations of your harness contracts rather than on a universal invocation threshold.
Route each alert to the owner of the workflow and harness version identified in Q1. Use Orchestration to correct loop and retry controls, and use Know what you spend and what it buys for financial attribution and release economics.
What it saves: Eliminates work no valid task required, exposing orphaned loops, retry storms and forgotten background callers before they become persistent traffic.
Collects your answers across every Agent Harness lever above. Run it with an AWS specialist during a cost-optimisation engagement, or self-serve. Answers and notes are saved in this browser only. Gaps (answered Not covered or Partially) are gathered here for your report; export to PDF or Markdown to share.
No gaps recorded yet. Answer the questions above and any Not covered or Partially items will appear here.
End User
Precise specifications to avoid rework
Challenge and why it costs
Challenge. A vague request leaves the agent to infer the required output, constraints, edge cases and scope. The first result may be plausible but still solve the wrong problem.
Why it costs. Each correction repeats exploration and generation, re-sends accumulated context and consumes fresh output tokens for the same logical task.
How to close this gap best practice
The short answer. Ask users to state five things before the agent starts: the required output, constraints, edge cases, one example, and what is out of scope. Every correction round re-sends the whole context, so a one-minute specification is cheaper than one retry.
Read more for the self-serve reader
| Specification element | What to state | Practical example |
|---|---|---|
| Required output | The deliverable, format and level of detail. | Produce a one-page decision summary with a comparison table. |
| Constraints | Rules, technologies, budgets or compatibility requirements. | Use the existing API and do not add a dependency. |
| Edge cases | Inputs or failure conditions that must be handled. | Include empty results, timeouts and partial failures. |
| Examples | A representative input and acceptable output when wording alone may be ambiguous. | Show one correctly formatted record. |
| Out of scope | Work the agent must not perform. | Do not change the database schema or deployment configuration. |
Write a short specification before execution
Front-load the information the agent would otherwise have to discover through clarifying questions or failed attempts. The specification can be brief, but it should make success and failure observable.
For larger tasks, use a planning pass to test assumptions and sequence the work before execution. Track 1 applies the same habit in Plan before executing complex work. AWS Prescriptive Guidance similarly treats avoiding wasted and redundant calls as a core agentic cost practice (APG, Agentic AI cost optimisation [7]).
What it saves: Prevents avoidable correction rounds, reducing repeated exploration and generation caused by missing requirements.
Guided prompting to reduce input ambiguity
Challenge and why it costs
Challenge. The Precise specifications lever above puts the burden of precision on the user: write a clear, complete prompt and you avoid rework. When you build and operate the application, you do not have to wait for the user to be precise. Left to type into a blank box, users are ambiguous by default, and every ambiguous free-text turn is one the agent may have to explore, guess at, and redo.
Why it costs. An ambiguous request triggers the same explore, generate, and retry cycle that a vague specification does: the agent produces something approximate, the user corrects it, and the model re-runs the task, each round re-billing the input context and burning fresh output tokens. Multiplied across a fleet of users who each phrase the same intent a dozen different ways, that variance is a standing rework tax the application pays on every session.
How to close this gap best practice
The short answer. Offer suggested follow-ups, quick replies or slot filling, so the user selects a precise next request instead of typing an ambiguous one.
Read more for the self-serve reader
| Pattern | What the application does |
|---|---|
| Suggested follow-ups | Proposes the likely next step at the end of a turn as a clickable, well-formed prompt, so the user selects a precise next request instead of typing an ambiguous one. |
| Quick replies | Offers a constrained set of tappable responses, replacing an open-ended answer with one the agent can act on directly. |
| Slot filling (structured elicitation) | Elicits the specific parameters the task needs, one field at a time, rather than accepting a single open-ended sentence. |
Because you own the UX and the invocation, you can make precision the path of least resistance rather than a discipline you hope the user keeps. Guided prompting is the builder-owned complement to Precise specifications: the application anticipates the user's likely next request and surfaces well-formed, clickable options instead of relying on free-text entry. All three established patterns are applications of choice architecture, because constraining the option set nudges the user toward inputs the agent can act on in a single pass.
How to close this gap best practice
The short answer. Design each option so the agent can act on it in one pass. A predictable input removes the clarifying call and the redo.
Read more for the self-serve reader
Across suggested follow-ups, quick replies and slot filling, the goal is to replace ambiguous free text with a small set of predictable inputs. This reduces the need for clarifying questions and repeated model calls. The same front-loaded-precision principle is anchored in AWS Prescriptive Guidance for serverless agentic AI, which treats minimising wasted and redundant calls as a core cost lever (APG, Agentic AI cost optimisation [7]).
What it saves: Cuts clarifying round-trips at the source, converting ambiguous, high-variance free-text turns into precise inputs and removing rework cycles before they start. It is the builder-owned complement to the user-owned Precise specifications lever, applied by the application rather than left to the user (qualitative; the magnitude tracks how much of your traffic is ambiguous free text today).
Show the user what their session costs
Challenge and why it costs
Challenge. Your users cannot economise on a quantity they never see: to the person driving the agent, tokens are invisible until the monthly bill arrives, long after the behaviour that spent them.
Why it costs. With no feedback signal, users have no reason to prefer the cheap phrasing over the expensive one, to reset a bloated session, or to notice that one workflow costs ten times another.
Applies where the user bears or influences the cost: internal tools, developer assistants and shared platforms. For an end-customer-facing product, answer N/A on this lever; the control belongs in Agent Harness Guardrails and limits (per-caller limits).
How to close this gap best practice
The short answer. Show a running figure in the interface, such as “this session has used about N tokens” or an approximate dollar amount. Users cannot economise on a quantity they never see.
Read more for the self-serve reader
Because you own the UX, you can surface the meter. A per-session indicator, such as "this session has used ~N tokens" or an approximate dollar figure, closes the feedback loop and changes behaviour. Mature coding assistants already do this, exposing session token usage and a locally computed cost figure to the developer (Anthropic, Manage costs effectively [19]).
How to close this gap best practice
The short answer. Show it live, during the session. An approximate number now changes behaviour; a precise number on next month’s invoice changes nothing.
Read more for the self-serve reader
Two properties matter more than precision. Timely: show it while the user can still act on it, during the session rather than on next month's invoice, because a signal that arrives after the spend changes nothing. Approximate is enough: the figure does not need to be billing-precise, and a locally computed estimate that may differ from the final bill still recruits the user into the cost loop.
What it saves: Qualitative — recruits every user into the cost loop instead of leaving optimisation entirely to the platform team.
Collects your answers across every End User lever above. Run it with an AWS specialist during a cost-optimisation engagement, or self-serve. Answers and notes are saved in this browser only. Gaps (answered Not covered or Partially) are gathered here for your report; export to PDF or Markdown to share.
No gaps recorded yet. Answer the questions above and any Not covered or Partially items will appear here.
Explore the shared cost guide and full lever mapOptional context, diagnostics and decision principles
The whole runbook at a glance
Two tracks by three actor-layers. Go straight to the layer you own.Using an AI coding assistant
Building agents on Amazon Bedrock
Lever progress
Every one of the 28 levers sits in the cell that owns it, and each row states how far you have got: how many of its questions you have answered, whether any answer came back a gap, and whether you left a note. Clicking a lever jumps straight to it, and Gaps is the shortest route back into the work. Hover anything marked ⇄ shared to see its counterpart on the other track. A shared topic does not always sit in the same layer on both tracks, and that is the layer doing its job rather than a filing error. The layer records who holds the control. A team adopting an assistant cannot change the harness it ships with, so keeping the context small is the developer's job at the keyboard, while a team building an agent owns the harness that does the injecting.
Prefer a table? Show the full lever index28 levers, plus 6 sub-practices and 3 decision principles, each with its track, actor-layer and a jump link
Your assessment at a glance
Each track is a separate assessment. Progress, applicable-answer coverage, notes, gaps, exports, printing and resets are calculated only from the track you open.
Use the two cards above to start or continue. There is deliberately no blended score across unlike operating models.
Pick your role. Every question is tagged with the roles that act on it. Choose AI PM or leader to see every question, or Governance, Developer or App builder to see only yours, from every layer. Your gap report lists the skipped questions so you can route them. Not sure? Start with AI PM or leader; you can switch any time.
Prefer to start from your code? The AI Tokenomics FinOps agent skill asks these same questions in your coding agent, reviews your repository read-only, and drafts the gap report for you to check.
Start with the bill, because it is the one thing both tracks have in common. Figure 1 shows how it is calculated: you pay for the input tokens you send and for the output tokens the model returns, and the output rate is higher. Two levers move that total further than any others. Prompt caching reduces what you pay for input that repeats from one call to the next, and context hygiene reduces how much input you send in the first place. Every remaining lever in this runbook works on one of the two terms of that calculation: the input you are billed for, or the output.
Cost structure overview
Every agent is a model wrapped in a harness. The model sets the price of each token, and the harness determines how many tokens a task consumes. Both tracks therefore work through the same three layers, called actor-layers because each one has a different owner. At Model Inference, each call is priced. At Agent Harness, the loop multiplies the number of calls and the amount of context they carry. At End User, working habits determine how often that loop runs.
Each lever belongs in exactly one cell of the grid below: the track it applies to, and the layer where the decision to spend is actually taken. One cell means one owner, so no lever ends up half-owned by two people. The bill, though, is not divided that way. A task's cost is the three layers multiplied together: what each call costs, how many calls the loop makes, and how often someone runs it. So every lever has a clear owner, while the total has none, and none of the three owners can see it from where they sit. Bringing the total down takes all three of them, which is why the sections that follow cover all three layers rather than only your own.
Some topics come up on both tracks. Each of those carries a shared tag and is covered inside both tracks, phrased for the way that track operates, rather than being pulled out into a section of its own. The Second treatment column of the lever index links each treatment to its counterpart. Three decision principles are identical on both tracks, so they are covered once, in Decision principles. The map below places every lever in its cell, links to the section that covers it, and tracks how far you have got with each one.
All prices verified against Amazon Bedrock pricing [1] as of November 2026. Reported industry figures are marked as such and should be independently verified before you rely on them.
Checklists and diagnostics
The runbook above is organised by where each decision lives; this section reorganises the same levers by what to do first. Nothing here is new, every row and step links back to the section that works it, and every figure is the one already cited there. The percentages are reported ranges, marked as such in each linked section; verify them in your own environment before they anchor a business case.
Top levers by effort-to-savings
Ranked by how much saving a unit of effort typically buys, cheapest wins first. "Effort" is what it takes to turn the lever on, not to master it.
| # | Lever | Effort | Reported saving | Where it is worked |
|---|---|---|---|---|
| 1 | Flex tier for dev/test traffic, where the model card lists it | One request parameter | 50% on queue-tolerant traffic | Match the pricing tier to the environment |
| 2 | Prompt caching on the stable prefix | Prefix ordering + verify counters | About 90% off repeated-prefix input | Track 1: Manage the session and its context actively; Track 2: Place and verify cache checkpoints |
| 3 | Match reasoning effort to task complexity | Per-request setting or fleet default | 50 to 70% on straightforward tasks | Match reasoning effort to task complexity |
| 4 | Prompt and context hygiene | Harness discipline, ongoing | 40 to 70% of input tokens on context-heavy agents (illustrative) | Track 1: Manage the session and its context actively; Track 2: Trim what the harness injects |
| 5 | Move non-interactive work to batch | Rework eligible jobs as batch submissions | 50% on eligible single-turn work | Move non-interactive work to batch inference |
| 6 | Isolate verbose work in subagents | Route bounded, read-heavy analysis to subagents | No default saving. Measure net tokens and task success [100] | Manage the session and its context actively |
| 7 | Tiered model routing | Routing policy + gateway or app logic | Roughly 59% in the worked example; up to 30% reported in general | Decision guidance: cost-aware model routing |
| 8 | Precise specifications | Writing habit + style guide | 2 to 5× fewer tokens per task | Precise specifications to avoid rework |
| 9 | Manage the session and its context actively | Per-developer habit | 20 to 40% on long sessions | Manage the session and its context actively |
| 10 | Seat and tier right-sizing | Usage audit + licence change | Contract-dependent savings from releasing idle seats and matching plan or pool size to observed usage | Right-size the subscription plan |
Two levers sit just below the table. Reserved-tier commitments report 30 to 50 per cent at sustained volume, and model distillation reaches break-even typically 6 to 12 months past the cited thresholds. Both save materially, but both ask for a commitment or an upfront spend, so they belong after the audit rather than in the first week. Reserved also has a volume floor rather than only a commitment, so check your throughput clears the documented minimums before you plan around it (Match the pricing tier to the environment, Q2).
Pre-launch checklist
Run this before an agent, or a new team of assistant seats, sends its first real traffic. Each line is a section of this runbook compressed to a yes/no.
- Before first traffic
- Default model tier set deliberately, balanced default with a cheap background default, not whatever the framework shipped (Right-size the model to the task; Decision guidance: cost-aware model routing)
- Iteration cap, session token budget, and confidence exit enforced in harness code (Orchestration)
- Dev and test traffic on Flex tier, where the model and Region support it (Match the pricing tier to the environment)
- Hard spend cap at the request path, gateway or proxy, not an after-the-fact alert (Cost attribution and spending caps)
- Rate and concurrency ceilings set per team, not only monthly dollars (Cap concurrency in the code you own)
- Behind a gateway, all three consumption dimensions capped per caller, requests and inference tokens and concurrent connections, not request rate alone (Guardrails and limits)
- Attribution wired: application inference profiles tagged, budgets and anomaly detection on the tags (Attribute cost with application inference profiles)
- Cache verified with counters, per hop if a proxy chain is involved (Place and verify cache checkpoints; Verify the cache per hop in proxied chains)
- Invocation logging on, so background traffic is auditable from day one (Observability)
- Token-per-task and task-success baselines captured before launch (Know what you spend and what it buys)
Runtime signal quick scan
Runtime spend anomalies rarely announce themselves; these four signals catch them while they are still running. Each signal lists the check for whichever track holds the surface it applies to, phrased for the operator who actually holds it, plus the track-neutral principle where one exists.
| Signal | Track 1 check | Track 2 check | Principle |
|---|---|---|---|
| Invocations nobody initiated | Manage coding agent configurations | Observability | |
| Parallel sessions multiplying spend | Cost attribution and spending caps | Cap concurrency in the code you own; Guardrails and limits | |
| Healthy output hiding climbing spend | Manage the session and its context actively | Memory | Unchanged quality is not evidence of controlled cost |
| Failures inflating real cost per result | Developer education | Know what you spend and what it buys | Measure cost per successful task, not cost per call |
Cost-anomaly diagnostic checklist
The bill jumped and the workload did not. Work down this list; it is ordered by how often each cause is the answer and how fast it is to check.
- Cache stopped landing. Read the CloudWatch
CacheReadInputTokenCountmetric; zero on a workload that should cache means a broken prefix or a proxy hop rewriting it (Verify the cache per hop in proxied chains). On an assistant fleet the usual cause is a developer rather than the pipeline: switching model or reasoning effort mid-session re-prefills the whole conversation, and so does returning after the cache has expired (Manage the session and its context actively). - A loop is not converging. Look for sessions or tasks with outlier round counts; context grows with the square of rounds (Agent loop token amplification; Orchestration).
- Background or hidden invocations. Group invocation logs by caller and time of day; flat round-the-clock volume is not a human (Observability).
- Retries multiplying spend. Check pass rates and orchestrator retry counts; a falling pass rate raises cost per successful task with no per-call change (Measure cost per successful task; Cost dimensions of the orchestration layer).
- Sessions grew heavy under compaction. Cumulative session tokens against task complexity; quality will not warn you (Unchanged quality is not evidence of controlled cost).
- A model moved under you. A pinned Legacy model on extended-access pricing, or a default that drifted to a dearer tier (Audit for Legacy / extended-access models; Right-size the model to the task).
- Concurrency multiplied. More parallel sessions per developer than last month (Cap concurrency in the code you own).
- Attribution is too coarse to say. If none of the above is checkable because the bill is one line item, the finding is the missing attribution itself (Attribute cost with application inference profiles).
Synthesis and next steps
The pattern holds across both tracks. At model selection and routing you right-size and, if you own the invocation, route to the cheapest model that clears the bar. At context and caching you cache the stable prefix and keep the working set lean so you stop re-billing tokens the task no longer needs. At invocation and output discipline you bound each call, on output length, quota burndown, and reasoning effort. At orchestration you push verbose work into subagents and, if you own the invocation, single-turn, no-tool generation work into batch, off the interactive path. At governance and attribution you set fleet defaults, hard caps, per-user attribution, and watch the model-lifecycle and seat clocks. The token meter all of that is measured against is the same on both tracks; the tracks differ only in which levers you actually hold. This is FinOps for AI, and it is the same discipline whether you build the agent or adopt one.
Next: an architecture track (LLM gateway, token-level attribution, budget enforcement) and an operating-model track will be covered in a subsequent issue. Claude Code-specific configuration for the agnostic practices above is deferred to the official Claude Code on Amazon Bedrock documentation [52].
Decision principles
Three rules in this runbook are literally identical whichever track you run: nothing about them changes with the operational surface, so they are covered once here rather than phrased twice and left to drift. Both tracks' navigation points at this block.
Compare models on cost per solved task, not price per token shared
The list price per token is the wrong axis for any model-tiering decision, because models differ in how many tokens, and how many attempts, they need to finish the same work. The comparison that decides the routing table is:
cost per solved task = total tokens billed across all attempts × price / successfully completed tasks
Measured this way, a pricier model can come out cheaper. A frontier model that answers in fewer output tokens, needs fewer correction rounds, and fails less often can undercut a nominally cheaper model whose per-task token volume and retry rate are higher. Output tokens are the expensive kind, so producing fewer of them moves the bill disproportionately. Practitioners comparing model tiers on identical tasks have reported exactly this inversion. So treat "smaller model = cheaper" as a hypothesis to test rather than a rule: run a representative task set through each candidate, count tokens billed and tasks solved, and let the ratio pick the model. The Know what you spend and what it buys lever keeps that comparison tied to a versioned cost and success baseline.
One further caution applies when the model arrives wrapped inside a packaged product rather than called directly. The same model name does not guarantee the same serving configuration. A wrapped deployment may differ from the direct API in context handling or output behaviour, in ways the product documentation does not cover. Where the comparison matters, cross-validate with the same benchmark task run through both paths before attributing a cost or quality difference to the model itself.
Unchanged quality is not evidence of controlled cost shared
Compaction and auto-summarisation are designed to preserve output quality as context grows, which means quality is the one signal that will not tell you the session has become expensive. A long session under automatic compaction keeps answering well while cumulative token spend climbs; the summarisation calls themselves bill, the retained context stays near the ceiling, and there is no visible degradation to prompt anyone to reset. The invoice becomes the first alarm, weeks late.
Watch a leading indicator instead: cumulative session token count against task complexity. A session whose token total keeps climbing while the task at hand is routine is the signature of context that compaction is preserving but the work no longer needs. The habit levers in Track 1 (Manage the session and its context actively) and the architecture levers in Track 2 (Memory) are the fixes; this signal is what tells you when to apply them.
The reverse also holds: fewer tokens is not evidence of a lower bill. When cache writes and reads dominate input cost, a cut that removes tokens can change the cache pattern and the agent’s path enough to raise spend, so judge it by billed cost per successful task (Context, judge a context cut by the bill).
Measure cost per successful task, not cost per call shared
Agents fail and retry, and a per-call or per-task cost figure that ignores failures understates real cost by the failure rate. An agent with a 70 per cent pass rate spends on 100 attempts to bank 70 results. Adjust for the pass rate:
cost per successful task = total spend across all attempts / successful outcomes
AWS calls the outcome-level metric cost-per-task-completion and recommends attributing planning, execution, reflection, verification, and tool costs to the workflow outcome (AWS Agentic AI Lens, AGENTCOST05-BP01 [105]).
For coding-agent workflows, Coding Agent Insights supplies token, latency, API, tool, approval, and organisational dimensions (Coding Agent Insights [74]; AWS OpenTelemetry setup for OpenAI Codex [104]). It does not know whether a coding task succeeded. Join telemetry to a defined successful outcome through a stable task or workflow key.
Track the result per workflow alongside the orchestration-to-execution ratio and the release-gate metrics in Know what you spend and what it buys. Use the same denominator for the cost-per-solved-task model comparison and coding-agent attribution.
Network, sandbox, approval, and tool-permission controls are governance and blast-radius containment. Their economic benefit is indirect unless local measurements show avoided incidents or rework. Do not report them as direct token savings.
Telemetry transport does not select or bill the inference provider. Codex bearer-token telemetry can send metrics to CloudWatch with any provider (AWS OpenTelemetry setup for OpenAI Codex [104]). When Codex uses Bedrock, Bedrock owns inference billing and AWS service support (OpenAI Codex on Amazon Bedrock [103]).
References
97 references support the complete runbook. Choose a track to see only the sources used by that assessment.
Show all 97 references
- Amazon Bedrock pricing. AWS. https://aws.amazon.com/bedrock/pricing/
- GENCOST03-BP03: Implement prompt caching. AWS Well-Architected Generative AI Lens. https://docs.aws.amazon.com/wellarchitected/latest/generative-ai-lens/gencost03-bp03.html
- AGENTCOST02: Model costs. AWS Well-Architected Agentic AI Lens. https://docs.aws.amazon.com/wellarchitected/latest/agentic-ai-lens/agentcost02.html
- Prompt caching. Amazon Bedrock User Guide, AWS. https://docs.aws.amazon.com/bedrock/latest/userguide/prompt-caching.html
- Prompt caching. Anthropic documentation. https://platform.claude.com/docs/en/build-with-claude/prompt-caching
- Cost optimization. AWS Prescriptive Guidance, Agentic AI on serverless. https://docs.aws.amazon.com/prescriptive-guidance/latest/agentic-ai-serverless/cost-optimization.html
- Selecting the right model on Amazon Bedrock. AWS Prescriptive Guidance library. https://apg-library.amazonaws.com/content/80e16fcd-8137-4e27-9a09-4f3207bb41ca
- FrugalGPT: How to Use Large Language Models While Reducing Cost and Improving Performance. Lingjiao Chen, Matei Zaharia, James Zou (Stanford University). TMLR 2024. https://arxiv.org/abs/2305.05176
- RouteLLM: Learning to Route LLMs with Preference Data. LMSYS / UC Berkeley. 2024. https://arxiv.org/abs/2406.18665
- AGENTCOST02-BP01: Select cost-appropriate service tiers. AWS Well-Architected Agentic AI Lens. https://docs.aws.amazon.com/wellarchitected/latest/agentic-ai-lens/agentcost02-bp01.html
- Effective cost optimization strategies for Amazon Bedrock. AWS Machine Learning Blog, Jun 2025. https://aws.amazon.com/blogs/machine-learning/effective-cost-optimization-strategies-for-amazon-bedrock/
- AGENTCOST02-BP04: Customize models when break-even justifies it. AWS Well-Architected Agentic AI Lens. https://docs.aws.amazon.com/wellarchitected/latest/agentic-ai-lens/agentcost02-bp04.html
- Model distillation. Amazon Bedrock User Guide, AWS. https://docs.aws.amazon.com/bedrock/latest/userguide/model-distillation.html
- How tokens are counted in Amazon Bedrock (token counting and quota burndown). AWS. https://docs.aws.amazon.com/bedrock/latest/userguide/quotas-token-burndown.html
- Model lifecycle (models launched on or after 7 September 2026). Amazon Bedrock User Guide, AWS; accessed 9 November 2026. https://docs.aws.amazon.com/bedrock/latest/userguide/model-lifecycle.html
- Inference profiles. Amazon Bedrock User Guide, AWS. https://docs.aws.amazon.com/bedrock/latest/userguide/inference-profiles.html
- Create an application inference profile. Amazon Bedrock User Guide, AWS. https://docs.aws.amazon.com/bedrock/latest/userguide/inference-profiles-create.html
- Manage costs effectively. Anthropic Claude Code documentation. https://code.claude.com/docs/en/costs
- Cross-region inference. Amazon Bedrock User Guide, AWS. https://docs.aws.amazon.com/bedrock/latest/userguide/cross-region-inference.html
- Troubleshooting API error codes. Amazon Bedrock User Guide, AWS. https://docs.aws.amazon.com/bedrock/latest/userguide/troubleshooting-api-error-codes.html
- On-demand inference. Amazon Nova User Guide, AWS. https://docs.aws.amazon.com/nova/latest/nova2-userguide/on-demand-inference.html
- Optimizing costs of generative AI applications on AWS. AWS Machine Learning Blog. https://aws.amazon.com/blogs/machine-learning/optimizing-costs-of-generative-ai-applications-on-aws/
- Supported Regions and models for inference profiles. Amazon Bedrock User Guide, AWS. https://docs.aws.amazon.com/bedrock/latest/userguide/inference-profiles-support.html
- Securing Amazon Bedrock cross-region inference: geographic and global. AWS Machine Learning Blog. https://aws.amazon.com/blogs/machine-learning/securing-amazon-bedrock-cross-region-inference-geographic-and-global/
- Intelligent prompt routing. Amazon Bedrock User Guide, AWS. https://docs.aws.amazon.com/bedrock/latest/userguide/prompt-routing.html
- Amazon Bedrock cost optimization. AWS. https://aws.amazon.com/bedrock/cost-optimization/
- Use Amazon Bedrock Intelligent Prompt Routing for cost and latency benefits. AWS Machine Learning Blog. https://aws.amazon.com/blogs/machine-learning/use-amazon-bedrock-intelligent-prompt-routing-for-cost-and-latency-benefits/
- Amazon Bedrock Intelligent Prompt Routing. AWS. https://aws.amazon.com/bedrock/intelligent-prompt-routing/
- Gateway inference targets. Amazon Bedrock AgentCore Developer Guide, AWS. https://docs.aws.amazon.com/bedrock-agentcore/latest/devguide/gateway-targets-inference.html
- Inference connector targets. Amazon Bedrock AgentCore Developer Guide, AWS. https://docs.aws.amazon.com/bedrock-agentcore/latest/devguide/gateway-target-inference-connector.html
- Release notes. Amazon Bedrock AgentCore Developer Guide, AWS. https://docs.aws.amazon.com/bedrock-agentcore/latest/devguide/release-notes.html
- Service quotas. Amazon Bedrock AgentCore Developer Guide, AWS. https://docs.aws.amazon.com/bedrock-agentcore/latest/devguide/bedrock-agentcore-limits.html
- Amazon Bedrock AgentCore pricing. AWS. https://aws.amazon.com/bedrock/agentcore/pricing/
- Batch inference. Amazon Bedrock User Guide, AWS. https://docs.aws.amazon.com/bedrock/latest/userguide/batch-inference.html
- Effective context engineering for AI agents. Anthropic Engineering, Sep 2025. https://www.anthropic.com/engineering/effective-context-engineering-for-ai-agents
- AGENTCOST01: Reasoning and execution cost optimization. AWS Well-Architected Agentic AI Lens. https://docs.aws.amazon.com/wellarchitected/latest/agentic-ai-lens/agentcost01.html
- AGENTCOST03: Session and memory costs. AWS Well-Architected Agentic AI Lens. https://docs.aws.amazon.com/wellarchitected/latest/agentic-ai-lens/agentcost03.html
- FinOps for AI Working Group. FinOps Foundation (Linux Foundation). https://www.finops.org/wg/finops-for-ai/
- Introducing Claude apps gateway for AWS. AWS Machine Learning Blog, Jul 2026. https://aws.amazon.com/blogs/machine-learning/introducing-claude-apps-gateway-for-aws/
- Budgets and rate limits. LiteLLM proxy documentation. https://docs.litellm.ai/docs/proxy/users
- Optimizing cost for deploying Amazon Q. AWS Cloud Financial Management Blog, Jun 2025. https://aws.amazon.com/blogs/aws-cloud-financial-management/optimizing-cost-for-deploying-amazon-q/
- Monitor model invocation using CloudWatch Logs and Amazon S3 (model invocation logging). Amazon Bedrock User Guide, AWS. https://docs.aws.amazon.com/bedrock/latest/userguide/model-invocation-logging.html
- Router: load balancing and routing strategies. LiteLLM documentation. https://docs.litellm.ai/docs/routing
- Conditional routing. Portkey documentation. https://portkey.ai/docs/product/ai-gateway/conditional-routing
- SageMaker HyperPod recipes. Amazon SageMaker AI Developer Guide, AWS. https://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-hyperpod-recipes.html
- Use Custom model import to import a customized model into Amazon Bedrock. Amazon Bedrock User Guide, AWS. https://docs.aws.amazon.com/bedrock/latest/userguide/model-customization-import-model.html
- Claude Code on Amazon Bedrock. Claude Code documentation. https://code.claude.com/docs/en/amazon-bedrock
- Environment variables reference. Claude Code documentation. https://code.claude.com/docs/en/env-vars
- Monitoring. Claude Code documentation. https://code.claude.com/docs/en/monitoring-usage
- Track team usage with analytics. Claude Code documentation. https://code.claude.com/docs/en/analytics
- Usage and Cost API. Claude Platform documentation. https://platform.claude.com/docs/en/manage-claude/usage-cost-api
- Pricing. Kiro. https://kiro.dev/pricing/
- Manage costs effectively. Claude Code documentation. https://code.claude.com/docs/en/costs
- Model deprecations. Claude Platform documentation. https://platform.claude.com/docs/en/about-claude/model-deprecations
- Hooks reference. Claude Code documentation. https://code.claude.com/docs/en/hooks
- Context editing. Claude Platform documentation. https://platform.claude.com/docs/en/build-with-claude/context-editing
- Service tiers for optimizing performance and cost. Amazon Bedrock documentation. https://docs.aws.amazon.com/bedrock/latest/userguide/service-tiers-inference.html
- Add rate limits to a gateway. Amazon Bedrock AgentCore Developer Guide, AWS. https://docs.aws.amazon.com/bedrock-agentcore/latest/devguide/gateway-rate-limits.html
- Rate limit metrics. Amazon Bedrock AgentCore Developer Guide, AWS. https://docs.aws.amazon.com/bedrock-agentcore/latest/devguide/gateway-rate-limits-metrics.html
- Temporal policies. Amazon Bedrock AgentCore Developer Guide, AWS. https://docs.aws.amazon.com/bedrock-agentcore/latest/devguide/policy-temporal.html
- Authoring temporal policies. Amazon Bedrock AgentCore Developer Guide, AWS. https://docs.aws.amazon.com/bedrock-agentcore/latest/devguide/policy-temporal-authoring.html
- Control agent behaviors and cost beyond a single action: new capabilities in Amazon Bedrock AgentCore. AWS Machine Learning Blog, Aug 2026. https://aws.amazon.com/blogs/machine-learning/control-agent-behaviors-and-cost-beyond-a-single-action-new-capabilities-in-amazon-bedrock-agentcore/
- Claude apps gateway spend limits. Claude Code documentation. https://code.claude.com/docs/en/claude-apps-gateway-spend-limits
- Cut costs with Claude Code. LiteLLM documentation. https://docs.litellm.ai/docs/tutorials/claude_code_cut_costs
- Coding agents insights. Amazon CloudWatch User Guide, AWS. https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/coding-agents-insights.html
- Track Amazon Bedrock costs by caller identity with IAM-based cost allocation. AWS Cloud Financial Management Blog. https://aws.amazon.com/blogs/aws-cloud-financial-management/track-amazon-bedrock-costs-by-caller-identity-with-iam-based-cost-allocation/
- Send Claude Code gateway telemetry to CloudWatch. Amazon CloudWatch User Guide, AWS. https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/coding-agents-claude-code-gateway.html
- Multi-provider generative AI gateway on AWS. AWS Solutions Library. https://docs.aws.amazon.com/solutions/multi-provider-generative-ai-gateway-on-aws/
- Anthropic Academy: learn to build with Claude. Anthropic. https://academy.claude.com/
- AWS Skill Builder. Amazon Web Services. https://skillbuilder.aws/
- Settings: available settings. Claude Code documentation. https://code.claude.com/docs/en/settings#available-settings
- Permissions. Claude Code documentation. https://code.claude.com/docs/en/permissions
- TokenUsage. Amazon Bedrock Runtime API Reference, AWS. https://docs.aws.amazon.com/bedrock/latest/APIReference/API_runtime_TokenUsage.html
- AGENTCOST02-BP02: Cost optimize token consumption through efficient prompt engineering. AWS Well-Architected Agentic AI Lens. https://docs.aws.amazon.com/wellarchitected/latest/agentic-ai-lens/agentcost02-bp02.html
- AGENTOPS06: Testing, evaluation, and validation frameworks. AWS Well-Architected Agentic AI Lens. https://docs.aws.amazon.com/wellarchitected/latest/agentic-ai-lens/agentops06.html
- Per-request metadata tagging. Amazon Bedrock User Guide, AWS. https://docs.aws.amazon.com/bedrock/latest/userguide/cost-mgmt-request-metadata.html
- Build custom code-based evaluators in Amazon Bedrock AgentCore. AWS Artificial Intelligence Blog. https://aws.amazon.com/blogs/machine-learning/build-custom-code-based-evaluators-in-amazon-bedrock-agentcore/
- Auto routing. LiteLLM documentation. https://docs.litellm.ai/docs/proxy/auto_routing
- Model configuration. Claude Code documentation. https://code.claude.com/docs/en/model-config
- Maximizing the value of your Claude Code sessions. Anthropic blog, as of Aug 2026. https://claude.com/blog/maximizing-the-value-of-your-claude-code-sessions
- Unit Economics capability. FinOps Foundation (Linux Foundation). https://www.finops.org/framework/capabilities/unit-economics/
- Running a Software Factory Efficiently at Uber Scale. Uber Engineering, Aug 2026. https://www.uber.com/us/en/blog/efficient-software-factory/
- Model lifecycle policy for models launched before 7 September 2026. Amazon Bedrock User Guide, AWS. https://docs.aws.amazon.com/bedrock/latest/userguide/model-lifecycle-legacy.html
- GPT-5.6 Sol model card and pricing. Amazon Bedrock User Guide, AWS. https://docs.aws.amazon.com/bedrock/latest/userguide/model-card-openai-gpt-56-sol.html
- GPT-5.6 Luna model card and pricing. Amazon Bedrock User Guide, AWS. https://docs.aws.amazon.com/bedrock/latest/userguide/model-card-openai-gpt-56-luna.html
- Best practices for Codex. OpenAI. https://learn.chatgpt.com/guides/best-practices
- Custom instructions with AGENTS.md. OpenAI Codex documentation. https://developers.openai.com/codex/agent-configuration/agents-md
- Subagents. OpenAI Codex documentation. https://learn.chatgpt.com/docs/agent-configuration/subagents
- Model Context Protocol configuration. OpenAI Codex documentation. https://developers.openai.com/codex/extend/mcp
- Slash commands. OpenAI Codex documentation. https://developers.openai.com/codex/reference/slash-commands
- Use ChatGPT Work and Codex with Amazon Bedrock. OpenAI Codex documentation. https://developers.openai.com/codex/amazon-bedrock
- Set up OpenTelemetry for OpenAI Codex. Amazon CloudWatch User Guide, AWS. https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/coding-agents-codex.html
- AGENTCOST05-BP01: Establish agent-level reasoning cost tracking and attribution. AWS Well-Architected Agentic AI Lens. https://docs.aws.amazon.com/wellarchitected/latest/agentic-ai-lens/agentcost05-bp01.html
- Developer commands for Codex CLI. OpenAI Codex documentation. https://developers.openai.com/codex/cli/slash-commands
- Track, allocate, and manage your generative AI cost and usage with Amazon Bedrock. AWS Machine Learning Blog. https://aws.amazon.com/blogs/machine-learning/track-allocate-and-manage-your-generative-ai-cost-and-usage-with-amazon-bedrock/
- Data Exports table dictionary for CUR 2.0. AWS Data Exports User Guide. https://docs.aws.amazon.com/cur/latest/userguide/table-dictionary-cur2.html
- Running a Software Factory Efficiently at Uber Scale. Uber Engineering, Aug 2026. https://www.uber.com/au/en/blog/efficient-software-factory/
- Building a cost allocation strategy. AWS Tagging Best Practices whitepaper. https://docs.aws.amazon.com/whitepapers/latest/tagging-best-practices/building-a-cost-allocation-strategy.html
- Get started with AWS Budgets Actions. AWS Cloud Financial Management Blog. https://aws.amazon.com/blogs/aws-cloud-financial-management/get-started-with-aws-budgets-actions/
- Intelligent route: model selection. vLLM Semantic Router documentation. https://vllm-sr.ai/docs/v0.1/tutorials/intelligent-route/model-selection/overview/
- Switchyard: smart model routing. NVIDIA NeMo, GitHub. https://github.com/NVIDIA-NeMo/Switchyard
- Portal by Spotify cut my Claude Code token usage by 90%. Spotify Engineering, Sep 2026. https://engineering.atspotify.com/2026/9/portal-by-spotify-cut-my-claude-code-token-usage-by-90
- Reducing cost and improving performance with Claude Platform. Anthropic, Sep 2026. https://claude.com/blog/reducing-cost-and-improving-performance-with-claude-platform
- Goodnotes Pens the Future by Developing Generative AI Features. AWS Case Study, 2024. https://aws.amazon.com/solutions/case-studies/goodnotes/
- Train a model. Amazon SageMaker AI Developer Guide, AWS. https://docs.aws.amazon.com/sagemaker/latest/dg/train-model.html
- Configuring budget actions. AWS Cost Management User Guide, AWS. https://docs.aws.amazon.com/cost-management/latest/userguide/budgets-controls.html
- Getting started with AWS Cost Anomaly Detection. AWS Cost Management User Guide, AWS. https://docs.aws.amazon.com/cost-management/latest/userguide/getting-started-ad.html
- Requesting a quota increase. Service Quotas User Guide, AWS. https://docs.aws.amazon.com/servicequotas/latest/userguide/request-quota-increase.html
- Quotas for Amazon Bedrock. Amazon Bedrock User Guide, AWS. https://docs.aws.amazon.com/bedrock/latest/userguide/quotas.html
- Deploy managed settings. Claude Code Docs, Anthropic. https://code.claude.com/docs/en/managed-settings
- What is the Model Context Protocol (MCP)? Model Context Protocol project. https://modelcontextprotocol.io/introduction
- Claude Code hooks: best examples with configs. AY Automate (third-party practitioner). https://www.ayautomate.com/blog/best-claude-code-hooks
- Set up Claude Code in a monorepo or large codebase. Claude Code Docs, Anthropic. https://code.claude.com/docs/en/large-codebases
- Context engineering: memory, compaction, and tool clearing. Claude Cookbook, Anthropic. https://platform.claude.com/cookbook/tool-use-context-engineering-context-engineering-tools
- Models at a glance. Amazon Bedrock User Guide, AWS. https://docs.aws.amazon.com/bedrock/latest/userguide/model-cards.html
- Claude Sonnet 5 model card, Service Tiers. Amazon Bedrock User Guide, AWS. https://docs.aws.amazon.com/bedrock/latest/userguide/model-card-anthropic-claude-sonnet-5.html#model-card-anthropic-claude-sonnet-5-tiers
- GPT-5.6 Sol model card, Service Tiers and pricing. Amazon Bedrock User Guide, AWS. https://docs.aws.amazon.com/bedrock/latest/userguide/model-card-openai-gpt-56-sol.html
- Supported Regions and models for batch inference. Amazon Bedrock User Guide, AWS. https://docs.aws.amazon.com/bedrock/latest/userguide/batch-inference-supported.html
- Construct and store reusable prompts with Prompt management in Amazon Bedrock. Amazon Bedrock User Guide, AWS. https://docs.aws.amazon.com/bedrock/latest/userguide/prompt-management.html
- Optimize a prompt. Amazon Bedrock User Guide, AWS. https://docs.aws.amazon.com/bedrock/latest/userguide/prompt-management-optimize.html
- GENOPS03-BP01: Implement prompt template management. AWS Well-Architected Generative AI Lens. https://docs.aws.amazon.com/wellarchitected/latest/generative-ai-lens/genops03-bp01.html
- Prompting best practices for Claude 4 models. Anthropic documentation. https://platform.claude.com/docs/en/build-with-claude/prompt-engineering/claude-4-best-practices
- Amazon Bedrock adds support for six fully-managed open weights models. AWS What's New, 10 February 2026. https://aws.amazon.com/about-aws/whats-new/2026/02/amazon-bedrock-adds-support-six-open-weights-models/
- Set up OpenAI ChatGPT Codex with LiteLLM on Amazon ECS and Amazon Bedrock. AWS Machine Learning Blog, 3 September 2026. https://aws.amazon.com/blogs/machine-learning/set-up-openai-chatgpt-codex-with-litellm-on-amazon-ecs-and-amazon-bedrock/
- sample-litellm-bedrock-gateway-on-eks, a LiteLLM to Amazon Bedrock model gateway on Amazon EKS. AWS Samples on GitHub. https://github.com/aws-samples/sample-litellm-bedrock-gateway-on-eks
- Benchmarking customized models on Amazon Bedrock using LLMPerf and LiteLLM. AWS Machine Learning Blog, 13 March 2025. https://aws.amazon.com/blogs/machine-learning/benchmarking-customized-models-on-amazon-bedrock-using-llmperf-and-litellm/
- Terminal-Bench 2.1. Terminal-Bench news. https://www.tbench.ai/news/terminal-bench-2-1
- Does your harness matter more than your model? aistack blog, imec. https://aistack.imec-int.com/blog/harness-cost
- Harness or Model? Isolating the Harness Effect. arXiv:2609.11987, September 2026. https://arxiv.org/abs/2609.11987
- CAISI's assessment of Z.ai's GLM-5.3 cyber capabilities. Center for AI Standards and Innovation, NIST, 17 September 2026. https://www.nist.gov/news-events/news/2026/09/caisis-assessment-zais-glm-53-cyber-capabilities
- GLM-5.3 and the spread of advanced cyber capabilities. Anthropic Frontier Red Team, 29 September 2026. https://www.anthropic.com/research/glm-5-3-and-the-spread-of-advanced-cyber-capabilities
- Terminal-Bench leaderboard (model and agent pairs by resolution rate, cost and tokens). Stanford, Harbor and Laude Institute; accessed 19 October 2026. https://www.tbench.ai/
- Chat Completions API. Amazon Bedrock User Guide, AWS; accessed 19 October 2026. https://docs.aws.amazon.com/bedrock/latest/userguide/inference-chat-completions.html
- Claude Haiku 5.5 model card (features, pricing and long-context note). Amazon Bedrock User Guide, AWS; accessed 5 November 2026. https://docs.aws.amazon.com/bedrock/latest/userguide/model-card-anthropic-claude-haiku-5-5.html
- GPT-6 Sol model card (pricing, short and long context). Amazon Bedrock User Guide, AWS; accessed 5 November 2026. https://docs.aws.amazon.com/bedrock/latest/userguide/model-card-openai-gpt-6-sol.html
- GPT-6.1 Sol model card (features and pricing). Amazon Bedrock User Guide, AWS; accessed 5 November 2026. https://docs.aws.amazon.com/bedrock/latest/userguide/model-card-openai-gpt-6-1-sol.html
- Claude Sonnet 5.5 model card (feature support). Amazon Bedrock User Guide, AWS; accessed 5 November 2026. https://docs.aws.amazon.com/bedrock/latest/userguide/model-card-anthropic-claude-sonnet-5-5.html
- AWS Price List bulk offer, AmazonBedrockFoundationModels (offer version 20261120083414, us-east-1 Standard rows for Claude Sonnet 5.5 and Claude Haiku 5.5, Claude Opus 5.5 cache-read rows and Claude Fable 5.2 Global rows). AWS; accessed 23 November 2026. https://pricing.us-east-1.amazonaws.com/offers/v1.0/aws/AmazonBedrockFoundationModels/current/index.json
- AWS Cost Anomaly Detection supports third-party models on Amazon Bedrock. AWS What’s New, August 2026; accessed 5 November 2026. https://aws.amazon.com/about-aws/whats-new/2026/08/aws-cost-anomaly-detection-bedrock-3P/
- AWS Cost Explorer, Budgets, and Dashboards now support Amazon Bedrock product attributes. AWS What’s New, October 2026; accessed 5 November 2026. https://aws.amazon.com/about-aws/whats-new/2026/10/aws-bedrock-attributes-in-cost-explorer/
- Best practices for cost attribution. Amazon Bedrock User Guide, AWS; accessed 5 November 2026. https://docs.aws.amazon.com/bedrock/latest/userguide/cost-mgmt-best-practices.html
- Set a cap on overage spend, or pre-pay for it. Kiro Blog; accessed 5 November 2026. https://kiro.dev/blog/cap-prepay-overage/
- Introducing advanced tool use on the Claude Developer Platform (Tool Search Tool, Programmatic Tool Calling). Anthropic; accessed 5 November 2026. https://www.anthropic.com/research/advanced-tool-use
- Implementing programmatic tool calling on Amazon Bedrock. AWS Machine Learning Blog; accessed 5 November 2026. https://aws.amazon.com/blogs/machine-learning/implementing-programmatic-tool-calling-on-amazon-bedrock/
- Amazon Bedrock adds reinforcement fine-tuning simplifying how developers build smarter, more accurate AI models. AWS News Blog, December 2025; accessed 5 November 2026. https://aws.amazon.com/blogs/aws/improve-model-accuracy-with-reinforcement-fine-tuning-in-amazon-bedrock/
- Reinforcement fine-tuning on Amazon Bedrock with OpenAI-Compatible APIs: a technical walkthrough. AWS Machine Learning Blog; accessed 5 November 2026. https://aws.amazon.com/blogs/machine-learning/reinforcement-fine-tuning-on-amazon-bedrock-with-openai-compatible-apis-a-technical-walkthrough/
- Customize Amazon Nova models with Amazon Bedrock fine-tuning. AWS Machine Learning Blog; accessed 5 November 2026. https://aws.amazon.com/blogs/machine-learning/customize-amazon-nova-models-with-amazon-bedrock-fine-tuning/
- Claude Opus 5.5 model card (reasoning and effort default). Amazon Bedrock User Guide, AWS; accessed 5 November 2026. https://docs.aws.amazon.com/bedrock/latest/userguide/model-card-anthropic-claude-opus-5-5.html
- Adaptive thinking. Amazon Bedrock User Guide, AWS; accessed 5 November 2026. https://docs.aws.amazon.com/bedrock/latest/userguide/claude-messages-adaptive-thinking.html
- Build enterprise search for agents with Amazon Bedrock Managed Knowledge Base. AWS Machine Learning Blog; accessed 5 November 2026. https://aws.amazon.com/blogs/machine-learning/build-enterprise-search-for-agents-with-amazon-bedrock-managed-knowledge-base/
- Building cost-effective RAG applications with Amazon Bedrock Knowledge Bases and Amazon S3 Vectors. AWS Machine Learning Blog, July 2025; accessed 5 November 2026. https://aws.amazon.com/blogs/machine-learning/building-cost-effective-rag-applications-with-amazon-bedrock-knowledge-bases-and-amazon-s3-vectors/
- Configure and customize queries and response generation. Amazon Bedrock User Guide, AWS; accessed 5 November 2026. https://docs.aws.amazon.com/bedrock/latest/userguide/kb-test-config.html
- Improve the relevance of query responses with a reranker model. Amazon Bedrock User Guide, AWS; accessed 5 November 2026. https://docs.aws.amazon.com/bedrock/latest/userguide/rerank.html
- AWS Price List bulk offer, AmazonBedrock (offer version 20261111013037, Amazon Rerank 1.0 search units, us-west-2). AWS; accessed 23 November 2026. https://pricing.us-east-1.amazonaws.com/offers/v1.0/aws/AmazonBedrock/current/index.json
- Sync your data with your Amazon Bedrock knowledge base. Amazon Bedrock User Guide, AWS; accessed 5 November 2026. https://docs.aws.amazon.com/bedrock/latest/userguide/kb-data-source-sync-ingest.html
- Compaction. Amazon Bedrock User Guide, AWS; accessed 5 November 2026. https://docs.aws.amazon.com/bedrock/latest/userguide/claude-messages-compaction.html
- Shorten prompts (Advanced Prompt Optimization). Amazon Bedrock User Guide, AWS; accessed 5 November 2026. https://docs.aws.amazon.com/bedrock/latest/userguide/advanced-prompt-optimization-shorten.html
- Amazon Bedrock Advanced Prompt Optimization now supports prompt shortening. AWS What’s New, October 2026; accessed 5 November 2026. https://aws.amazon.com/about-aws/whats-new/2026/10/bedrock-prompt-optimization-shortening/
- Introducing explicit prompt caching for OpenAI models on Amazon Bedrock. AWS Machine Learning Blog; accessed 5 November 2026. https://aws.amazon.com/blogs/machine-learning/introducing-explicit-prompt-caching-for-openai-gpt-5-6-models-on-amazon-bedrock/
- Amazon Bedrock (service tiers, Provisioned Throughput, Guardrails, Advanced Prompt Optimization). Generative AI inference architecture and best practices on AWS, AWS Prescriptive Guidance; accessed 5 November 2026. https://docs.aws.amazon.com/prescriptive-guidance/latest/gen-ai-inference-architecture-and-best-practices-on-aws/amazon-bedrock.html
- Amazon Bedrock now supports observability of First Token Latency and Quota Consumption. AWS What’s New, March 2026; accessed 5 November 2026. https://aws.amazon.com/about-aws/whats-new/2026/03/amazon-bedrock-observability-ttft-quota/
- Introducing FOCUS 1.4: Invoice Reconciliation, Commitment Details, and Specification Maturity. FinOps Foundation, June 2026; accessed 5 November 2026. https://www.finops.org/insights/introducing-focus-1-4/
- Migrating from FOCUS 1.0 to FOCUS 1.2. AWS Data Exports User Guide, AWS; accessed 5 November 2026. https://docs.aws.amazon.com/cur/latest/userguide/table-dictionary-focus-1-2-migrating.html
- Do More Agents Help? Evaluating Accuracy and Cost in LLM Multi-Agent Workflows. arXiv:2606.05670 (preprint, v2, 9 October 2026); accessed 5 November 2026. https://arxiv.org/abs/2606.05670
- How Do AI Agents Spend Your Money? Analyzing and Predicting Token Consumption in Agentic Coding Tasks. arXiv:2604.22750 (preprint, v3, 2 October 2026); accessed 5 November 2026. https://arxiv.org/abs/2604.22750
- Announcing consumption-based pricing for short-term memory in Amazon Bedrock AgentCore. AWS What’s New, October 2026; accessed 5 November 2026. https://aws.amazon.com/about-aws/whats-new/2026/10/agentcore-memory-consumption-based-pricing/
- Lower cost and latency for AI using Amazon ElastiCache as a semantic cache with Amazon Bedrock. AWS Database Blog; accessed 5 November 2026. https://aws.amazon.com/blogs/database/lower-cost-and-latency-for-ai-using-amazon-elasticache-as-a-semantic-cache-with-amazon-bedrock/
- Implementing a semantic cache with ElastiCache for Valkey. Amazon ElastiCache User Guide, AWS; accessed 5 November 2026. https://docs.aws.amazon.com/AmazonElastiCache/latest/dg/semantic-caching-implementation.html
- Claude Sonnet 4.6 model card (Service Tiers). Amazon Bedrock User Guide, AWS; accessed 5 November 2026. https://docs.aws.amazon.com/bedrock/latest/userguide/model-card-anthropic-claude-sonnet-4-6.html
- Claude Opus 4.8 model card (Service Tiers). Amazon Bedrock User Guide, AWS; accessed 5 November 2026. https://docs.aws.amazon.com/bedrock/latest/userguide/model-card-anthropic-claude-opus-4-8.html
- GPT-6 Astra model card (Service Tiers and Ultrafast pricing). Amazon Bedrock User Guide, AWS; accessed 5 November 2026. https://docs.aws.amazon.com/bedrock/latest/userguide/model-card-openai-gpt-6-astra.html
- Inference profiles with limited model selection. Amazon Bedrock User Guide, AWS; accessed 5 November 2026. https://docs.aws.amazon.com/bedrock/latest/userguide/inference-profiles-limited-model-selection.html
- AWS Price List bulk offer, AmazonBedrock (offer version 20261111013037, us-east-1 Guardrails text units, InvokeGuardrailChecks units and Bedrock Web Search tool calls). AWS; accessed 23 November 2026. https://pricing.us-east-1.amazonaws.com/offers/v1.0/aws/AmazonBedrock/current/index.json
- Amazon Bedrock Guardrails now supports Standard tier for contextual grounding checks. AWS What’s New, October 2026; accessed 5 November 2026. https://aws.amazon.com/about-aws/whats-new/2026/10/bedrock-guardrails-grounding-standard/
- Incident Report: Prompt Cache Invalidation for Claude Code on Bedrock Invoke. LiteLLM blog, July 2026; accessed 8 November 2026. https://docs.litellm.ai/blog/bedrock-invoke-prompt-caching-incident
- Token Economics: The Atomic Unit of AI Value. FinOps Foundation (Linux Foundation), May 2026; accessed 8 November 2026. https://www.finops.org/insights/token-economics-the-atomic-unit-of-ai-value/
- GPT-6.1 Terra model card (pricing and service tiers). Amazon Bedrock User Guide, AWS; accessed 9 November 2026. https://docs.aws.amazon.com/bedrock/latest/userguide/model-card-openai-gpt-6-1-terra.html
- Quotas for the bedrock-runtime endpoint (requesting a quota increase). Amazon Bedrock User Guide, AWS; accessed 9 November 2026. https://docs.aws.amazon.com/bedrock/latest/userguide/quotas-runtime.html
- Capacity and Performance (batch processing limits). Amazon Bedrock User Guide, AWS; accessed 9 November 2026. https://docs.aws.amazon.com/bedrock/latest/userguide/capacity-limits-cost-optimization.html
- OpenAI GPT-6.1 Terra is now generally available on Amazon Bedrock. AWS What’s New, October 2026; accessed 9 November 2026. https://aws.amazon.com/about-aws/whats-new/2026/10/openai-gpt-6-1-terra-on-amazon-bedrock/
- Share credits across your team with credit pooling. Kiro changelog; accessed 9 November 2026. https://kiro.dev/changelog/general/credit-pooling/
- Share Kiro credits across your team with credit pooling. Kiro Blog; accessed 9 November 2026. https://kiro.dev/blog/credit-pooling/
- Tokenomics for coding agents: benchmark cost and quality on your own code. AWS Cloud Financial Management Blog; accessed 9 November 2026. https://aws.amazon.com/blogs/aws-cloud-financial-management/tokenomics-for-coding-agents-benchmark-cost-and-quality-on-your-own-code/
- FOCUS 1.5 release scope: confirmed, in review and deferred. FinOps Foundation; accessed 9 November 2026, re-checked 16 November 2026. https://focus.finops.org/focus-1-5-release-scope/
- Getting started with Tokenomics on AWS. AWS Cloud Financial Management Blog; accessed 9 November 2026. https://aws.amazon.com/blogs/aws-cloud-financial-management/aws-tokenomics-strategy/
- Token Reduction Is Not Cost Reduction. arXiv:2607.12161 (preprint, v5, 12 August 2026); accessed 9 November 2026. https://arxiv.org/abs/2607.12161
- How MoEngage turned over 400 APIs into agent tools with AgentCore Gateway. AWS Machine Learning Blog; accessed 9 November 2026. https://aws.amazon.com/blogs/machine-learning/how-moengage-turned-over-400-apis-into-agent-tools-with-agentcore-gateway/
- AgentCore runtime instances are now generally available. AWS What’s New, August 2026; accessed 9 November 2026. https://aws.amazon.com/about-aws/whats-new/2026/08/aws-bedrock-agentcore-runtime-instances-generally-available/
- Announcing Web Answer on Amazon Bedrock AgentCore. AWS What’s New, November 2026; accessed 9 November 2026. https://aws.amazon.com/about-aws/whats-new/2026/11/web-answer-amazon-bedrock/
- Amazon Bedrock launches Web Search for OpenAI GPT models. AWS What’s New, August 2026; accessed 9 November 2026. https://aws.amazon.com/about-aws/whats-new/2026/08/amazon-bedrock-web/
- Use the InvokeGuardrailChecks API in your application. Amazon Bedrock User Guide, AWS; accessed 9 November 2026. https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails-use-invoke-guardrail-checks.html
- Run agents securely and efficiently with the next-generation AgentCore runtime. AWS Machine Learning Blog, November 2026; accessed 16 November 2026. https://aws.amazon.com/blogs/machine-learning/run-agents-securely-and-efficiently-with-the-next-generation-agentcore-runtime/
- AWS Price List bulk offer, AmazonBedrockAgentCore (offer version 20261120191134, us-east-1 Runtime v2 committed-baseline and Policy rows, and Global Web Search Tool free-tier rows). AWS; accessed 23 November 2026. https://pricing.us-east-1.amazonaws.com/offers/v1.0/aws/AmazonBedrockAgentCore/current/index.json
- The next generation AgentCore runtime is now the default. AWS What’s New, November 2026; accessed 16 November 2026. https://aws.amazon.com/about-aws/whats-new/2026/11/new-agentcore-runtime-default/
- GPT-6 Luna model card (pricing and service tiers). Amazon Bedrock User Guide, AWS; accessed 16 November 2026. https://docs.aws.amazon.com/bedrock/latest/userguide/model-card-openai-gpt-6-luna.html
- Claude Fable 5.2 model card (lifecycle and service tiers). Amazon Bedrock User Guide, AWS; accessed 16 November 2026. https://docs.aws.amazon.com/bedrock/latest/userguide/model-card-anthropic-claude-fable-5-2.html
- OpenAI Codex on Amazon Bedrock. AWS Machine Learning Blog, November 2026; accessed 16 November 2026. https://aws.amazon.com/blogs/machine-learning/openai-codex-on-amazon-bedrock/
- Managing Amazon Bedrock costs end to end: a playbook for FinOps and platform teams. AWS Machine Learning Blog, October 2026; accessed 16 November 2026. https://aws.amazon.com/blogs/machine-learning/managing-amazon-bedrock-costs-end-to-end-a-playbook-for-finops-and-platform-teams/
- FinOps for AI Overview. FinOps Foundation (Linux Foundation); accessed 16 November 2026. https://www.finops.org/wg/finops-for-ai-overview/
- Model governance. Kiro documentation, updated 11 November 2026; accessed 16 November 2026. https://kiro.dev/docs/enterprise/governance/model/
- Billing. Kiro documentation, updated 1 November 2026; accessed 16 November 2026. https://kiro.dev/docs/billing/
- GLM 5.3 model card (lifecycle and access). Amazon Bedrock User Guide, AWS; accessed 22 November 2026. https://docs.aws.amazon.com/bedrock/latest/userguide/model-card-zai-glm-5-3.html
- Cost attribution and controls for AI developer and productivity tools on Amazon Bedrock. AWS Machine Learning Blog, 13 November 2026; accessed 23 November 2026. https://aws.amazon.com/blogs/machine-learning/cost-attribution-and-controls-for-ai-developer-and-productivity-tools-on-amazon-bedrock/
- Claude Code v2.1.328 release notes. Anthropic, GitHub, 19 November 2026. https://github.com/anthropics/claude-code/releases/tag/v2.1.328
- Permission modes (auto mode, classifier model and server-side review). Claude Code documentation; accessed 22 November 2026. https://code.claude.com/docs/en/permission-modes
- Auto mode classifier request charges. Claude Code documentation; accessed 22 November 2026. https://code.claude.com/docs/en/auto-mode-classifier-billing
- GPT-6.2 Astra model card (pricing and Ultrafast promotion). Amazon Bedrock User Guide, AWS; launched 17 November 2026; accessed 22 November 2026. https://docs.aws.amazon.com/bedrock/latest/userguide/model-card-openai-gpt-6-2-astra.html
- GPT-6.2 Sol model card (pricing and service tiers). Amazon Bedrock User Guide, AWS; launched 17 November 2026; accessed 22 November 2026. https://docs.aws.amazon.com/bedrock/latest/userguide/model-card-openai-gpt-6-2-sol.html
- Amazon Bedrock AgentCore harness adds Strands harness defaults, built-in tools and lifecycle hooks. AWS Machine Learning Blog, 19 November 2026; accessed 23 November 2026. https://aws.amazon.com/blogs/machine-learning/amazon-bedrock-agentcore-harness-adds-strands-harness-defaults-built-in-tools-and-lifecycle-hooks/
- Amazon Bedrock AgentCore now offers free monthly web search queries. AWS What’s New, 17 November 2026; accessed 23 November 2026. https://aws.amazon.com/about-aws/whats-new/2026/11/bedrock-agentcore-free-web-search-queries/