Server-Side Search and Web Scraping in Model Calls Will Be Billed by Tokens Only

    A pricing update effective November 18, 2026, will stop charging separately for server-triggered search and web scraping during model calls. Developers will still pay for model input and output tokens, including tokens added by search results, web content, tool traces, and generated answers. The change simplifies billing, but makes context-size management, retrieval quality, security, and token monitoring more important for RAG and AI agent applications.

    As large language models evolve from offline text generation to real-time information processing, web search and page retrieval have become common capabilities in intelligent Q&A, enterprise knowledge retrieval, summarization, and automated AI agents. Previously, some services charged separately for model tokens, search requests, and web page retrieval. Application developers therefore had to track model calls, search operations, and page-fetching requests at the same time, resulting in a relatively complex cost structure.

    A recent pricing update from a model service states that, beginning at 12:00 PM Beijing Time on November 18, 2026, searches and web retrieval operations triggered by the service during model calls will no longer incur separate search or retrieval charges. These costs will instead be included in model token usage.

    This means developers will not need to pay additional per-request fees for server-triggered search and web retrieval. However, input and output tokens generated during model calls will continue to be billed normally.

    1. What Is Changing

    A typical web-enabled question-answering workflow includes the following steps:

    1. The user submits a question.
    2. The model determines whether external information is required.
    3. The service calls a search capability.
    4. The service selects pages based on the search results.
    5. The service retrieves page content or structured data.
    6. The retrieved information is organized and sent back to the model.
    7. The model generates the final answer.

    Under a traditional pricing model, step 3 could generate a search fee and step 5 could generate a web retrieval fee. The initial request, subsequent model calls, and final generation would also consume model tokens. A complex query could trigger multiple searches, several page fetches, and multiple rounds of model reasoning, making the final bill difficult to understand from a single call record.

    Under the new model, server-triggered search and web retrieval are no longer billed separately. Costs are concentrated on model token usage, which simplifies billing and makes it easier to estimate expenses based on input length, context size, and output length.

    However, “search and retrieval are no longer charged separately” does not mean that web access is completely free. Search results, page content, summaries, and related context are typically processed and passed to the model. These materials can increase input token usage. The model’s citations, conclusions, and summaries also consume output tokens.

    In other words, web access no longer creates an independent request fee, but it can still increase the final model bill by expanding the context.

    According to the pricing announcement, the following types of capabilities may trigger server-side search or web retrieval.

    2.1 Built-In Web Search Tools

    When an application enables a web-enabled tool in a request, the model can decide whether a search is necessary based on the user’s question. For example, questions about current policies, recent market information, public web pages, or newly published technical materials may cause the model to search first and then formulate an answer based on the results.

    This approach simplifies the integration because developers do not need to implement the search orchestration logic themselves. In production, however, teams should still monitor whether the model searches too frequently, whether the search terms are accurate, and whether search results are injected into the context in their entirety.

    2.2 Web Search Through a General Tool Protocol

    Some model APIs support web search as a declared tool. The application only needs to provide the tool configuration, after which the service can perform searches and retrieve web information during inference.

    This capability is useful for quickly building Q&A assistants and information retrieval applications. Developers should still define tool-call limits in advance, such as the maximum number of searches and pages allowed in a single request. Without such limits, complex questions can cause the context to grow rapidly.

    2.3 Search Tools in Response-Based Workflows

    In a response-based workflow, the model may first return an intention to call a tool. The service then performs the search and sends the results back to the model so generation can continue.

    This approach is better suited to applications that need to inspect intermediate steps, record tool calls, or implement more complex agent orchestration. Developers should retain information such as:

    • Search queries
    • The number of returned results
    • Pages selected for retrieval
    • The final context sent to the model

    These records support later quality analysis and cost auditing.

    3. How to Estimate Costs After Request-Based Fees Are Removed

    Under the new pricing model, cost analysis should focus on token volume rather than request counts. A basic estimate can be expressed as:

    Estimated cost per call ≈ input tokens × input price + output tokens × output price

    Input tokens may include much more than the user’s original question:

    • System prompts
    • Previous conversation history
    • Search result titles and summaries
    • Web page content
    • Page metadata
    • Tool-call traces
    • Citations and retrieval explanations

    As a result, a short user question may generate a large input context if several long pages are retrieved.

    Applications should track the following metrics separately:

    1. Average token count of user questions
    2. Average token count of conversation history
    3. Average token count of search results
    4. Average token count of retrieved page content
    5. Average model output token count
    6. Number of searches triggered per request
    7. Number of pages retrieved per request
    8. Final context length after truncation or compression

    These metrics help identify whether cost increases are primarily caused by user conversations, web content, or model output. Simply multiplying the number of calls by the unit price is no longer sufficient.

    4. Context Size Should Be Controlled at the Engineering Level

    Although search and retrieval are no longer billed independently by request, indiscriminately increasing the number of search results can still raise token costs and reduce answer quality. Applications should therefore implement an effective content compression strategy.

    4.1 Limit the Number of Search Results

    Most questions do not require a large number of candidate pages. Applications can retrieve a small set of highly relevant results first and decide whether additional pages are needed based on relevance.

    For questions focused on a specific topic, it is often sufficient to retain essential fields such as:

    • Title
    • Summary
    • Publication or update time
    • Source
    • Page URL

    4.2 Clean Retrieved Page Content

    Web pages commonly contain navigation menus, advertisements, footers, repeated links, scripts, and unrelated recommendations. Sending a complete page to the model wastes context and may introduce noise.

    A more reliable processing workflow includes:

    • Removing navigation and template sections
    • Eliminating repeated paragraphs
    • Retaining titles, body text, and tables
    • Filtering clearly irrelevant content
    • Splitting excessively long pages into sections
    • Ranking sections by relevance to the question
    • Merging duplicate information

    4.3 Use Summarization or Layered Retrieval

    For very long pages, the application can first generate a lightweight summary and pass that summary to the model. Full paragraphs can be retrieved only when the application needs to quote the original text or verify a specific detail.

    For multiple pages, the system can first extract key facts from each source and then perform a second-stage synthesis.

    This “filter first, investigate further” approach provides a better balance between accuracy and cost.

    4.4 Set Context Protection Thresholds

    Production systems should define a maximum context size for each request. When retrieved content exceeds that threshold, the application can:

    • Keep only the passages most relevant to the question
    • Remove duplicate sources
    • Downgrade low-relevance pages to summaries
    • Compress conversation history
    • Require the model to answer based on evidence passages
    • Clearly indicate when some content could not be included

    These controls prevent individual complex queries from disproportionately increasing overall costs.

    5. Implications for RAG Application Design

    For retrieval-augmented generation applications, the pricing change reduces the complexity of real-time search workflows, but it does not eliminate the need for a local knowledge base.

    When enterprise materials are relatively stable, organizations should continue to store frequently used, trusted, and structured content in a vector database or another retrieval system. Real-time web search is more suitable when:

    • Information changes frequently
    • Users require the latest public information
    • The local knowledge base has limited coverage
    • Multiple public sources must be cross-checked
    • The question is strongly time-sensitive

    In a hybrid retrieval architecture, the application can query the internal knowledge base first and trigger external search only when the initial results are incomplete. This approach prioritizes trusted internal content while reducing unnecessary web calls and context growth.

    6. Security and Compliance Checks Before Production Deployment

    Web access provides timely information, but it also introduces new security risks.

    First, web content may contain malicious prompts that attempt to make the model ignore its original task or perform unsafe operations. Retrieved content should therefore be treated as untrusted input and must not be executed as system instructions.

    Second, applications must consider the risk of exposing sensitive information. User questions may contain internal project names, customer data, or business information. If these details are inserted directly into search queries, they may be unnecessarily disclosed. Applications should sanitize search terms and define scenarios in which external search is disabled.

    Third, web content is not always current or accurate. When generating an answer, the model should preserve sources, publication times, and evidence passages whenever possible. If information cannot be confirmed, the system should clearly state the uncertainty.

    Finally, organizations should establish an audit logging mechanism that records:

    • The user’s question
    • Whether a search was triggered
    • Search queries used
    • The number of pages retrieved
    • The size of the content injected into the model
    • The final output
    • Token usage
    • Errors and failure reasons

    These records help diagnose problems and provide data for future cost optimization.

    7. How Developers Should Adjust Their Practices

    After the pricing change, developers can optimize their systems in three main areas.

    First, redesign the cost model. Instead of tracking only request counts, build a metric system around input tokens, output tokens, web context size, and conversation history length.

    Second, improve search orchestration. The model should search only when necessary, while result filtering, page cleaning, content compression, and layered retrieval should be used to control input size.

    Third, strengthen the security boundaries around web access. Search queries, retrieved content, and tool permissions should be managed separately to prevent external pages from affecting system instructions, exposing sensitive information, or triggering unauthorized operations.

    Overall, billing server-side search and web retrieval solely through model token usage simplifies the cost structure of web-enabled model calls and makes real-time search easier to integrate into intelligent Q&A and AI agent applications.

    From an engineering perspective, however, the key concern is not the number of search requests itself. It is the size, quality, and security of the information that enters the model context after retrieval. Only by combining cost analysis, retrieval strategy, context management, and security auditing can teams control expenses while improving the reliability and quality of web-enabled model applications.