Blog 11 min read

Web search API costs for B2B AI agents: Search + Fetch + Generation

Method for exporters and B2B SaaS to model AI-agent web grounding cost as search requests + page fetch/extract + generation—convert searches per inquiry × pages fetched into monthly cost, and find the per-request vs credit-plan break-even.

B2B AI agents that answer RFQs, qualify leads, or resolve support tickets increasingly “look things up” on the live web: a competitor spec, a standards page, a customs rule, a distributor’s catalog. That grounding step looks cheap in a demo and becomes a real line item in production, because it is not one meter but three: search requests, fetching / extracting page contents, and the generation that reads them.

This method is for exporters, OEM portals, and B2B SaaS teams who need a web search API cost model they can defend: convert “searches per inquiry × pages fetched” into a monthly number, then decide whether per-request pricing or a credit / plan model is cheaper at your volume. It is a planning framework, not a price list. The vendor categories below are illustrative; always re-check official pricing pages and the calculators linked here before committing budget.

Why “the search call is cheap” misleads agent budgets

  • Agents search more than once. A single inquiry often triggers query rewriting, a follow-up search, and a verification search. Two to five calls per ticket is common in practice—measure yours.
  • Search results are snippets, not evidence. To quote a spec or price sheet, the agent fetches full pages, and extraction / crawl is frequently metered separately from search.
  • Fetched text becomes input tokens. Every page you pass to the model inflates generation cost—often more than the search itself.

1. The three layers: Search + Fetch/Extract + Generation

LayerWhat billsTypical drivers
Search requests Per request (often quoted per 1,000), or credits per call; “deep / advanced” modes may cost more Searches per inquiry, retries, search depth, results per query
Fetch / extract contents Per page, per URL, or credits per page; sometimes bundled with search, sometimes separate Pages fetched per search, JS rendering, PDF parsing, crawl depth
Generation Input + output tokens of the model that reads results; some LLM-native search tools add a per-call fee on top Characters kept per page, number of pages in context, reply length

Note the two product shapes. Standalone search APIs (Exa-style, Tavily-style, Firecrawl-style) bill search and extraction; you pay your LLM separately. Model-native grounding (OpenAI web search, Claude web search, Gemini grounding, Perplexity API) bundles search into the model call, usually as a per-call or per-1,000-request fee plus tokens. Model both the same way—just put the bundled fee in the search row.

2. Convert inquiries into monthly units

Write down five measured (not guessed) numbers from logs or a two-week pilot:

  1. N — inquiries or tickets per month that reach the agent
  2. g — share of those that trigger web search at all (many answer from your own knowledge base)
  3. s — average search calls per grounded inquiry
  4. p — pages fetched / extracted per search call
  5. t — tokens kept per fetched page after trimming
UnitFormula
Search requests / monthN × g × s
Pages fetched / monthN × g × s × p
Grounding input tokens / monthN × g × s × p × t (+ prompt and conversation tokens)
Monthly costrequests × search unit price + pages × fetch unit price + tokens × model rate

Worked shape (illustrative volumes only): 4,000 inquiries, 50% grounded, 3 searches each, 4 pages per search → 6,000 search requests and 24,000 page fetches a month. At 1,500 kept tokens per page that is 36M grounding input tokens—frequently the largest of the three rows. Plug your own unit prices from public pricing pages or the calculators below; do not reuse anyone’s blog numbers as a quote.

3. Per-request vs credit / plan pricing

ModelCategory exampleGood whenWatch for
Per-request Exa-style: a price per 1,000 searches, contents priced per page Spiky or early volume; you want cost strictly linear in usage Add-ons (contents, highlights, deep modes) billed separately
Credits + monthly plans Tavily-style: free monthly credits, tiered plans, different credit cost for basic vs advanced search / extract Steady volume that fills a plan Unused credits expiring; overage rates; credit cost per mode
Credits per page / crawl Firecrawl-style: credits per scraped page, more for heavy rendering or structured extraction Fetch-heavy agents reading full catalogs, PDFs, or JS sites Crawl depth multiplying pages; plan concurrency limits
Model-native grounding Per-call search fee bundled with an LLM Fewer vendors, simplest integration Search results injected as tokens you cannot trim easily

Finding the break-even

For one layer, a plan beats pay-per-request once monthly units × per-request price > plan fee + expected overage. Equivalently, break-even units ≈ plan fee ÷ per-request price, adjusted for how many credits each unit consumes. Below that line, per-request wins; above it, the plan wins—until you outgrow the tier and the next step changes the math again.

Monthly volume bandUsual leaningCheck
Pilot / below free tierFree credits or per-requestDoes the free tier allow production use?
Near the break-even linePer-request (flexibility)Variance month to month; a plan wasted at 60% fill
Well above break-even, stablePlan / committed creditsEffective cost per unit at your fill rate, overage terms
Fetch-dominatedCompare page-credit pricing separatelySearch may be cheap while extraction drives the bill

Compute break-even per layer, not per vendor headline. A cheap search plan paired with expensive extraction can lose to a pricier search API that returns usable contents inline.

4. Levers that move the bill

  • Gate search (g). Answer from your own catalog and FAQ first; search the web only when the knowledge base misses.
  • Cap calls (s). Limit searches per inquiry and log when the agent hits the cap.
  • Fetch fewer pages (p). Rank snippets first and fetch only the top one or two.
  • Trim tokens (t). Keep relevant passages, not full pages; this cuts generation cost directly.
  • Cache. Repeat questions (HS codes, standards, common specs) can reuse results within a freshness window.

5. Calculators and public pricing to check

Treat calculator outputs as estimates and confirm against each vendor’s current public pricing page.

How this differs from related posts

Where Yizhan fits

The other side of web grounding: buyers’ agents are searching and fetching your pages. Yizhan builds English B2B inquiry sites with clean, crawlable product, spec, and FAQ pages—so when an agent fetches you, it finds extractable evidence.

If you are sizing an inquiry agent or want pages that are easy for others’ agents to ground on, skim the platform, then leave a request with your inquiry volume and which layers you run. Bring measured ranges; scoping goes faster.

Next step

Want a crawlable inquiry site for that topic?

Tell us the product, target market, and how many sites you need. We build English inquiry pages search engines and AI crawlers can read—then route buyer messages into one admin.