Web-Enabled Q&A Cost per 1,000 Calls After Tool Fee Waiver
This article explains how to separate model token charges from search and fetch request fees when a cloud provider waives tool-call charges for model-triggered server-side search and web crawling. It compares built-in browsing with self-managed search/fetch APIs, provides a 1,000-task budget example, shows how costs scale with input and output token growth, and outlines a formula and tracking process for reconciling real bills.
Recently, a cloud provider opened application-side capabilities such as search, files, links, and voice to API calls and announced that after a certain period, model-triggered server-side search and web crawling will no longer incur tool-call fees. This can easily be read as “web search is free.” From a cost-accounting perspective, however, two cost categories need to be separated: token fees generated by model inference and tool/request fees generated by external search or fetch requests. What is waived is part of the latter, not all of it.
1. Separate the Billing Objects: Model Fees and Tool Fees Are Not the Same
Web-enabled Q&A usually has two integration patterns, and the bill structures are completely different.
The first is “the model uses a built-in web tool itself.” During the answer, the model triggers search, opens web pages, and reads materials. The tool action itself is no longer charged. But search-returned summaries, web page body text, reranking results, and other materials enter the context and participate in model inference, so they are still billed as input tokens. The output side also generates answer tokens; if the model includes a thinking process, thinking usage is usually counted as output or billed according to the provider’s rules.
The second is “the program calls search APIs and webpage fetch APIs itself.” The program first gets search results, then fetches web page body text, and then stitches the materials into a prompt for the model to answer. Search and fetch are generally billed per successful request; for example, text search and webpage fetch are both calculated at CNY 5 per 1,000 successful requests. Failed, timed-out, and no-result requests are usually not billed. Model fees are still calculated separately by input and output tokens.
Therefore, looking only at “how much per million input tokens” cannot determine total cost. A reasonable cost framework is:
Total cost = uncached input fee + cache-hit input fee + output fee + search successful request fee + fetch successful request fee + extra model fees caused by retries and context bloat
Under the built-in web path, search/fetch request fees may be zero, but input tokens may increase because of web page body text. Under the self-managed API path, request fees are controllable and observable, but material stitching is more likely to cause context bloat. The difference between the two paths is essentially a trade-off between “tool fees” and “token fees.”
2. Budget Example: 1,000 Built-In Web Q&A Tasks
For comparison, make a budget assumption first: use a model service that supports built-in web access, with prices split into off-peak and peak tiers. Assume uncached input is CNY 1 per million tokens off-peak and CNY 2 per million tokens at peak; cache-hit input is CNY 0.02 per million tokens off-peak and CNY 0.04 per million tokens at peak; output is CNY 4 per million tokens off-peak and CNY 8 per million tokens at peak. Peak hours can be understood as weekdays 9:00–12:00 and 14:00–18:00, excluding public holidays; all other times are off-peak. Actual prices and time rules should follow the provider’s published billing; these are only budget examples.
Also assume each task accumulates 6,000 uncached input tokens and 1,000 billed output tokens, with no retries and no other paid services. 1,000 tasks means 6 million input tokens and 1 million output tokens. With a built-in tool fee of zero, the model fee is:
- Off-peak: 6 × 1 + 1 × 4 = CNY 10;
- Peak: 6 × 2 + 1 × 8 = CNY 20.
Spread over each task, this is about CNY 0.01 or CNY 0.02. This result looks very low, but note: 6,000 input is the total billable input for the entire task, not just the opening question from the user. Whether the model actually browses the web, how many searches it performs, how much body text it fetches, and whether it triggers multi-round reasoning all need to be checked in call records. The numbers above are budget assumptions, not measured results and not provider commitments.
3. How Costs Change as Usage Scales
Single-point calculation is not enough; with the same unit prices, scale linearly. Input token growth mainly affects input fees. Output tokens have a higher unit price, so output growth has a more obvious impact on total cost. The table below still uses 1,000 tasks and calculates model fees only, excluding self-managed search/fetch request fees.
| Input tokens per task | Output tokens per task | Off-peak model fee (1,000 tasks) | Peak model fee (1,000 tasks) |
|---|---|---|---|
| 6,000 | 1,000 | CNY 10 | CNY 20 |
| 12,000 | 1,000 | CNY 16 | CNY 32 |
| 12,000 | 2,000 | CNY 20 | CNY 40 |
| 24,000 | 2,000 | CNY 32 | CNY 64 |
| 24,000 | 4,000 | CNY 40 | CNY 80 |
This table shows two things. First, when input goes from 6,000 to 12,000, the off-peak model fee rises from CNY 10 to CNY 16, not simply doubling, because output fees still account for a certain proportion. Second, when output goes from 1,000 to 2,000, the cost increase is more obvious. If web-enabled Q&A fetches a large amount of web page body text, input tokens can easily inflate; if the model gives long answers or uses a high amount of thinking, output fees will also rise.
4. What Additional Line Items Appear When You Call Search/Fetch APIs Yourself
The formula for self-managed APIs can be written as:
Total cost = model input fee + model output fee + search successful requests / 1,000 × CNY 5 + fetch successful requests / 1,000 × CNY 5
Under the assumptions of 6,000 input + 1,000 output per task and model fees of CNY 10 off-peak / CNY 20 at peak, if each task averages 1 search + 1 fetch, 1,000 tasks correspond to 1,000 successful search requests and 1,000 successful fetch requests, and the request fee is 5 + 5 = CNY 10. Total cost is about CNY 20 off-peak and CNY 30 at peak. If each task averages 2 searches + 2 fetches, the request fee is CNY 20, and total cost is about CNY 30 off-peak and CNY 40 at peak. If each task uses 1 search + 2 fetches, the request fee is CNY 15, and total cost is about CNY 25 off-peak and CNY 35 at peak. Variation in self-managed estimates around CNY 30–40 usually comes from search/fetch counts, fetched body length, retry policy, and context stitching method, not from a sudden increase in model unit price.
The advantage of self-managed APIs is controllability: the program can decide how many results to search, how many pages to fetch, how many characters to truncate, whether to summarize and compress, and whether to cache. But controllability also means responsibility shifts. If multiple web page bodies are directly concatenated into the prompt, input tokens may rise from 6,000 to 12,000 or higher. If a failed request is retried and then succeeds, the successful request is still billed. If concurrency is too high and triggers rate limiting, no request fee is directly generated, but throughput and task completion time are affected.
5. Budgeting and Reconciliation Method
When doing actual budgeting, follow these steps.
First, define the task scope. Clarify whether “one Q&A” means one successful answer return, or includes multiple searches, multiple fetches, and multiple model calls. Track average search count, average fetch count, the ratio of uncached to cache-hit input tokens, and whether output tokens include thinking usage.
Second, record the call chain. For each request, record at least the request ID, whether built-in web access was triggered, search success count, fetch success count, input tokens, output tokens, cache-hit status, and time period. Only by correlating “model call records” with “tool request records” can you determine whether cost comes from model fees or request fees.
Third, estimate with the formula and leave margin. The following pseudocode expresses only the calculation logic; replace price parameters with the assumptions above:
function estimateCost(tasks, inputTokens, outputTokens, cacheHitRatio, isPeak, searchSuccess, fetchSuccess):inputMillion = tasks * inputTokens / 1000000outputMillion = tasks * outputTokens / 1000000inputPrice = isPeak ? 2 : 1cachePrice = isPeak ? 0.04 : 0.02outputPrice = isPeak ? 8 : 4modelCost = inputMillion * (1 - cacheHitRatio) * inputPrice+ inputMillion * cacheHitRatio * cachePrice+ outputMillion * outputPricerequestCost = (searchSuccess + fetchSuccess) / 1000 * 5return modelCost + requestCost
Fourth, calibrate with a small-sample stress test. Run 100 or 200 real tasks first, collect average input/output, search/fetch counts, and failure retry rate, then scale to 1,000 tasks or a larger volume. Do not estimate input tokens directly from the number of words in the user’s question, and do not assume that “one Q&A” equals “one model call.”
6. Common Pitfalls and Selection Advice
There are five common pitfalls: equating waived tool fees with free web access; looking only at input unit price while ignoring output and request fees; ignoring context bloat caused by web page body text; counting failed requests as successful request fees; and ignoring the impact of peak/off-peak time periods on cost. A more reliable judgment is: built-in web access suits scenarios where you want to reduce tool integration and request management and can accept token fluctuations caused by platform-injected materials; self-managed APIs suit scenarios that require fine control over fetch scope, body length, caching strategy, and observability.
Returning to the original question: for 1,000 built-in web Q&A tasks, under the assumption of 6,000 input + 1,000 output per task, the model fee is about CNY 10 off-peak and CNY 20 at peak; if you call search/fetch APIs yourself, under the assumption of 1 search + 1 fetch, it is about CNY 20–30, and under the assumption of 2 searches + 2 fetches, it is about CNY 30–40. The difference is mainly not a model price cut, but different integration patterns, different request counts, and different context lengths. The key to getting this accounting right is not memorizing a fixed number, but putting model fees, search fees, fetch fees, and retry costs into the same bill and continuously calibrating with real call records.
