From Per-Request to Token-Based Billing: What the New Pricing for Server-Side Search and Web Fetching Means for LLM API Developers

    A major LLM platform has shifted its server-side web search and page fetching capabilities from per-request pricing to unified token-based billing. This article explains the differences between the two pricing models, how the change affects cost modeling for RAG pipelines and agent loops, and offers practical recommendations for controlling token consumption in connected AI applications.

    1. Background: A Quietly Significant Pricing Change

    Effective 12:00 Beijing Time on November 18, 2026, a major LLM platform adjusted the billing rules for its open API in a way that has far-reaching implications for developer cost structures: server-side search and web fetching triggered during model calls are no longer billed separately, and are instead charged uniformly based on model token usage.

    To understand the significance of this change, it helps to review how these capabilities were billed at launch. On October 17 of the same year, the platform introduced two interfaces for real-time internet access:

    • Search API: accepts a query, calls the platform’s proprietary search engine to retrieve web pages, and returns a structured list of search results;
    • Fetch API: retrieves a specified web page and returns its title and body text in Markdown format.

    Both interfaces were originally billed on a per-request basis, at 5 CNY per 1,000 successful requests—roughly 0.005 CNY per successful request.

    The new adjustment means that developers no longer incur additional search/fetch request fees when triggering the following capabilities during model calls:

    • Connected-tool interfaces;
    • The web_search tool under Anthropic-compatible protocols;
    • The web_search tool in the Responses API.

    2. The Essential Difference Between the Two Billing Models

    2.1 Characteristics of Per-Request Billing

    Per-request billing is a “results-oriented” model with the following traits:

    1. Highly predictable costs: developers only need to count successful requests to calculate costs precisely, regardless of the length of returned content.
    2. Clear boundaries: a search returning a 100-word summary costs the same as fetching a 10,000-word article.
    3. Potential for waste: if most of the returned content is never actually consumed by the model (e.g., truncated or filtered at the application layer), cost and value become misaligned.

    2.2 Characteristics of Token-Based Billing

    Token-based billing is “resource-consumption-oriented”:

    1. Cost scales with content length: the longer the fetched page and the more content injected into the context, the more tokens are consumed and the higher the cost.
    2. Unified billing: input content from model inference and tool calls is consolidated into a single token bill, greatly simplifying financial accounting and usage monitoring.
    3. Incentive to slim down content: developers are motivated to summarize search results, compress web page text, and trim unnecessary fields to avoid needlessly inflating token consumption.

    2.3 Practical Impact on Developers

    For low-frequency but content-heavy scenarios (such as fetching long documents), removing per-request fees may bring significant cost savings. Conversely, for high-frequency scenarios where only very short content is injected each time (such as search snippets only), token-based billing could end up costing more. Therefore, cost conclusions must be drawn based on your specific usage patterns—there is no one-size-fits-all answer.

    3. Cost Modeling for Agent and RAG Architectures

    3.1 Cost Composition in a RAG Pipeline

    In a typical RAG pipeline, the cost of the retrieval stage can be broken down as follows:

    1. Retrieval cost = search/fetch fees (before the change)
    2. + Σ(tokens injected into context × input price) (unified after the change)

    After the change, the second term becomes the sole cost source. Here is a typical example:

    1. # Illustrative pseudocode: estimating the token cost of a single connected Q&A call
    2. query = "latest advances in a given technical topic"
    3. search_results = web_search(query, top_k=5) # no longer billed separately
    4. context = "\n".join(r.snippet for r in search_results) # ~2,000 tokens
    5. answer = chat(
    6. messages=[
    7. {"role": "system", "content": SYSTEM_PROMPT}, # ~300 tokens
    8. {"role": "user", "content": query + context}, # ~2,100 tokens
    9. ]
    10. )
    11. # Total input ≈ 2,400 tokens; simply multiply by the model's input token price

    3.2 The Amplification Effect in Multi-Turn Agent Loops

    In agent scenarios, web search is typically embedded within multi-turn tool-calling loops. Each turn’s tool results enter the context of the next turn, creating context accumulation. After the billing model switch, developers should pay close attention to:

    1. Result trimming: truncate or summarize fetched page content—for example, keep only the first N characters or filter paragraphs by relevance;
    2. Loop limits: set a maximum number of iterations for agent loops to prevent runaway long cycles;
    3. Context compression: when conversation history grows too long, apply rolling summaries to earlier tool results.

    This pricing adjustment is not an isolated event—it is a microcosm of the maturing LLM API ecosystem, reflecting three broader trends:

    4.1 Tool Capabilities Becoming “Native”

    Web search and page fetching are shifting from “independently paid add-on services” to “built-in capabilities within the model invocation chain.” This aligns with the industry’s general “tool use” evolution—models autonomously decide when to search and what to fetch during reasoning, without developers needing to integrate third-party search services.

    4.2 Unified Billing Standards

    Unified token-based billing reduces billing complexity. For enterprise users, a single token bill covers both inference and connected capabilities, making attribution analysis easier in cost-monitoring platforms and aligning more readily with internal budgeting systems.

    4.3 Competition Shifting Toward “Integration Depth”

    As base inference prices converge across platforms, differentiation increasingly centers on the completeness of the tool ecosystem and the quality of the integration experience. The out-of-the-box readiness of capabilities like server-side search, file parsing, and code execution is becoming a key consideration in platform selection.

    5. Practical Recommendations for Developers

    Based on the analysis above, here are four actionable recommendations:

    1. Recalculate existing costs: if you have connected RAG applications already in production, re-run the last 30 days of usage data under the new billing model, compare bills between the old and new models, and evaluate whether architectural adjustments are needed.
    2. Establish token budget guardrails: set hard limits on per-request context length and agent loop iterations at the application layer, and integrate the platform’s usage-monitoring interface for alerting.
    3. Optimize how retrieval results are injected: prefer structured summaries over full text; for Markdown returned by Fetch, split content by heading hierarchy and apply relevance filtering, keeping only high-value paragraphs.
    4. Choose invocation methods by scenario: if your use case only needs search snippets, the connected tool alone is sufficient; if you need to read specific pages in depth, then trigger fetching, paired with summarization to keep token consumption under control.

    6. Conclusion

    The shift from “per-request” to “per-token” billing may look like a mere change in accounting, but it actually reshapes the cost model and optimization levers of retrieval-augmented applications. For developers, this is both a benefit—simpler billing and lower integration barriers—and a new challenge: the leverage for cost optimization has moved from “sending fewer requests” to “consuming fewer tokens.” Those who manage context length and retrieval result quality more precisely will achieve stronger intelligent application performance within the same budget.