Sarvaswa AI Labs
12 minute read, September 2026

Cost-aware model routing for AI agents on AWS: an insurance claims walkthrough with Bedrock and SageMaker AI.

Sarvaswa AI LabsArchitecture essay

A chatbot makes one model call per conversation. An AI agent that processes an insurance claim makes nine, across a dozen steps and eighteen tool calls, before a person sees the result. If every one of those calls goes to a frontier model, you are paying frontier prices for work a lookup table could do.

This post walks through a single motor claim, step by step, and shows where a cost-aware router sends each piece of work: to deterministic code, to a small fine-tuned model on Amazon SageMaker AI, to a low-cost foundation model on Amazon Bedrock, to a strong reasoning model, or to a human adjuster. The claim is invented. The architecture is the one we build.

Diagram of cost-aware model routing for insurance claims. A claim with photos, documents, policy data and fraud signals enters an intelligent router that scores complexity, fraud risk, claim value and model confidence, then sends work to one of four paths ordered by cost: business rules on a deterministic engine, a domain small language model on Amazon SageMaker, a foundation model on Amazon Bedrock, or a human adjuster.
Right model, right task, right cost. Each task takes the cheapest path that is capable of it, and the expensive paths are reserved for the work that justifies them.

The architecture that burns money

A customer uploads photos of a damaged car and writes: “I had an accident yesterday. The rear bumper and tail light are damaged. I wasn't at fault. Can you process my claim?”

The first version of most claims agents looks like this:

  1. Customer

  2. Extract claim information

    Powerful LLM

  3. Check policy

    Powerful LLM

  4. Analyse damage

    Powerful LLM

  5. Assess coverage

    Powerful LLM

  6. Draft decision

    Powerful LLM

Every step, trivial or not, is billed at frontier-model prices.

It works. It also spends the same money on classifying a bumper as it does on reasoning about conflicting evidence in a suspected fraud. Several of those steps are trivial, one or two are hard, and the architecture cannot tell the difference. At a hundred thousand claims a month the bill for the trivial steps dominates.

The cost-aware architecture

The fix is a routing layer between the agent and the models. Before any step runs, the router scores the task and picks the cheapest path that can do it well.

  1. Claims agent

    Customer or adjuster request

  2. Task and model router

    complexity, risk, confidence, cost, latency

  3. Deterministic

    Code or API, no model

  4. Small model

    SageMaker AI SLM, or low-cost Bedrock FM

  5. Strong model

    Bedrock reasoning FM, only when triggered

  6. Human adjuster

    Sensitive and, high-risk decisions

  7. Tools, APIs, retrieval

    Policy DB, claims DB, fraud APIs

  8. Claims workflow

Five rungs, not two. The router picks the cheapest path that is capable of the task.

Notice that the ladder has five rungs, not two. Most writing on model routing frames it as cheap model versus expensive model. In an enterprise agent the more important routes sit at the ends of the ladder.

RouteWhat handles itTypical work
Route 0Deterministic code or an APIPolicy lookup, identity check, limits, dates, validation
Route 1Small model, often fine-tuned on SageMaker AIClassification, extraction, document typing, severity, fraud flags
Route 2Low-cost foundation model on BedrockStraightforward reasoning with a checkable answer, drafting, summaries
Route 3Strong reasoning model on BedrockConflicting evidence, ambiguous coverage, high financial exposure
Route 4Human adjusterSensitive, high-risk or regulated final decisions

One claim, step by step

Here is what the router does with our rear-bumper claim as it moves through the agent.

Step 1: classify the claim

The system has: rear bumper damaged, tail light broken, no bodily injury, another driver involved, police report available. The task is a classification with a small, known label set.

Output

claim_type
auto_collision
severity
low
bodily_injury
false

Router decision

Complexity
Low
Risk
Low
Reasoning
Low

Route 1: small model

A SageMaker AI classifier or a low-cost Bedrock model.

This is exactly the traffic to keep away from a frontier model. A classifier fine-tuned on a few thousand labelled claims will do it faster, cheaper and more consistently.

Step 2: extract the documents

The customer uploaded a driving licence, the police report, a repair estimate, the policy document and three photographs. The agent needs structured fields out of them.

Output

policy_number
IN-928331
vehicle
Honda Civic 2025
incident_date
2026-09-29
estimated_repair
1,840
police_report
true

Router decision

Task
Structured extraction
Complexity
Low

Route 1: inexpensive model

With a schema the output must satisfy.

Step 3: look up the policy

Is collision damage covered under policy IN-928331? This should not involve a language model at all.

Output

coverage
Comprehensive collision
deductible
500
limit
35,000

Router decision

Source
Policy API
Model calls
None

Route 0: deterministic

Cached and audited. No token generated.

Every fact a system of record can answer is a fact the model should never be asked to guess. It is cheaper, and it is the only way the answer is defensible later.

Step 4: reason about coverage

Now the agent has a repair estimate, a deductible, an active policy on the incident date, and photographs consistent with the description. It needs to combine them.

Output

coverage_status
likely_covered
estimated_insurer_payment
1,340

Router decision

Complexity
Medium
Risk
Medium
Confidence
High

Route 2: competent low-cost model

With deterministic validation of the arithmetic afterwards.

The model reasons; code checks the numbers. That pairing is the pattern for every medium-risk step: let the model do the synthesis, never let it be the last word on a figure.

Step 5: something unusual appears

The damage-analysis step notices that one photograph's metadata is three months old, another looks previously submitted, the repair estimate is well above benchmark, and a prior claim exists for similar damage. The reasoning requirement has changed completely.

Output

task
claim_reasoning
fraud_signals
4
conflicting_evidence
true
financial_exposure
17,800

Router decision

Complexity
High
Risk
High
Financial impact
High
Conflicting evidence
Yes

Route 3: strongest reasoning model on Bedrock

Now spending more is justified. The strong model reads the claim statement, the policy conditions, previous claims, photo metadata, the repair estimate, vehicle history, fraud rules and the police report, and returns:

Decision

manual_review_required

Reasons

  • Photograph predates the reported incident
  • Possible duplicate damage
  • Repair estimate differs significantly from benchmark

Recommended actions

  • Request the original image
  • Verify the repair shop
  • Send the claim to SIU review

Route 4: human adjuster, with the reasoning attached

The expensive model ran once, at the one point where extra reasoning had economic value, and even then it did not decide. It recommended, and a person decides.

Why agents make this matter more than chatbots

A traditional chatbot makes one model call. Look at what one claim generates inside an agent:

Agent operationTier without routingTier with routing
Intent detectionFrontierSmall
Claim classificationFrontierSmall
Document extractionFrontierSmall
Policy lookupFrontierNo model
Customer identity checkFrontierNo model
Damage categorisationFrontierSmall or vision model
Coverage reasoningFrontierMedium
Fraud triageFrontierSmall
Complex fraud reasoningFrontierStrong, only when triggered
Customer emailFrontierSmall
Claim summaryFrontierSmall
Escalation explanationFrontierMedium

Twelve operations. Without routing, eleven of them hit the premium model. With routing, seven go to a small model, two go to deterministic code, one goes to a medium model, and one goes to the strong model only when the fraud triage triggers it.

1

customer interaction

12

agent steps

18

tool calls

9

model calls

40,000+

tokens per claim

At a hundred thousand claims a month, that is nine hundred thousand inference calls.

At that volume a routing decision that moves one step from the strong tier to the small tier is not a rounding error. It is the difference between an agent the finance team approves and one it does not.

The router is a risk model, not a cost switch

For an insurer, easy-goes-small and hard-goes-big is not enough. Task complexity is one input among several, and some of the others matter more.

Routing score, inputs

Task complexityClaim valueRegulatory riskFraud riskEvidence conflictModel confidence from the previous stepPrevious agent confidenceTool failure state

Two claims make the point.

SignalClean claimDisputed claim
Claim valueUnder 2,000150,000
Bodily injuryNoneYes
Fraud indicatorsNoneSeveral
CoverageClearAmbiguous
EvidenceConsistentConflicting witness statements
ConfidenceAbove 0.95Low
RouteSmall model, automated processingStrong model, then mandatory human approval

The router is allocating intelligence according to risk, and cost falls out of that as a consequence. That framing also answers the governance question: the same score that sends a claim to the strong model is the score that sends it to a person.

Where SageMaker AI and Bedrock each fit

Having both services in one architecture is what makes the ladder real rather than theoretical.

  1. Claim request

  2. Cost-aware model router

  3. SageMaker AI

    Fine-tuned insurance SLM, Route 1, high volume

  4. Bedrock

    Low-cost foundation model, Route 2

  5. Bedrock

    Strong reasoning model, Route 3

  6. Agent workflow

SageMaker AI carries the narrow, high-volume work. Bedrock carries the generative and reasoning steps, with the tier chosen per call.
  • SageMaker AI is where the high-volume, narrow tasks live. A small model fine-tuned on the insurer's own claims handles claim type, document type, coverage category, severity, fraud indicators and the routing classification itself. These tasks run thousands of times a day, need consistency more than creativity, and do not need a general-purpose model. Training and evaluation run as SageMaker AI jobs against reviewer labels, so accuracy is measured rather than assumed. Our fine-tuning guide covers when a small trained model beats a prompt.
  • Amazon Bedrock is where the generative and reasoning work lives: coverage reasoning, the customer email, the escalation explanation, and the rare complex fraud analysis. The router chooses the model tier per call, and Bedrock's model choice means the strong model can change as better ones arrive without touching the agent.
  • Bedrock Intelligent Prompt Routing can already choose between models in a family based on predicted quality and cost. It is a good default for the generative steps. An insurer still wants its own routing layer on top, because claim value, regulatory exposure, fraud risk, confidence and workflow state are inputs a prompt-complexity router cannot see.

What stays with a person

The ladder only works if the top rung is real. In the architecture we build, three things are fixed regardless of how the router scores a claim.

  • Anything that pays money, denies a claim, or touches a regulated decision waits for an adjuster. The model recommends; it does not decide.
  • Every step is logged with the route taken, the model and prompt version, the evidence used, the output, and the person who approved it. That record is what makes the decision defensible in an audit.
  • Confidence thresholds are tuned per claim type from real outcomes, and the approval log is what lets the insurer widen automation deliberately, on evidence, rather than on trust.

This is the same principle behind our enterprise AI work and the document and claims systems in our use cases: deterministic code handles facts, models handle synthesis, and people handle judgement.

Questions people ask about model routing

A layer between an agent and its models that scores each task before it runs and sends it to the cheapest path that can do it well: deterministic code, a small fine-tuned model, a low-cost foundation model, a strong reasoning model, or a person. In an agent that makes many model calls per request, the small and deterministic paths carry most of the volume, so the strong model is invoked only where extra reasoning has economic value.
No. Classification, extraction and drafting rarely need a frontier model, and lookups against a system of record should not use a model at all. Use one model everywhere only while prototyping. In production, route each step by complexity, risk and confidence, and validate model outputs with code wherever a figure or a rule is involved.
Count the calls per request and classify each one. Move lookups and validations to code, move high-volume narrow tasks such as classification and extraction to a small model fine-tuned on your own data, keep a low-cost foundation model for straightforward reasoning, and reserve the strong model for steps a trigger such as conflicting evidence or high exposure actually reaches. Cache repeated results. In the walkthrough, eleven premium calls per claim became seven small, two deterministic, one medium and one strong.
Bedrock Intelligent Prompt Routing can choose between models in the same family based on predicted response quality and cost, and it is a sensible default for generative steps. An enterprise agent usually still needs its own routing layer on top, because signals such as claim value, regulatory risk, fraud indicators, confidence from the previous step and workflow state are not visible to a router that only sees the prompt.
Use SageMaker AI for high-volume, narrow tasks where a small model trained on your own labelled data will be cheaper and more consistent than a general model: claim type, document type, severity, fraud indicators and the routing classification itself. Use Bedrock for generative and reasoning steps where model choice matters and you want to change the strong model as better ones arrive. Most production agents use both.
For a regulated workflow: the financial value at stake, regulatory risk, fraud risk, whether the evidence conflicts, the confidence of the previous step, and whether a tool has failed. Complexity alone under-routes the cases that matter most. The same score that sends a task to the strong model should send it to a person when it crosses a threshold.
Whenever the decision pays money, denies a claim, or touches a regulated obligation, and whenever the router sees conflicting evidence, high exposure or low confidence. The model recommends and attaches its reasoning; the adjuster decides. Every step is logged with the route, model and prompt version, evidence and approver so the decision can be defended later.
By never asking a model to do what code can do. Policy terms, limits, dates and arithmetic come from systems of record and deterministic checks. Models are asked to classify, extract, synthesise and explain, with outputs validated against a schema or a rule. Fewer generated facts means fewer invented ones, and the ones that remain carry their evidence.