LLM Platform Web Search and Web Fetch Billing Change: Token-Based Pricing Explained

    This article explains a billing change on an LLM platform. Starting at 12:00 on November 18 (Beijing time, UTC+8), server-side web search and page fetching are no longer billed separately and are charged only by model token usage. It covers the API features that trigger these calls, how the new billing flow works, how the cost model for RAG and Agent applications changes, and practical ways to control token usage.

    1. Core Changes to Billing

    According to the platform’s official announcement, starting at 12:00 on November 18 (Beijing time, UTC+8), server-side web search and web fetching triggered during model calls are no longer billed separately. They are billed only by model token usage. This ends per-request billing for search-type APIs and replaces it with the same metering used for model inference.

    Based on earlier product documentation, the platform typically triggers server-side search through the following interfaces:

    • A web search tool within model calls, enabled by a search parameter in the chat request;
    • The web_search tool in the Anthropic-compatible protocol;
    • The web_search tool in the Responses-style API.

    Before this change, the platform had launched standalone Search and Fetch APIs on October 17. Both run on the platform’s in-house search engine and provide real-time web content for Agent and RAG applications. They were billed per successful request at CNY 5 per 1,000 successful requests. The Search API retrieves web pages for a query and returns structured results. The Fetch API retrieves a single web page and returns its title and body text in Markdown.

    2. Technical Logic Behind the Billing Change

    2.1 From Per-Request Billing to Token-Based Billing

    Per-request billing has a clear advantage: prices are easy to understand. However, developers have long criticized one problem. Search results are injected into the model context and processed during inference, so their cost is tied to token usage. Yet search fees and token fees are billed separately, which splits cost accounting. When one request triggers several searches or fetches, the bill shows both request counts and token counts. This makes reconciliation and budget management more complicated.

    With unified token billing, the billing flow is much simpler:

    1. The application makes a model call with web tool parameters.
    2. The server performs the search or page fetch and retrieves external content.
    3. The fetched content is converted to text (such as a Markdown title and body) and injected into the context.
    4. The model completes inference based on the expanded context.
    5. The billing system counts only the input and output tokens used by this request.

    2.2 Why Separate Charges Can Be Removed

    From an engineering standpoint, search and fetching have real resource costs, including search engine compute, network bandwidth, and anti-scraping processing. The platform’s decision to fold these costs into token billing typically rests on two points. First, these capabilities are closely tied to model inference, so token revenue can cover retrieval costs. Second, simpler billing lowers the barrier to entry and encourages developers to enable web capabilities more often, which can increase overall call volume.

    3. Impact on Developer Cost Structure

    3.1 Changes to the Cost Model

    Before the change, the cost of a typical RAG query could be approximated as:

    1. Total cost = number of searches × cost per search + number of fetches × cost per fetch + input tokens × input price + output tokens × output price

    After the change, this simplifies to:

    1. Total cost = input tokens × input price + output tokens × output price

    For applications that trigger search frequently, such as real-time news Q&A, competitor monitoring, and autonomous Agent browsing, the savings can be significant if they previously made many search and fetch requests. Under the new model, those separate fees drop to zero. However, fetched web content can greatly increase input token counts. Injecting long web pages into context can add substantial token costs. So “free search” does not mean that web-enabled requests cost nothing.

    3.2 Token Optimization Tips

    Under the new billing model, controlling input tokens is key to managing costs. Developers can apply the following strategies:

    • Result trimming: Extract summaries from fetched page text or split it into segments, keeping only passages relevant to the query instead of injecting the full page.
    • Context management: In multi-turn Agent tasks, remove web content injected in earlier turns promptly to avoid paying for it repeatedly.
    • On-demand web access: Enable the web tool only when a query clearly requires real-time information. Answer static knowledge questions with standard inference.
    • Concurrency and caching: Build a result cache for frequent queries so repeated questions hit the cache first, reducing redundant web calls.

    3.3 Architecture Recommendations

    Teams building Agent or RAG applications should treat web retrieval as a pluggable component. Wrap search and fetch behind a unified tool-calling abstraction layer, so that changes to the underlying interface (billing rules, response format, or trigger method) do not affect business logic. An example follows:

    1. # Pseudocode: wrap web retrieval as a pluggable tool
    2. class WebTool:
    3. def search(self, query: str, top_k: int = 5) -> list:
    4. results = server_side_search(query, top_k)
    5. return [trim(r["content"], max_tokens=800) for r in results]
    6. def fetch(self, url: str) -> str:
    7. md = server_side_fetch(url)
    8. return extract_relevant(md, query=context.query)

    By trimming results and filtering for relevance in the tool layer, teams can keep answer quality high while limiting the token volume injected into the context.

    4. Industry Perspective: Toward Transparent API Billing

    More broadly, this change reflects a general trend in the LLM API market. Billing rules are becoming simpler, and price competition is moving from inference unit prices to value-added capabilities. As web search, code execution, and file parsing are increasingly bundled into token billing, developers will focus less on how much a single call costs and more on how many tokens a complete task consumes end to end, and how well it performs. Measuring cost per task fits real business scenarios more closely.

    When evaluating technology choices and forecasting costs, developers should:

    1. Use the end-to-end token consumption of representative tasks as the baseline, not just the unit price;
    2. Monitor changes to billing rules, and keep the architecture decoupled from the underlying API;
    3. Set up fine-grained usage monitoring that tracks token consumption by feature module, so unusual spending is caught early.

    5. Summary

    This billing change integrates server-side web search and page fetching into model inference billing, rather than charging for them as separate items. This lowers the barrier to using web capabilities and simplifies cost accounting. For teams that rely heavily on Agents and RAG, this is a clear benefit. However, “free search” also makes token consumption management more important. Developers should update their cost models promptly and use result trimming, context management, and usage monitoring to balance quality and cost under the new billing system.