The Cost of Web-Connected Q&A: How to Do the Math After Tool Fees Are Waived

    This article breaks down the real cost of web-connected Q&A once built-in retrieval and page-fetching tool fees are dropped. It compares two integration patterns, walks through a baseline estimate for 1,000 queries, provides a scaling table, and highlights common pitfalls and practical cost-control measures. Readers will learn to put model, search, and fetch costs on a single bill instead of judging price by per-million-token rates alone.

    1. The Conclusion First

    “Web search with no tool fee” does not mean “web-connected Q&A is free.” When a model service exposes server-side retrieval and web page fetching as built-in capabilities and removes tool-call billing for those actions, the cost of a single web-connected query still comes from three parts: the tokens consumed by model inference, retrieval requests, and web page content fetching requests. The tool fee for the latter two drops to zero only when retrieval and fetching are completed inside the model. Even then, the material that gets read into the context turns into input tokens and keeps being billed.

    So judging whether it is expensive cannot rely on “how much per million tokens” alone. You need to put the model fee, retrieval fee, and fetching fee on one bill. This article uses a clear set of usage assumptions to calculate the cost of 1,000 web-connected queries line by line, and provides a scaling and reusable estimation method.

    2. Two Integration Patterns, Two Completely Different Bills

    The first pattern is “letting the model use web capability itself.” The model initiates retrieval and opens web pages on its own while generating the answer, and these actions are no longer charged separately. But the fetched content enters the context and participates in inference, so tokens are still billed.

    The second pattern is “orchestrating retrieval and fetching in your own code.” Business code first calls a search API to get a result list, then calls a fetch API to get the content, and then assembles the organized material into the prompt for the model. On this path, retrieval and fetching are usually billed per successful request (a common industry measure is a few yuan per thousand successful requests). Failed, timed-out, and no-result requests are not billed, and the model fee is calculated separately.

    An illustrative pseudocode comparison:

    1. # Pattern A: built-in web access, tool fee is 0, material is billed by token once it enters the context
    2. resp = model.chat(messages, tools=["builtin_web"])
    3. # Pattern B: self-orchestrated, retrieval/fetching billed per successful request, model fee separate
    4. hits = search_api(query) # one success = one retrieval charge
    5. pages = [fetch_api(u) for u in hits][:3] # one success = one fetch charge
    6. resp = model.chat(messages + pages)

    3. Baseline Estimate for 1,000 Built-In Web-Connected Queries

    Taking a general-purpose model tier that supports built-in web access as an example, pricing usually has off-peak and peak tiers (unit: yuan 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 two consecutive periods during weekday daytime and early afternoon, with all other times counted as off-peak. The exact definition follows what the service provider publishes.

    Assume each task accumulates 6,000 cache-miss input + 1,000 billed output (including thinking usage), with no retries and no other paid services stacked on top:

    • 1,000 tasks = 6 million input + 1 million output, built-in tool fee 0
    • Off-peak: 6×1 + 1×4 = 10 yuan
    • Peak: 6×2 + 1×8 = 20 yuan
    • Per query: about 0.01 yuan / 0.02 yuan

    If the same usage instead uses self-orchestrated retrieval and fetching, at a common measure of 5 yuan per thousand successful requests, 1,000 queries add at least 5 yuan in retrieval fees. If each query also fetches one web page, add another 5 yuan, putting the total in the 20–30 yuan range. When the fetch count rises to 2–3 pages, it enters the 30–40 yuan range. The root of the gap is not a model price cut but a different integration pattern.

    It must be emphasized that 6,000 input is the entire billable input for the whole task, not just the user’s opening question. Whether the model actually goes online for a given call should be checked in the call records, not judged subjectively. All of the above are budgeting assumptions, not measured data, and not a commitment from any service provider.

    4. Comparison Table as Usage Scales

    With unit prices unchanged, cost scales linearly with usage and can be converted directly by total token volume:

    Input per task Output per task Off-peak (1,000 queries) Peak (1,000 queries)
    3000 500 5 yuan 10 yuan
    6000 1000 10 yuan 20 yuan
    12000 2000 20 yuan 40 yuan
    24000 4000 40 yuan 80 yuan

    You can see that input being “puffed up” by retrieved content is the main driver of rising cost. Although the output unit price is higher, it is usually not the largest item in web-connected Q&A scenarios.

    5. Four Common Pitfalls

    1. The cache-hit price and cache-miss price differ by about 50x. If the system prompt, tool descriptions, and fixed background material can be reused stably, hitting the cache can significantly lower input cost. Conversely, if a large chunk of changing content is assembled in every time, the hit rate will be very low.
    2. Failed requests are not billed, but retries generate new model tokens. A failed retrieval itself is not charged, but once you retry the failed result and feed it to the model again, the input volume doubles.
    3. Context bloat often comes from the intuition that “fetching a few more pages is safer.” It is recommended to limit the number of fetches, extract and truncate the content first, and only then put it into the context.
    4. The peak and off-peak price differ by about 2x. Scheduling batch, offline, and deferrable tasks into off-peak periods is a zero-cost optimization.

    6. An Actionable Cost Governance Checklist

    • Set a per-task token budget cap; truncate or downgrade to a non-web answer once it is exceeded;
    • Use monitoring alerts and logging services to record the input/output tokens, retrieval count, and fetch count for each request, forming a verifiable bill breakdown;
    • Cache results for high-frequency, homogeneous questions to reduce repeated retrieval and repeated inference;
    • Make “whether to go online” a configurable switch, enabled by tier according to business value;
    • Periodically re-run the estimation model with real call data instead of assumptions pulled out of thin air.

    Putting the model fee, retrieval fee, and fetching fee into a single table, then running a sensitivity analysis by off-peak/peak and cache hit, is the right way to judge whether web-connected Q&A is expensive.