Model Search and Web Fetch Billing Shift: From Request Fees to Token Consumption
This article explains a billing change for server-side search and web fetching triggered by model calls: independent request fees are removed and usage is folded into model token billing. It breaks down the cost implications for agents and RAG, outlines trigger paths, budget monitoring, migration checks, and risk controls, and offers practical guidance for designing token-aware orchestration.
According to public information, starting at 12:00 Beijing time on November 18, 2026, one model service will no longer bill server-side search and web fetching separately when they are triggered during model calls. Instead, this usage will be consolidated into model token usage billing. Previously, search and fetch capabilities were offered as independent interfaces and billed by the number of successful requests, with a published price of RMB 5 per 1,000 successful requests. The search interface returned structured results by query term, while the fetch interface retrieved a single web page and returned its title and body as Markdown text. The key point of this adjustment is not that “search becomes free,” but that the billing basis shifts from “request count” to “model token consumption.” Developers need to reunderstand the call chain, cost structure, and optimization priorities.
1. Billing Change Breakdown: From Request Fees to Token Fees
Under the previous model, server-side search and web fetching were relatively independent metering units: one successful search or fetch generated the corresponding request fee, while the model itself was billed separately for input and output tokens. Under the new model, search and fetching no longer generate independent request fees, but search results, web page bodies, and tool call results enter the model context and usually increase input tokens. Tool planning, result consolidation, answer generation, and other steps may still produce output tokens. As a result, the bill structure is simplified from “request fees + token fees” to “token fees.” Whether total cost falls depends on search result length, fetched body size, context reuse, and the number of model calls.
For developers, the most direct change is improved cost predictability: budgets are mainly built around tokens, making it easier to account for costs uniformly at the model gateway or application layer. At the same time, developers should watch for “hidden token inflation”: if a full long page is fetched, a large number of candidate results are returned, or multiple rounds of repeated calls occur, input tokens may increase significantly and offset or even exceed the previous request fees. In other words, the billing adjustment moves the optimization focus from “sending fewer requests” to “consuming less context.”
2. Typical Paths That Trigger Server-Side Search
Public information mentions that using web-connected tools and web search tools in some compatible interfaces can trigger server-side search. From an engineering perspective, these can be abstracted into three categories: first, the model actively chooses web search during tool orchestration; second, the application declares that web search is needed through compatible tool calls; third, retrieval-augmented flows inject search or fetch results before or after model calls. Regardless of the path, it is advisable to uniformly encapsulate a “search/fetch tool layer” at the application layer rather than letting business code trigger these capabilities in a scattered way. Otherwise, metering, auditing, and degradation strategies are difficult to unify.
Illustrative pseudocode:
def answer_with_search(query, budget):plan = model.plan(query)if plan.need_search and budget.allow_search():results = search_tool.search(query, top_k=3) # Server-side searchpages = [fetch_tool.fetch(r.url) for r in results[:2]] # Fetch on demandcontext = compress(pages) # Summarize, deduplicate, truncatereturn model.answer(query, context=context)return model.answer(query)
The important part of the code is not the specific interface, but the control points: whether to trigger, how many results to return, how many pages to fetch, how to compress context, and how budget blocks calls.
3. Impact on Agent and RAG Cost Structures
In Agent scenarios, search and fetching are often triggered by multiple rounds of model decisions. Without limiting the maximum number of tool call rounds, repeated searches, duplicate fetches, and context stacking may occur, causing token usage to keep growing. It is advisable to set a maximum number of search rounds, a maximum number of fetched pages, and a body truncation threshold per page, and to cache identical queries or identical content fingerprints. In RAG scenarios, the search interface returns structured results and the fetch interface returns Markdown bodies, which are suitable for secondary chunking and reranking. However, summaries, titles, and key passages should be prioritized rather than injecting entire pages into context.
Cost optimization can follow the order of “retrieve first, fetch second, compress third”: first use search results to judge relevance and fetch only the TopK pages; after fetching, perform body extraction, deduplication, and segmented summarization; finally send only the fragments most relevant to the question into the model. For long documents, keyword recall and paragraph scoring can be performed first, followed by dynamic truncation according to the token budget. This uses the convenience of server-side search and fetching while controlling input tokens.
4. Budget Monitoring and Observability
After billing is unified under tokens, the monitoring system should be built around token distribution: count input tokens, output tokens, cache hit rate, average search trigger rate, average number of fetched pages, and per-request token percentiles by business line, interface, and tool call type. Logs can record request ID, number of tool calls, query hash, fetched content hash, token estimates before and after context compression, and number of budget blocks, while avoiding logging sensitive body content. Through log services and monitoring alerts, set daily budgets, hourly budgets, and alerts for abnormal spikes. When a single request exceeds the token threshold, automatically degrade to cached results or a pure model answer.
Enterprise users should also pay attention to allocation and auditing: aggregate token consumption by department, application, tenant, and task type, and distinguish scenarios such as search augmentation, ordinary Q&A, and batch processing. Set quotas and rate limits for high-consumption tenants, and enable result reuse for low-value, high-frequency queries. If general cloud object storage is used to save cached content, message queues are used to smooth peaks, and log services are used for auditing, lifecycle management and access control should be implemented to prevent cache costs from getting out of control.
5. Migration and Acceptance Checklist
During migration, it is advisable to first collect baseline statistics: search/fetch request volume and request fee share before the adjustment, model token share, average fetched body length, and cache hit rate. After the adjustment, focus on total token cost, per-request token percentiles, search trigger rate, fetch success rate, and answer quality. Acceptance can include: whether budget alerts work; whether repeated queries hit the cache; whether long web pages are truncated according to thresholds; whether failed retries are limited; whether tool calls can be disabled; whether bills can be split by tenant; and whether one-click degradation is available during anomalies. The rollback strategy should retain two switches: “disable search augmentation” and “switch to cached answers.”
6. Risks and Best Practices
A billing adjustment does not necessarily mean lower costs. If search returns overly long content, fetched pages contain much noise, or the model performs multiple rounds of summarization, token costs may rise. Best practices include: limit the number of results and fetched pages; prioritize titles, summaries, and key passages; perform content fingerprint deduplication and semantic caching; set TTL and expiration policies; perform limited retries for fetch failures; process high-cost queries asynchronously in batches; comply with the target site’s robots protocol and relevant laws and regulations; and protect against prompt injection in user input and web content. Ultimately, search and fetching should be treated as “context production stages,” and orchestration strategies should be designed around the token budget. Only then can a stable, explainable, and optimizable cost structure be achieved under the new billing basis.
