AI Explainers Infrastructure

Bedrock Inference Cost: Four Request Settings That Change Your Bill

Cache duration, service tier, reasoning effort, and maxTokens can change Bedrock inference cost without touching the model or prompt, per AWS guidance.

Four dials representing settings that affect Bedrock inference cost, linked to token blocks and a coin
AI-generated editorial illustration.

Your cloud AI bill can keep growing even after you have tightened your prompts and trimmed your application logic. The reason may sit in settings attached to each request, not in the model or the prompt. For Amazon Bedrock, AWS’s managed service for calling AI models, four such settings can change Bedrock inference cost: cache duration, service tier, reasoning effort, and a limit called maxTokens.

AWS describes these in a machine learning blog post. This guide walks through the same four choices in plain terms.

What is inference, and where does the cost come from?

Inference is the act of sending a request to a model and getting an answer back. Models process text in small units called tokens, and a bill is mostly a count of those tokens multiplied by a rate.

AWS explains that every Amazon Bedrock response carries usage metadata. Input and output tokens bill at the rate for the model and tier that served the request. Cache reads and writes use their own token counters, and reasoning tokens count as output tokens. That last detail matters later: a model that thinks longer produces more billable output.

Because the bill depends on both how many tokens are processed and the rate applied to them, a request-level setting can move either number.

How does prompt cache duration affect cost?

Many applications send the same opening material with every request: system instructions, tool definitions, or a reference document. Prompt caching lets the service remember that repeated opening so it does not have to process it again. AWS’s documentation describes caching as an optional feature on supported models that can reduce response latency and input token costs.

The documentation gives a familiar example: a chatbot where users upload a document and ask several questions about it. Without caching, the model reprocesses the document on every question. With caching, later questions that contain the same document skip that work.

Two kinds of caching

AWS’s documentation lists two types. Implicit caching has Bedrock and the model automatically try to reuse eligible prompt beginnings, with no special markers in the request. The documentation calls it best effort: repeating an identical prompt does not guarantee a cache hit. It also advises keeping static content at the start of the prompt and changing content at the end, which raises the odds of an exact match.

Explicit caching means you opt in by adding model-specific cache controls, called checkpoints, that mark which part of the prompt to store. The prompt beginning must stay identical between requests, because any change causes a miss. Checkpoints also have a minimum size, which the documentation says currently ranges from 512 to 4,096 tokens depending on the model. If a checkpoint is added before the prompt reaches that minimum, the request still succeeds but nothing is cached.

The duration choice applies to explicit caching. The cache has a time to live (TTL), which is how long stored content survives, and the documentation says the clock resets each time there is a cache hit. If no hit happens within the window, the cache expires and the next request pays to process the content again.

Why a longer duration is not automatically cheaper

AWS’s blog post says the prompt caching guide lists 5-minute and 1-hour TTL values for supported Anthropic models, plus a 30-minute minimum TTL for supported GPT-5.6 models. Support and API fields depend on the model, so the current support matrix is the place to check before choosing.

The pricing is where the tradeoff appears. AWS notes that its pricing page lists separate rates for 5-minute writes, 1-hour writes, and cache reads. For Anthropic Claude Sonnet 5 and Claude Opus 5 on Bedrock, a 5-minute write costs 1.25 times the normal input rate, a 1-hour write costs 2 times, and a cache read costs 0.1 times. So a longer cache costs more to create but keeps paying back if requests keep arriving inside the window. The blog says these rates set the break-even point between the options, and the exact calculation is in the full post.

What does a service tier change?

The second choice is the service tier, which affects the rate applied to your tokens. AWS states that input and output tokens bill at the rate for the model and tier that served the request. AWS’s post does not detail the individual tiers or their prices, so the current pricing page is the place to look for tier names and rate differences.

The practical point is that two identical requests can cost different amounts if they are served at different tiers. Checking which tier actually served a request, using the response metadata, is one of the verification steps AWS recommends.

How does reasoning effort change the bill?

Some models can reason before answering, working through a problem in intermediate steps. AWS explains that reasoning tokens count as output tokens, so more reasoning means more billable output even when the visible answer is short.

Reasoning effort is a request setting that tells such a model how much thinking to do. A low setting can be enough for simple tasks, while hard problems may need more. AWS points to a low-effort folder in its cost management workshop repository for samples covering this setting and maxTokens. Support for the setting varies by model, and each sample sets its own model ID that must be changed to match the model you call.

What does maxTokens do?

The maxTokens setting caps how many tokens the model may produce in a response. Since output tokens bill at the tier rate and reasoning tokens count as output, the cap places a ceiling on the output side of a single request. A lower cap limits the cost of a runaway or overly long answer, and it also risks cutting an answer short, so the right value depends on what the task needs.

How do these choices compare with bigger cost levers?

These four settings are small adjustments inside a request. AWS separates them from broader decisions such as model selection, batch inference, routing, and distillation, and it points readers to a separate post on effective cost optimization strategies for Amazon Bedrock for those. In other words, the four request settings are tuning that happens after the larger architecture choices are already made, which is why they can still matter on a bill that prompt and application tuning has already trimmed.

A worked example: testing one change at a time

AWS’s post is built around testing each choice and then confirming the effect in data. A realistic workflow based on that approach looks like this for an assistant that answers questions about a long uploaded policy document:

  • Pick one setting to change, such as the cache duration, and leave the model and prompt as they are.
  • Send a representative batch of requests and read the usage metadata on each response, including the separate cache read and cache write token counts.
  • Compare those counts across the settings you tried, using the rate multipliers for your model to see which option costs less for your traffic pattern.
  • Confirm the result later in logs and billing data, since AWS recommends verifying from all three rather than from one.

AWS supplies runnable notebooks for the caching steps, named Mixed TTL Caching and Tenant Isolation with Prompt Caching, in its Amazon Bedrock Samples repository. The tenant isolation notebook points to a concern for shared applications: cached content from one customer should not be reused for another, so cache setup deserves care in multi-customer products.

Checking that a change actually saved money

Because every choice depends on the model and workload, AWS stresses measurement over assumption. These are the places its post says to look:

  • Response metadata: the per-request counts of input, output, cache read, and cache write tokens.
  • Logs: a record of which settings each request used, so a cost change can be tied to a setting change.
  • Billing data: the final charges, which confirm whether the metadata-level savings showed up on the invoice.
  • The model’s own documentation: support, field names, and cache minimums differ by model and by AWS Region, and AWS directs readers to its model availability page.

In practice, the main caution is that a setting that helped one workload can do nothing or cost more on another. A 1-hour cache only pays off when requests keep reusing the same prefix, a low reasoning effort can reduce answer quality on hard tasks, and a tight maxTokens can truncate useful output. Current public documentation should be checked for each model before any change goes into production.

Sources