Large Model Web Search Billing Switched to Pure Token-Based Pricing: What Changed and Why

    This article breaks down a cloud platform's decision to fold server-side web search and page fetching into standard model token usage instead of charging per request. It covers the billing timeline, the three reasons behind the change, a cost model that shows when the new pricing saves money, four architecture impacts, and practical guidance on context budgets, caching, fallback behavior, observability, and migration. Developers will learn why optimization now shifts from reducing search calls to feeding cleaner context into the model.

    1. What Happened: Web Retrieval Billing Was Redefined

    A cloud vendor’s large model platform recently changed how it bills retrieval. Starting at noon on a given day, web searches and page fetches triggered automatically by the server during model calls are no longer charged per request. Instead, they are folded into model token usage and settled under a single meter. Notably, the per-request mechanism was live for only eighteen days before it was removed.

    The timeline looks like this:

    • Mid-October: alongside a model version update, the platform opened Search and Fetch interfaces built on its in-house retrieval capability. Both were priced at 5 yuan per 1,000 successful requests.
    • A two-week transition period followed, during which server-side tool calls in scenarios such as intelligent coding tools and command-line agents were not billed.
    • November 1, 00:00: per-request billing took effect.
    • November 18, noon: that billing was canceled.

    Two capabilities need to be distinguished. The first is server-initiated web search and fetching that happens automatically during model inference; this change applies to that category. The second is the standalone search and fetch interfaces that developers call explicitly; those are still billed at 5 yuan per 1,000 successful requests and are unaffected.

    2. Why Per-Request Billing Was Dropped: Three Drivers

    Cost predictability. Per-request billing split a single user request into two metering dimensions: tokens and retrieval count. Retrieval count is decided autonomously by the model, so developers cannot precisely estimate it before sending a request, which makes budgets hard to converge. With a single dimension, one request is measured only by token consumption, and the bill scales linearly with call volume.

    Alignment between billing and resource consumption. The real cost of server-side retrieval includes fetching, parsing, deduplication, ranking, and content filtering. Those stages correlate strongly with the length of the returned content, and that content ultimately enters the context as a token increase. Metering by tokens is therefore closer to the underlying resource consumption.

    Ecosystem friction. For agent-style applications, a single user question often triggers multiple rounds of retrieval. Per-request billing makes the marginal cost of high-frequency web usage climb quickly and discourages trials. Removing the per-request charge lowers the barrier to entry.

    3. How the Cost Model Changes: The Math

    Let a single request have input tokens $T{in}$ and output tokens $T{out}$, priced at $p{in}$ and $p{out}$, with retrieval count $k$ at a per-call price $p_s$:

    1. Old model: Cost = T_in * p_in + T_out * p_out + k * p_s
    2. New model: Cost = T_in * p_in + T_out * p_out

    The key change is that $T{in}$ grows because retrieval results are injected. If the returned content converts to $c$ tokens, then under the new model $T{in}’ = T_{in} + c$. The break-even condition for whether cost goes up or down is:

    1. k * p_s > c * p_in → the new scheme is cheaper

    The takeaway is intuitive: scenarios with many retrieval calls and short returns per call (multi-round fact-checking, for example) gain the most. A scenario with a single retrieval that returns very long page content saves little, and the optimization focus should shift to context trimming.

    4. Four Impacts on Architecture Design

    1. Budgets and quotas. Dual-dimension quotas collapse into a single token quota, so capacity planning can extrapolate directly from historical token consumption.
    2. Caching becomes more valuable. Retrieval is no longer billed separately, but repeated retrieval still pushes input tokens up, which makes the payoff of semantic caching and result caching clearer.
    3. Rate limiting shifts. There is no longer a need for a separate QPS limit on the retrieval interface; token-level flow control at the model gateway is enough.
    4. Observability is unified. Monitoring converges on tokens as the primary metric, with retrieval hit rate as a secondary one.

    5. Engineering Practice Recommendations

    Context budget control. Set a token ceiling for retrieved content, and summarize before injecting when the limit is exceeded:

    1. MAX_CONTEXT_TOKEN = 2000
    2. def build_prompt(question, docs):
    3. kept, used = [], 0
    4. for d in docs:
    5. t = estimate_token(d)
    6. if used + t > MAX_CONTEXT_TOKEN:
    7. d = summarize(d, max_token=MAX_CONTEXT_TOKEN - used)
    8. t = estimate_token(d)
    9. kept.append(d); used += t
    10. return render(question, kept)

    Layered caching. Use a hash key for exact matches and vector similarity for fuzzy matches; on a hit, skip retrieval and cut input tokens directly.

    Graceful degradation. When retrieval returns nothing, fall back to answering from model knowledge alone and label the confidence in the response, so an empty context is not consumed as if it were a normal one.

    Metric instrumentation. Collect at least four items: input/output tokens, retrieval hit rate, cache hit rate, and total cost per request, then build a cost dashboard.

    6. Migration Notes

    • Check the billing cutover timestamp to avoid double billing across the boundary.
    • Review call volume on the standalone retrieval interfaces; that portion is still billed per request and heavy usage needs re-evaluation.
    • Update the capacity model and load-test baseline, adding returned content length as a variable.
    • Revise external pricing documentation and remove “retrieval count” from the billing description.

    7. Closing

    Folding web retrieval into token billing essentially converges an uncertain count dimension into a predictable usage dimension. For developers, the optimization focus moves from “call retrieval fewer times” to “feed the context more precisely,” which aligns with best practices for retrieval-augmented generation. If you use a general-purpose large model service such as Baidu AI Cloud, the same recommendation applies: build cost governance, monitoring, and alerting around tokens as the unified metering unit.