Server-Side Web Search and Page Fetching Now Billed Under Unified Token Pricing
Starting 12:00 Beijing time on November 18, 2026, server-side search and web page fetching triggered during model calls no longer incur separate tool-call fees. These requests are billed only by the tokens the model consumes. This article explains what changed, how to estimate costs under token-based billing, and which engineering practices help control context size, caching, and monitoring.
1. What Changed in Billing
An AI service recently published new API billing rules on its official website. According to the announcement, starting 12:00 Beijing time on November 18, 2026, server-side search and web page fetching triggered during model calls are no longer charged as separate tool-call fees. These requests are billed only by the tokens the model actually consumes.
This change means developers building web-connected question answering, real-time information retrieval, web summarization, and industry research applications no longer need to track search requests and page fetch requests as two separate cost items. Total cost now depends more on input content, the size of retrieval results, how context is assembled, and the length of the model’s output.
Under the previous model, search and page fetching typically involved two kinds of charges:
- Token fees for model inference;
- Call fees for search or fetch interfaces, charged per successful request.
The earlier structure was clear, but costs were more complicated to track. A single user question could trigger several rounds of search, multiple page fetches, and one model inference. Developers had to count each request type separately and add the charges together. As applications grew, tool call volume rose with query rewriting, result retries, and retries after failed page parsing. Actual spending could therefore drift from the initial estimates.
After the change, server-side search and page fetching are no longer billed separately within the model call chain. As long as these capabilities are web-connected tool actions triggered during a model request, the cost appears mainly as model token usage. The billing focus shifts from how many tool calls were made to how much information the model processed.
Removing the separate search and fetch fees does not make web-connected requests free. Search results, page body text, page summaries, and related context may still be organized and sent to the model, which increases input tokens. The analysis, citation notes, or final answer the model generates from that content also consumes output tokens. Developers still need to focus on context control and result compression.
2. Typical Use Cases
According to the public description, the change mainly covers server-side search triggered during model calls. This includes web-enabled tools, web search tools that follow common model API specifications, and web search tools in responses-style interfaces.
From an engineering perspective, these capabilities usually involve the following steps:
- Receive the user question and decide whether web access is needed;
- Rewrite the original question as a search query;
- Call server-side search to get candidate results;
- Filter results by relevance, freshness, or source quality;
- Fetch some web page content;
- Clean, truncate, or summarize the page content;
- Inject the processed information into the model context;
- Have the model generate the final answer.
Under the old billing model, steps 3 and 5 corresponded to search request fees and fetch request fees. Under unified billing, steps 6 and 7 deserve more attention. Placing large amounts of unprocessed page content into the context directly raises token usage.
3. Impact on Developer Cost Estimation
With billing based on token usage, cost estimation follows a more consistent model. The total token count for a web-connected question answering request generally includes:
- System prompt tokens;
- User question tokens;
- Rewritten query tokens;
- Tokens for search result titles, summaries, and link descriptions;
- Tokens for page body text or page excerpts;
- Conversation history tokens;
- Model output tokens.
You can use the following simplified formula for estimation:
Cost per request≈ input token count × input unit price+ output token count × output unit price
If an application also keeps multi-turn conversations, historical messages may be counted as input tokens on every turn. Actual cost therefore depends not only on the number of pages, but also on how much body text is kept per page, how long conversation context accumulates, and whether the model makes several internal calls.
For enterprise applications, track at least three metrics:
- Average input tokens: shows whether search results and page content are being over-injected;
- Average output tokens: used to evaluate answer length and response strategy;
- Total tokens per request and P95 value: used to identify abnormally long requests and sudden cost spikes.
Averages show overall trends, while P95 or higher percentiles are better for capacity planning. Long pages, excessive conversation history, or tool retries can cause sharp token spikes in some requests. Looking only at averages can understate budget pressure.
4. Engineering Priorities After Page Fetching Stops Being Billed Separately
1. Control the number of retrieval results
More search results do not always produce better answers. Too many candidates cause three problems. They increase input tokens, they reduce the model’s attention to key information, and they raise the chance that contradictory content enters the context.
Set a reasonable candidate count first, then adjust it by question type. Factual lookups usually need only a few highly relevant results. Complex research questions may justify a wider candidate pool, but results should be ranked and deduplicated before they reach the model.
2. Clean web page content
Page body text often includes navigation bars, footers, advertising notices, repeated headings, script fragments, and unrelated recommendations. Sending full-page text to the model wastes tokens and can interfere with information extraction.
After fetching, consider the following processing steps:
- Remove HTML tags and script or style content;
- Strip navigation, copyright notices, and repeated menus;
- Merge broken paragraphs;
- Keep titles, dates, body text, and key tables;
- Split overly long pages into segments;
- Keep a source identifier and position note for each segment.
Cleaned text should keep its meaning intact rather than being cut mechanically. For pages with tables, lists, or timelines, convert the structure carefully, or the model may misread the original relationships.
3. Set a context length limit
Fetched results should have a clear total length limit. When content exceeds the limit, use a layered summarization strategy:
The first layer creates short summaries of each page segment. The second layer selects the summaries most relevant to the user question. The third layer passes the selected content to the model to generate the final answer.
This approach avoids loading large amounts of source text into the context at once. It suits long reports, policy documents, technical documentation, and multi-page comparisons. Summarization also consumes tokens, so decide whether multi-level processing is worth it based on business value. Avoid adding so many extra calls that compression costs more than it saves.
4. Avoid redundant searches
When the same question is submitted repeatedly in a short period, cache the search results. Cache entries can include query terms, result lists, page body summaries, and update timestamps. For content with low freshness requirements, a suitable cache lifetime reduces repeated calls and repeated token consumption.
Caching real-time news, prices, inventory, weather, or changing policies needs more caution. Set different expiration periods for different data types. Include the retrieval time in answers so users do not misjudge how current the information is.
5. Application Architecture Recommendations
In production, a web-connected question answering system can be divided into four modules.
Request orchestration layer
This layer decides whether a question needs web access, and whether to use search, page fetching, or a direct answer. Common knowledge, fixed knowledge, and internal knowledge base content can be handled directly, so that every question does not trigger external retrieval.
Retrieval processing layer
This layer handles query rewriting, result ranking, deduplication, and source filtering. It should not rely only on keyword matching. It should also consider question intent, time range, content type, and source credibility.
Content compression layer
This layer cleans pages, truncates body text, generates summaries, and organizes context. It is the key point for controlling token costs. Record text length before and after compression so you can analyze the results later.
Model generation layer
This layer produces the final answer. Depending on business requirements, it can include citation notes, time information, confidence hints, or statements that something could not be confirmed. For applications where factual accuracy matters, ask the model to distinguish “retrieved facts” from “inferences drawn from those facts.”
6. Monitoring and Budget Management
After unified billing, monitoring should expand from counting tool calls to full token observability. Record the following fields:
- Request ID;
- User question length;
- Whether web access was triggered;
- Number of search results;
- Number of fetched pages;
- Text length before and after cleaning;
- Input tokens;
- Output tokens;
- Total latency;
- Whether a retry occurred;
- Estimated final cost.
When token consumption for a request type keeps rising, investigate the cause. Check whether there are too many search results or whether page cleaning has failed. Check whether conversation history is being trimmed and whether model output is too long. Only by observing each step of the call chain separately can you optimize effectively.
Enterprises should also set daily or monthly budget thresholds. When token usage reaches a warning level, teams can reduce the number of search results, shorten web context, limit response length, or temporarily disable non-core web-connected features. This controls costs and prevents unusual traffic from causing unexpected spending.
7. Conclusion
This billing change reduces the complexity of billing for server-side search and page fetching. It makes web-connected capabilities easier to include in a unified model call budget. For developers, the key concerns are no longer the number of search requests. They are whether retrieved content is useful, whether context stays lean, whether conversation history is controlled, and whether token consumption is monitored continuously.
Under the new billing model, good engineering practice is to connect to the web only when needed, limit result volume, clean page content, truncate context sensibly, cache reusable results, and build a cost feedback loop through thorough monitoring. This approach preserves answer quality while making full use of web search and page analysis capabilities.
