How to Reduce AI Agent Costs 53x with a Decision Model

Richard Oliver BrayRichard Oliver Bray
Nov 30, 2026

TL;DR:

  • A decision model picks an answer instead of writing one, so it suits small, repeated agent calls such as routing a ticket or scoring a lead.
  • Amazon cut ticket-labeling costs 98% by moving those calls from Claude Sonnet 4.6 to Strands Decider.
  • Firecrawl Alexandria supplies the data a decision model judges, such as people, job titles and company details from Apollo, through one Firecrawl API key.
  • Jev from TypeSafe AI is a decision model you can call from code with npm install @typesafe-ai/sdk and one systemOne() request.
  • Keep Claude for open-ended or high-stakes calls, because a decision model cannot explain its answer.

Prefer to watch? Here's the video version.

Amazon cut the cost of labeling tickets by 98%, from $0.0222 a ticket to about $0.0005, by moving its ticket-labeling calls off Claude Sonnet and onto a decision model.

NVIDIA researchers point out that agents often use a language model for a small number of specialized tasks, repeated with little variation. Deciding whether a lead is worth an email is one of them. These calls usually run through a frontier model, the largest and priciest tier from labs like Anthropic and OpenAI.

The cheaper way to reduce AI agent costs is to split the work. The frontier model handles what needs reasoning, and a decision model makes the small, fixed-choice calls for a fraction of a cent. It only picks from what it's given, though, so its answers are only as good as the data you send. Firecrawl Alexandria supplies that data. It works as a data connector for AI agents, so one Firecrawl API key reaches providers such as Apollo that return people, company details, and contact data as structured records.

To show the two working together, I built a lead tagger. It pulls 111 people at AI and developer-tool companies from Firecrawl Alexandria, then uses TypeSafe's Jev to tag each one as a decision maker or not, give it a company fit score from 0 to 3, and pick a next step. The last section shows how to build your own.

What is a decision model, and how is it different from an LLM like Claude?

A decision model is an AI model that picks from options you supply and returns a probability for each, without writing any text. A large language model (LLM) like Claude writes its answer one token at a time, and you pay for each. A token is a word or part of a word, and the guide to AI tokens shows how each model counts them.

You send a decision model the state, which is the text to judge, and a set of typed questions. The state might be a ticket, a lead or an email.

This article uses Jev, a decision model from TypeSafe AI. TypeSafe was founded by former OpenAI researcher Diogo Almeida, a co-author of the InstructGPT paper behind ChatGPT. It launched Jev on September 15, 2026, ahead of the decision models from OpenAI and Google.

Jev returns typed answers with probabilities instead of text. It supports four question types, and the lead tagger uses the first three:

  1. noul: a yes-or-no question, answered with the probability of yes.
  2. score: a position on a scale you describe, such as 0 to 3.
  3. choice: one option from a list, with a probability for every option.
  4. box: where something is in an image, returned as the four edges of a rectangle.
LLM (Claude Sonnet 5.5)Decision model (Jev)
OutputFree-form text or JSONOne typed answer per question
Output tokens you pay forEvery token it writesNone (Jev output is free)
ConfidenceOnly if you ask, in textA probability with every answer
Can search or browseYes, with toolsNo
Can explain its answerYesNo

Decision models became a product category in late 2026. OpenAI's Decisions API, Google's Gemini Decisions API, Microsoft-Decision-1, Perplexity Decider and Snowflake Decision were all announced between late September and mid-November 2026.

How much faster and cheaper is Jev than Claude on Firecrawl Alexandria leads?

For the lead tagger, Claude Code called Firecrawl Alexandria through the Firecrawl MCP server and returned 111 people across 9 companies, with titles and a description of each company, for about 52 Firecrawl credits. Each lead's state was four lines with the name, title, company, and what the company does.

On those 111 leads, Jev tagged every lead in 17.6 seconds for $0.00288. Claude Sonnet 5.5 took 126.8 seconds and cost $0.1527 with the same lead data and label definitions. Jev was about 7 times faster and about 53 times cheaper, a 98% cut.

Each model answered three questions about every lead. One asks if the lead is a decision maker. One scores the company's fit with Firecrawl's ideal customer profile (ICP) from 0 to 3. The last picks the next step from reach out now, nurture (keep in touch through a slower sequence), or discard.

Each model got one call per lead, run one after another, three times over. The figures below come from the third run on November 16, 2026, which is the run in the screenshots.

Claude's cost uses OpenRouter's list price of $2 per million input tokens and $10 per million output tokens. Jev's uses TypeSafe's $0.042 per million input tokens, with output free.

111 leads, one call eachClaude Sonnet 5.5Jev
Wall clock (3 runs)123.7 to 126.8 s17.6 to 18.1 s
Average per callabout 1.1 sabout 0.16 s
Cost$0.1527$0.00288
Marked "reach out now"2033

Claude's board shows the JSON it wrote for each lead, with its token count and call time underneath. The company line under each lead's name is the description Firecrawl Alexandria returned.

Claude Sonnet 5.5 lead board: 111 of 111 leads sorted in 126.78 seconds for $0.1527, with 20 in reach out now, 90 in nurture and 1 in discard

Jev's board shows a probability for every answer instead. For one Head of Engineering, Jev gave 93% for decision maker, an ICP fit of 1.54 out of 3, and 65% for reach out now.

Jev lead board: 111 of 111 leads sorted in 17.60 seconds for $0.00288, with 33 in reach out now, 78 in nurture and 0 in discard, and one lead's probabilities on the left

Jev and Claude put 93 of 111 leads in the same next-step column and agreed on 107 decision makers, though with no ground truth, agreement is not accuracy. The biggest difference was outreach. Jev marked 33 leads to reach out now against Claude's 20, and 13 of its 15 extra picks had a reach-out probability under 0.75.

How much does Firecrawl Alexandria's company data change a decision model's answers?

Removing Firecrawl Alexandria's company descriptions changed Jev's fit score for 33 of 111 leads, against 5 to 9 when Jev reran on the same data. A decision model cannot search or browse, so the state you send it is all it knows. Firecrawl Alexandria supplies that state, including people at a company, their job titles and what the company does.

Without Firecrawl Alexandria there is no lead list to sort. Every name, title and company in the run came from it. So this test removes one field, the company description, and reruns Jev on the same 111 leads to see how much its answers change.

Jev gives slightly different answers each run, even on the same data. The first column shows the other two runs from the benchmark, so you can see how much Jev varies on its own. Both columns are compared with the main run, the one in the screenshots:

Jev on 111 leadsSame data, run twice moreCompany description removed
What Jev saw per leadName, title, company, what the company doesName, title, company
Fit score different from the main run5 and 933
Next step same as the main run108 and 110104
Fit score same as Claude's65 and 67 (66 in the main run)50
Decision maker same as Claude's107109

The decision-maker and next-step answers barely moved without the description.

The job title drives the decision-maker and next-step questions, so a title alone gets most of the way. The fit question needs to know what the company sells.

Two of the 9 companies in the lead list show the range. Without its description, Jev's average fit score for the 17 people at Linear, an issue tracker, fell from 1.15 to 0.55. Linear's description mentions agents working alongside teams.

LangChain, a widely used open-source framework for building LLM apps, barely moved, from 2.55 to 2.43. The less a model already knows about a company, the more the Firecrawl Alexandria data matters.

Firecrawl Alexandria also covers data an agent cannot read from public pages alone. Apollo returns people at a company, contact details, current job postings and a company's tech stack. Similarweb returns how much traffic a website gets and where it comes from. The people enrichment guide compares the people providers, and the company enrichment API comparison covers company data.

How does Claude web search compare with Firecrawl Alexandria for sales leads?

Claude Code with web search alone can build a lead list, but it cannot check work emails. In a test on 50 people, Firecrawl Alexandria returned 48 work emails and checked 47 as deliverable. Claude returned 40, guessed 38 of them from the company's email format, and checked none.

Firecrawl Alexandria returned 111 people for the lead list, each with a job title and a description of their company. For the comparison, I gave Claude Code with Sonnet 5.5 the same companies and the same task, with only web search and web fetch. It returned 89 people in 76 seconds, for $0.34 in model usage.

In November 2026, I asked both for a work email for 50 people whose role was confirmed on a public page:

50 people, role confirmedFirecrawl AlexandriaClaude, web search only
Work email returned4840
Mailbox checked as deliverable470
Where the email came fromEmail-finder providers, tried cheapest first38 guessed from the company's email format, 2 published on a page

Guessing the format is where web search slips. Where both returned an address, 11 of Claude's 37 guesses did not match the one Firecrawl Alexandria had checked as deliverable. Firecrawl Alexandria also found addresses for 10 people Claude could not.

Use Firecrawl Alexandria when you need a wider list, company data in one call, and contact details checked before you send.

Also read: How to use ChatGPT for lead generation with live business data.

How did Amazon cut AI agent costs 98% with a decision model?

Amazon cut the cost of labeling tickets in an internal ticketing system by 98%. It replaced Claude Sonnet 4.6 with Strands Decider, a decision model from its Strands Agents team. Each ticket went into one of 20 categories, and Claude wrote about 170 output tokens per ticket where Strands Decider returned one.

Two Amazon engineers wrote up the switch on November 9, 2026. Their measurements:

Per ticketClaude Sonnet 4.6Strands Decider E4B
Average time per call4,215 ms897 ms
Input tokens6,5542,009
Output tokens1701
Cost per million ticketsabout $22,200about $500

The saving came from two places. Strands Decider writes one output, the chosen label, instead of a JSON answer. Its prompt was also much shorter, because the team rewrote each of the 20 labels as a one- or two-sentence rule.

When should you use a decision model like Jev instead of Claude?

Use a decision model like Jev when the answer is one item from a fixed list or a point on a scale you define, the calls run into the thousands, and a wrong answer is cheap to catch. Keep Claude, or another strong reasoning model, when the options are open-ended, the volume is low, or you need the model to explain its answer.

QuestionUse a decision modelKeep Claude
Are the options fixed?Yes, a known listNo, or they change weekly
How many calls?Thousands or moreA few hundred or fewer
How costly is a wrong answer?Cheap to catch and fixMedical or financial
Do you need the reasoning?NoYes

Call volume matters because the saving is per call. On 111 leads, Jev saved about 15 cents. At Amazon's volume, the same kind of swap is the difference between about $22,200 and $500 per million tickets.

Amazon's engineers drew the same line. They recommend a decision model when the labels are a closed catalog, and advise against it when labels need explanation text, the catalog changes weekly, or the useful context will not fit in a few thousand tokens.

Typical decision-model calls are routing a ticket, checking a page is relevant before an agent reads it, deciding whether to search, sorting emails into buckets, and AI lead scoring. Most pair with a Firecrawl Alexandria provider that supplies the state:

DecisionQuestion typeWhere the state comes from
Is this lead a decision maker?noulApollo people search
Is this company hiring for AI roles?noulApollo job postings
How well does this company fit?scoreApollo company details
Is this site big enough to pitch?scoreSimilarweb traffic
Which queue does this email go to?choiceYour inbox

The hybrid pattern uses all three. Firecrawl Alexandria gathers the data, Jev does the sorting and yes-or-no checks, and Claude writes the outreach and reviews close calls.

Also read: LLM token optimization: 9 techniques in the order to apply them.

How to build an AI lead qualification agent with Firecrawl Alexandria and Jev

The quickest way to build the lead tagger is one prompt in a coding agent like Claude Code. The agent pulls leads from Firecrawl Alexandria, sends each one to Jev with three questions, and prints the answers with their probabilities. It needs a Firecrawl connection and a TypeSafe API key first.

Install the official Firecrawl plugin for Claude Code, Codex, Cursor or another agent from the Firecrawl plugins page, signed in to a Firecrawl team with Firecrawl Alexandria enabled. In the Claude app, the Firecrawl connector for Claude gives the same access; turn it on from the + menu in a chat.

Get a TypeSafe API key from the TypeSafe console, set it as TYPESAFE_API_KEY along with your FIRECRAWL_API_KEY, and paste this prompt:

Build me a lead tagger in Node.js.

1. Use Firecrawl Alexandria's Apollo provider to pull people
   at linear.app, langchain.com, supabase.com and posthog.com.
   Call apollo/people/search for names and job titles, and
   apollo/companies/info for a one-line description of each
   company. Save them to leads.json.

2. Send each lead to TypeSafe's Jev (@typesafe-ai/sdk,
   model jev-latest) with three questions in one request:
   - is_decision_maker (noul): founder, C-level, VP,
     head of or director
   - icp_fit (score, 0 to 3): we sell [your product]
     to [your ideal customer]
   - next_action (choice): reach_out_now, nurture, discard

3. Print the answers with their probabilities. Only mark
   reach_out_now at 0.75 or higher; list the rest for review.

The people search returns names and titles. The company info call costs Firecrawl credits for each company, so the team needs credits available before the agent runs it.

The 0.75 threshold is what controls the outreach gap between Jev and Claude. On the 111 leads, it would have caught 13 of the 15 leads only Jev marked for outreach.

To write the tagger yourself, the Firecrawl and Jev developer guide shows Firecrawl and Jev working together in code. Firecrawl also has SDKs, a REST API and a CLI.

Firecrawl Alexandria gives a decision model real data to judge, and the decision model takes the repetitive sorting off your frontier model.

Check out the Firecrawl Alexandria docs to go deeper.

Use Firecrawl in your agent

Add Firecrawl to ChatGPT, Claude, Cursor and more in one click.

Frequently Asked Questions

Why does a decision model need Firecrawl Alexandria?

A decision model can only judge the text you send it, and it cannot search or browse. Firecrawl Alexandria fetches that text, including the people at a company, their job titles, and what each company does. Without the company description, Jev changed its fit score for 33 of 111 leads.

Can Claude find sales leads without Firecrawl Alexandria?

Partly. With web search alone, Claude Code found 89 people at 10 companies, each with a source page, but it could not verify work emails. For 50 people, Firecrawl Alexandria returned 48 work emails and checked 47 as deliverable, while Claude returned 40 unchecked addresses, 38 of them guessed from the company's email format.

Does company data change a decision model's answers?

Yes, mostly on judgment questions. With Firecrawl Alexandria's company descriptions removed, Jev changed its company fit score for 33 of 111 sales leads, against 5 to 9 when rerun on the same data. Its pick for the next step barely moved, because the job title drives that answer.

How much cheaper is a decision model than Claude Sonnet for classification?

On 111 sales leads, Jev cost $0.00288 against $0.1527 for Claude Sonnet 5.5, about 53 times cheaper. It finished in under 18 seconds instead of just over two minutes. Amazon reported about 44 times cheaper per ticket after replacing Claude Sonnet 4.6 with Strands Decider.

How do I pull sales leads from Firecrawl Alexandria?

Install the official Firecrawl plugin for Claude Code, Codex or Cursor from the Firecrawl plugins page, or turn on the Firecrawl connector in Claude, then ask for the people at a company. Firecrawl Alexandria's Apollo provider returns names and job titles, and its company enrichment adds what each company does. Developers can make the same calls from the Firecrawl SDKs or REST API.

Can a decision model replace Claude or GPT in an AI agent?

Only for part of the work. A decision model cannot write text, explain itself, or invent an option you did not list. It replaces the narrow multiple-choice calls inside an agent, while Claude or GPT keeps the research, writing and hard judgment calls.

Is a decision model accurate enough for AI lead scoring?

It depends on how costly a wrong answer is. In one test Jev and Claude put 93 of 111 leads in the same next-step column, but Jev marked 33 leads for outreach against Claude's 20. Use the returned probability as a threshold and review borderline leads with a stronger model.

What are noul, score and choice in Jev?

They are three of Jev's four question types, and the three that work on text. A noul is a yes-or-no question answered with a probability of yes, a score places the input on a scale you define, and a choice picks one option from a list you supply and returns a probability for each option. The fourth, box, locates an object in an image.

//
Get started
//
Ready to build?
Start getting web context for free and scale seamlessly as your project expands. No credit card needed.
Are you an AI agent? See setup options
Richard Oliver Bray
Richard Oliver Bray @richobray
Developer Experience Engineer at Firecrawl
About the Author
Richard Oliver Bray is a Developer Experience Engineer at Firecrawl. He spent his first years as a full stack engineer before moving into developer education, later working as a Developer Advocate at Better Stack and authoring video courses for platforms like Treehouse and newline, teaching Node.js, TypeScript, and GraphQL to thousands of developers.