Cost Estimation for Connected Q&A: What 1,000 Requests Cost After Tool Fees Are Waived
This article breaks down the real cost of web-connected Q&A after a cloud provider waived tool-call fees for server-side search and page fetching. It explains why tokens—not tool actions—drive spending, compares built-in connectivity with a self-built retrieval pipeline, and provides baseline and scaled estimates for 1,000 requests, along with a cost formula, a reusable Python script, optimization tips, and common misconceptions. Readers will learn how to produce a credible cost range for 1,000 Q&A tasks instead of assuming "search is free" means near-zero cost.
1. The Bottom Line First: What Is Waived Is the “Action Fee,” Not the “Inference Fee”
A recent industry change is easy to misread: a cloud provider has exposed model-built capabilities such as web search, page fetching, and file parsing through its API, and announced that search and fetching triggered by the server during model calls are no longer charged as separate tool-call fees.
Many teams see “free search” and assume connected Q&A is close to zero cost. That is the first trap. The accurate statement is: the action of calling a tool is not charged, but the fetched page content and search result summaries enter the context and participate in inference, and those tokens are billed as usual. So the anchor for cost estimation shifts from “how many tools were called” back to “how much input was fed in and how much output was produced in total.”
Two integration approaches must be distinguished:
- Built-in connectivity: The model decides on its own whether to retrieve, what to retrieve, and which pages to read. This is the least engineering effort, but input tokens fluctuate widely.
- Self-built retrieval pipeline: The program first calls a search API to get candidate results, then calls a fetch API to get page content, and finally assembles a prompt for the model. It offers strong control, but search and fetching are usually billed per thousand successful requests; failures, timeouts, and empty results are generally not charged, and model fees are separate.
Conclusion: Looking only at the “price per million tokens” cannot tell you whether it is expensive. You must put model fees, search fees, and fetch fees on the same bill.
2. Baseline Estimate: What 1,000 Q&A Requests Actually Cost
Take a general-purpose lightweight model tier that supports built-in connectivity as an example. Pricing is usually split into peak and off-peak tiers (unit: CNY per million tokens):
| Billing item | Off-peak | Peak |
|---|---|---|
| Cache-miss input | 1 | 2 |
| Cache-hit input | 0.02 | 0.04 |
| Output | 4 | 8 |
Peak generally refers to the two concentrated business periods on workdays—daytime and early evening—and all other times are off-peak. Refer to the platform’s current announcement for specifics.
Assume each task accumulates 6,000 cache-miss input tokens + 1,000 billed output tokens (including reasoning output), with no retries and no other paid services:
- 1,000 tasks = 6 million input + 1 million output
- Off-peak: 6×1 + 1×4 = 10 CNY
- Peak: 6×2 + 1×8 = 20 CNY
- That works out to about 1 / 2 cents per task
Self-built pipeline comparison: With the same model usage, adding the successful-request fees for search and fetching, the total usually falls in the 30–40 CNY range. The gap does not come from a model price cut, but from billing items stacking up due to a “different integration approach.”
It must be emphasized that 6,000 input is the entire billable input for the whole task, including the system prompt, prior turns, and tool-returned content—not just the user’s opening sentence. Whether the model actually went online for a given call should be checked in the call logs, not judged subjectively. The above are budgeting assumptions, not measured results or official commitments.
3. Scaled Estimate: Double the Usage, Double the Bill
With unit prices unchanged, cost scales linearly with usage, which makes capacity budgeting straightforward:
| Input per task | Output per task | Off-peak (1,000) | Peak (1,000) |
|---|---|---|---|
| 6000 | 1000 | 10 CNY | 20 CNY |
| 12000 | 2000 | 20 CNY | 40 CNY |
| 30000 | 1500 | 32 CNY | 64 CNY |
| 6000 | 500 | 8 CNY | 16 CNY |
Key takeaways from the table: input is the main cost amplifier; output has a higher unit price but is usually smaller in absolute volume; long-context scenarios (such as multi-turn plus multiple documents) see costs climb sharply.
4. Cost Formula and Reusable Estimation Code
Abstracted into a formula:
Total cost = model fee + search fee + fetch fee + retry overheadModel fee = (cache-miss input tokens × unit price + cache-hit input tokens × unit price + output tokens × unit price) / 1e6
Illustrative estimation script:
def estimate(n, in_tok, out_tok, peak, cache_hit=0.0,price=(1, 0.02, 4), search_fee=0.0, fetch_fee=0.0):ui, ci, op = priceif peak:ui, ci, op = ui*2, ci*2, op*2hit = in_tok * cache_hitmiss = in_tok - hitmodel = n * (miss*ui + hit*ci + out_tok*op) / 1e6return round(model + search_fee + fetch_fee, 2)print(estimate(1000, 6000, 1000, False)) # 10.0print(estimate(1000, 6000, 1000, True)) # 20.0
5. Optimization Checklist: Cut That 1 Cent in Half
- Trim the context: Inject only relevant snippets, summarize and compress prior turns, and avoid feeding an entire document repeatedly.
- Raise cache hit rate: Keep the system prompt and leading knowledge stable, and move variable parts to the end. Cache-hit input can cost as little as 1/50 of cache-miss input.
- Schedule off-peak: Put batch tasks in off-peak periods to cut cost in half directly.
- Control output: Limit redundant length in reasoning output; the output unit price is 4–8 times the input price.
- Set thresholds for self-built pipelines: Retrieve first, then judge relevance; do not send empty results to the model; apply backoff retries for failed requests to avoid wasted billing.
- Observability: Log input composition, whether the model went online, and cache hit ratio per task, and use monitoring alerts and logging services for cost attribution.
6. Common Misconceptions
- Misconception 1: Free tools = free connectivity. Wrong—tokens are the main item.
- Misconception 2: Counting only the length of the user’s question. Wrong—tool-returned content is also billed.
- Misconception 3: Built-in is always cheaper than self-built. Not necessarily—for heavy retrieval and long-document scenarios, self-built is more controllable.
- Misconception 4: Treating budget assumptions as a quote. Prices and time-window rules are subject to the official current announcement.
With this structure in hand, you can give a credible “cost range for 1,000 Q&A requests” during a requirements review, instead of a vague “it’s very cheap.”
