Cost Breakdown for 1,000 Connected Q&A Calls: A Token-Level Bill Analysis

    This article breaks down the real cost of running 1,000 web-connected Q&A tasks after a cloud provider waived tool-call fees for server-side search and page fetching. It compares two integration paths—letting the model trigger retrieval itself versus orchestrating search and fetch in your own code—shows why model input and output tokens still dominate the bill, and provides a reusable cost formula, an off-peak versus peak pricing table, a sensitivity table for higher usage, and a practical optimization checklist for building a credible 1,000-call budget.

    1. The Conclusion First

    A cloud provider recently exposed application-side capabilities such as built-in search, web page fetching, and file parsing through its model invocation API, and announced that server-side retrieval and fetching would no longer carry a separate tool-call fee. The first reaction from many people was “connected Q&A is free now.” The reality: what was waived is the tool-call portion only. Model inference charges for input and output tokens remain unchanged, and those usually make up the bulk of the bill.

    Here is a reusable estimation baseline: assume each task consumes a cumulative 6,000 input tokens (cache miss) and 1,000 output tokens (including thinking tokens). Running 1,000 Q&A tasks costs about ¥10 off-peak and about ¥20 during peak hours in model fees. If you instead call the search API and the page-fetch API from your own program, the total cost for the same model usage lands in the ¥30–40 range. The gap does not come from a model price cut; it comes from a different integration path—the bill structure changed.

    Note: the figures above are estimates under budget assumptions, not measured data, and they are not an official commitment from any vendor.

    2. Two Integration Paths, Two Completely Different Bill Structures

    Path 1: Let the model schedule the connected capabilities itself. The model initiates retrieval and opens web pages while generating the answer. That action itself incurs no tool fee; however, the fetched material enters the context and participates in inference, so it is billed as input tokens. Cost grows linearly with context length.

    Path 2: Orchestrate the retrieval chain on the program side. First call the search API to get a result list, then call the fetch API to get page bodies, clean and truncate them, and splice them into the prompt. Search and fetch are generally billed per successful request (a common industry baseline is a few yuan per thousand successful requests); failed, timed-out, and empty-result requests are typically not billed. Model fees are calculated separately.

    You cannot judge whether something is expensive by looking at the “price per million tokens” alone. The right approach is to put three fee categories into one table: model input fees, model output fees, and successful-request fees for search and fetch.

    1. Total cost = input tokens/1e6 × input unit price
    2. + output tokens/1e6 × output unit price
    3. + successful search requests/1000 × search unit price
    4. + successful fetch requests/1000 × fetch unit price

    3. Step-by-Step Estimate for 1,000 Built-In Connected Q&A Calls

    Take a lightweight model tier that supports built-in connectivity as an example. Pricing usually has off-peak and peak tiers (unit: yuan per million tokens):

    Billing item Off-peak Peak
    Input, cache miss 1 2
    Input, cache hit 0.02 0.04
    Output 4 8

    Peak generally refers to several time slots during weekday daytime and afternoon; the rest is off-peak. Refer to the vendor’s page for specifics.

    Plugging in the assumptions: 6,000 cache-miss input tokens + 1,000 output tokens per task, 1,000 tasks means 6 million input + 1 million output, with zero tool fees.

    • Off-peak: 6 × 1 + 1 × 4 = ¥10
    • Peak: 6 × 2 + 1 × 8 = ¥20

    That works out to about 1 or 2 cents per task. A common mistake here: the 6,000 input tokens are the entire billable input for the whole task, including the page bodies returned across multiple tool rounds—not the user’s opening sentence. Whether the model actually went online depends on the tool-call fields in the invocation record.

    4. Sensitivity When Usage Scales Up

    A single-point estimate is not enough. Scale linearly at the same unit prices:

    Input per task Output per task Off-peak (1,000 calls) Peak (1,000 calls)
    6,000 1,000 ¥10 ¥20
    12,000 2,000 ¥20 ¥40
    30,000 1,500 ¥36 ¥60
    6,000 500 ¥8 ¥16

    Doubling the input side affects the bill far more than doubling the output side, because almost all the retrieved page text is counted as input.

    5. Why a Self-Built Retrieval Chain Costs More

    Path 2 splits cost into three parts: successful search request fees, successful fetch request fees, and the input fees from “stuffing long page bodies into the context.” A single Q&A often triggers multiple searches and multiple page fetches, so request counts go up and input tokens go up, which is how the ¥30–40 range appears. Its advantage is not saving money but control: you can customize ranking, deduplication, truncation policies, and source whitelists, which suits scenarios with high requirements on citation quality and compliance.

    6. Optimization Checklist

    1. Compress the context: extract main text and summarize after fetching, then feed it into the prompt, instead of dumping whole pages in.
    2. Use caching: put stable system prompts, tool descriptions, and long document prefixes at the front to raise the cache hit ratio; the hit unit price is usually one to two orders of magnitude lower.
    3. Control rounds: cap the maximum tool calls and maximum pages fetched per task to prevent uncontrolled context growth.
    4. Run off-peak: schedule batch offline tasks in off-peak slots and the cost is cut in half.
    5. Measure on a small sample first: run 50–100 calls on real data, record average input/output and success rate, then extrapolate to a 1,000-call budget.
    6. Make it observable: use logging and monitoring alerts to record token volume, tool-call counts, and failure rate per invocation, so you can trace a billing anomaly to a specific chain.

    7. Closing

    The “tool fee waiver” changes only a small slice of the bill. What determines the total is still context length, number of rounds, and time-slot choice. Only by modeling model fees, search fees, and fetch fees together, then calibrating the parameters with a small-sample measurement, can you produce a credible 1,000-call budget instead of being led around by a unit-price table.