LLM Web Search Billing Changes Explained: What Is Actually Free

    This article breaks down a recent billing change for LLM built-in web search: the platform no longer charges per search action, but token usage is still billed in full. It explains the difference between model-side autonomous retrieval and standalone search/fetch APIs, why removing per-call fees can still raise total costs as fetched page content inflates input tokens, and how to build cost baselines, budgets, circuit breakers, content compression, and caching. It also covers observability metrics, logging, fallback and rate-limiting design, plus guidance on choosing between the two retrieval paths.

    1. The Bottom Line: The Action Is Free, the Usage Is Not

    The industry recently saw a billing change worth paying attention to. When a model initiates web search and page fetching on its own during execution, the server no longer charges separately for the search action itself. Billing is now based only on token usage on the model side.

    At first glance, many developers read “free web search” as zero overall cost. The reality is more precise: what is free is the number of calls at the orchestration layer; input and output tokens for model inference are still billed as usual.

    The pricing strategy for this kind of capability has changed quickly. One cloud vendor first launched a standalone search and fetch API in the fall, promoted initially as free for a limited time, then switched to billing per thousand successful requests. Per-call billing for model-triggered search was in effect for only a very short window before being canceled.

    In other words, the essence of this change is the removal of the per-call billing item. Token billing rules, context window limits, and rate limits are all unchanged.

    This distinction matters. The cost structure has shifted from “token cost + per-search cost” to “token cost,” and the total bill will not necessarily drop much, because search pushes fetched page content into the context and directly drives up input tokens.

    2. Two Technical Paths You Must Keep Separate

    Many cost misjudgments come from conflating two different capabilities.

    • Model-side autonomous retrieval: The model decides during inference whether to search, what to search for, and when to stop. The developer only declares that web access is allowed, and the server handles the rest of the orchestration. This suits open-ended Q&A, time-sensitive queries, and fact-checking.
    • Standalone search/fetch API: Your own program decides the query terms, which pages to fetch, how to clean and chunk them, and then assembles the results into a prompt for any model. This suits scenarios that need strong control, strong auditing, and the ability to swap models.

    The key boundary: the standalone search API is not included in this free tier and is still billed per successful request. Once per-call billing for model-side retrieval was removed, the cost center shifted entirely to tokens. The former is like driving your own car; the latter is like hailing a ride dispatched by the platform. The control granularity and cost models are fundamentally different.

    3. Why “Free” Makes Cost Governance More Important

    Search significantly amplifies token consumption. A typical flow looks like this:

    1. User asks a question
    2. → Model decides web access is needed (a few tokens)
    3. → Server searches and fetches several pages
    4. → Page content is trimmed and injected into the context (input tokens spike)
    5. → Model generates an answer with citations (output tokens)

    A single request with search can consume several times, or even an order of magnitude more, input tokens than a pure model call. If your product sees high concurrency and long-tail questions, bill volatility becomes much more pronounced. Recommended practices:

    1. Establish a per-request cost baseline: Track average input and output tokens separately for “no search” and “with search” requests to create a comparable baseline.
    2. Set search budgets and circuit breakers: Limit search calls per unit time and context injection length by tenant or API, and fall back to a pure model answer once a threshold is exceeded.
    3. Compress injected content: Extract and denoise the main text first (remove ads, navigation, repeated sections), then truncate to the fragments most relevant to the question instead of stuffing in entire pages.
    4. Reuse results instead of re-fetching: Cache results and summaries for hot questions, mark them with freshness information, and expire them when stale.

    Illustrative code (pseudocode, structure only):

    1. def answer(query, allow_search=True, max_inject=4000):
    2. if allow_search and budget_ok(query):
    3. docs = search_and_fetch(query, limit=5) # standalone API, may be billed per call
    4. ctx = compress(docs, budget=max_inject) # denoise + truncate
    5. else:
    6. ctx = ""
    7. return model.chat(query, context=ctx, cite=bool(ctx))

    4. Observability and Stability Design

    Fewer billing items does not mean lower operational complexity. The observability focus should shift to tokens and search quality:

    • Metrics: search trigger rate, average injection length, citation hit rate, timeout rate, per-request token distribution (P50/P95).
    • Logs: record whether search was triggered, number of search rounds, cited sources, and content length before and after truncation, so you can review “why it got more expensive.”
    • Fallback strategy: when the search service is unavailable, automatically fall back to the model’s internal knowledge and explicitly state in the answer that “this was not verified online.”
    • Rate limiting and queuing: search is an external dependency, so set independent timeouts and retry limits to avoid dragging down the main request path.

    5. Choosing a Path: Which Scenario Fits Which Line

    • If you need replaceable models, your own index, and strict auditing and compliance trails, use the standalone search API and treat the per-call fee as a controllable, deterministic cost.
    • If you want fast time to market, face open-ended questions, and do not want to maintain fetching and cleaning, use model-side autonomous retrieval and concentrate your budget on tokens.
    • A hybrid approach is often best: route high-frequency, well-defined questions through caching and your own search, and leave long-tail open-ended questions to model-side autonomous retrieval.

    6. Final Thoughts

    This change is a real benefit for developers, but what actually saves money is not the word “free.” It is thinking clearly about three things in your architecture: which requests should go online, how much content to inject, and how to reuse results. Three things to do this week: pull a token baseline for requests with and without search, add budgets and circuit breakers to search, and bring citations and truncation length into monitoring. If you already use related capabilities from Baidu AI Cloud, you can combine them with its logging service and monitoring and alerting system to turn the metrics above into a cost dashboard you can track over the long term.