Server-Side Search and Web Scraping Billing Changes: What Developers Need to Know
A model service provider has updated its API billing rules for server-side search and web scraping triggered during model calls. This article explains the difference between built-in model capabilities and standalone search/scraping APIs, how default tool settings affect costs, and how developers can estimate and control spending for retrieval-augmented applications.
Recently, a model service provider announced new API billing rules. The core of this adjustment is not that all search and web scraping capabilities are now free. Instead, the billing model for search and scraping that is automatically triggered on the server side during a model call has been optimized. For developers, the key to understanding this change is distinguishing between the model’s built-in invocation chain and standalone API calls. Confusing the two can lead to inaccurate budget estimates or runaway application costs.
1. What the Change Actually Covers
According to the public announcement, starting from a specified date, when a developer sends a request through the model API and the model invocation process triggers server-side search or web scraping, the search and scraping actions themselves are no longer billed separately per request. Developers primarily pay based on the number of tokens actually consumed by the model.
Here, “server-side search and scraping” can be understood as an auxiliary capability within the model’s inference pipeline:
- The model determines whether external information is needed based on the user’s question;
- The server executes the search or accesses relevant web pages;
- The retrieved content is organized into context the model can process;
- The model generates the final result using that context;
- Costs are mainly reflected in token consumption from model input, output, and the added context.
This billing approach reduces the number of separate chargeable items in the model invocation chain. For applications that need real-time information, web content analysis, or fact verification, developers no longer need to account for a separate API fee for every search action automatically triggered by the model.
However, this does not mean search and web scraping are free in all scenarios. The new rule specifically applies to server-side capabilities triggered during model calls. It does not cover the standalone search API and the standalone web scraping API.
2. Standalone APIs vs. Built-In Model Capabilities
From an application architecture perspective, there are typically two ways to use search capabilities.
2.1 Server-Side Capabilities Triggered by Model Calls
In this mode, developers only call the model API and enable the relevant browsing, retrieval, or web analysis capability in the request. The search process is executed automatically by the server based on the model’s needs, and developers usually do not need to manage search requests separately.
Advantages include:
- Relatively simple integration;
- No need to orchestrate search results and model context manually;
- Well suited for model-driven tasks such as Q&A, summarization, and fact checking;
- A more centralized billing structure centered on token usage.
One caveat: once search results are added to the model’s context, input token counts can increase. Even if search actions are no longer billed per request, the total token consumption of the final model request may still rise. Therefore, “no separate search fee” does not equal “lower total request cost.” Actual cost still depends on the volume of retrieved content, context length, model input/output size, and call frequency.
2.2 Standalone Search and Web Scraping APIs
Standalone APIs are better suited when developers want full control over the retrieval pipeline. For example, an application can call the search API to get results, filter target pages, call the scraping API to extract page content, and finally submit the processed content to the model.
This approach offers greater control. Developers can decide:
- How search keywords are generated;
- How many results to keep;
- Which pages enter downstream processing;
- Whether to apply deduplication, caching, and quality filtering;
- What content is ultimately passed to the model.
However, standalone APIs are billed per successful request. The published pricing shows that both the search API and the web scraping API are charged at 5 yuan per 1,000 successful requests. This means that if a single business request involves multiple rounds of searching or scraping several pages, API costs accumulate with the number of successful requests.
Therefore, developers should clarify their business goals before designing the system. If the goal is to have the model answer questions directly, built-in server-side capabilities may be more appropriate. If the goal is to build a controlled retrieval pipeline, a knowledge collection workflow, or batch web processing tasks, standalone APIs offer more flexibility.
3. Impact of Default Tool Strategy Changes
Alongside the billing adjustment, a pre-release version of an AI coding tool has also changed its default search behavior. The basic strategy is:
- When using the corresponding model, it defaults to that model provider’s server-side search;
- When using other models, it defaults to the standalone search API;
- The former no longer incurs per-search-request charges;
- The latter is still billed per successful request to the standalone API.
This change shows that default settings in development tools directly affect application costs. Even without modifying any business code, simply upgrading the tool version or switching models can change the underlying search chain.
In real projects, check the following:
3.1 Default Search Mode
Confirm whether the tool currently uses the model’s built-in search or the standalone search API. The two differ in cost, context organization, error handling, and observability.
3.2 Model Switching Behavior
If the system supports multiple models, verify whether all models use the same search strategy. Do not assume every model automatically benefits from the same billing rules.
3.3 Release Notes
Pre-release versions may include default behavior changes. Before upgrading, read the release notes and validate search request counts, model token consumption, and final billing changes in a test environment.
3.4 Configuration Overrides
Some tools allow developers to explicitly specify the search mode. For production systems, avoid relying entirely on defaults. Pin critical strategies through configuration files or deployment parameters to reduce hidden changes introduced by version upgrades.
4. How Developers Should Calculate Costs
It is recommended to break down a complete business request into three cost categories:
Model Costs
These include input tokens, output tokens, and additional context tokens introduced by retrieved content. Although server-side search is no longer billed per request, more search results and longer web page content can significantly increase model input size.
Standalone API Costs
These include the number of successful search API requests and successful scraping API requests. If a task performs multiple retrieval rounds or scrapes multiple pages, calculate based on the actual number of successful requests, not just the number of user requests.
Engineering and Infrastructure Costs
These include caching, logging, task queues, content cleaning, database storage, and monitoring. In batch scraping scenarios, engineering costs can sometimes exceed the API fees themselves, so focusing only on per-call API pricing is not enough.
A simple cost estimation model can be expressed as:
Total cost =Model input token cost+ Model output token cost+ Successful search requests × search unit price+ Successful scraping requests × scraping unit price+ Caching, storage, and compute costs
If you use server-side search triggered by model calls, the standalone search and scraping request fees no longer need to be listed separately, but you still need to monitor their impact on model token usage.
5. General Practices for Reducing Costs
First, add caching. For identical keywords, identical pages, or content that changes little over short periods, cache search results and page content to avoid repeated calls.
Second, control retrieval scope. Do not pass all search results and full web pages directly into the model. Apply result filtering, content extraction, deduplication, and length limits first.
Third, set call limits. Cap the maximum number of search rounds, scraped pages, and context length per task to prevent abnormal tasks from continuously amplifying costs.
Fourth, distinguish real-time from non-real-time tasks. Use online search only for requests that genuinely require the latest information. For stable knowledge, prefer local knowledge bases, caches, or preprocessed data.
Fifth, log the full pipeline. At minimum, record the model name, search mode, successful request counts, number of scraped pages, input tokens, output tokens, and task duration for cost attribution.
Sixth, establish version regression testing. After upgrading a tool or switching models, use a fixed test set to compare search call counts, token consumption, response quality, and cost changes.
6. Conclusion
The key point of this rule change is that server-side search and web scraping triggered during model calls are now absorbed into the model token billing system, while the standalone search API and standalone web scraping API are still billed per successful request. There is no simple “paid vs. free” distinction between the two types of capability. What really matters is the invocation chain, default configurations, and final resource consumption.
For developers, the safest approach is: first clarify business requirements, then choose between built-in server-side capabilities and standalone APIs. At the same time, pin the search strategy through configuration, use caching, rate limiting, and content trimming to control costs, and re-verify billing behavior after version upgrades. Only by managing model costs, API costs, and engineering costs within a single budget framework can you accurately assess the long-term operating cost of retrieval-augmented applications.
