The Real Cost of Connected Q&A: How to Calculate the Bill for 1,000 API Calls

    A cloud provider recently moved built-in search, file parsing, link reading, and voice capabilities to the API layer and waived the tool-call fee for server-triggered search and web fetching. Many read this as "connected Q&A is now free." It is not: the search action is no longer billed separately, but the fetched text still enters the context as tokens. This article breaks down the cost of 1,000 connected Q&A calls, compares model-managed retrieval with self-orchestrated pipelines, and lists practical levers—context compression, caching, off-peak scheduling, and output control—for keeping the bill predictable.

    1. The conclusion first: the action is free, inference is not

    A cloud provider announced in November that it was exposing built-in search, file parsing, link reading, voice, and other app-side capabilities at the API layer, and subsequently waived the “tool call fee” that had been charged when the server triggered search and web fetching during model calls. The most common misreading after the news spread was that connected Q&A had become free.

    The reality: when the model searches on its own and opens pages on its own, that action is no longer billed separately. But the fetched text is fed back as context and participates in inference, so tokens are still charged. The cost center shifts from tool fees to model fees. The total bill may not drop; only its structure changes.

    One judgment criterion has to be established up front: looking only at the “price per million tokens” cannot tell you whether something is expensive. Model fees, search fees, and fetch fees are three separate line items and must be compared on the same bill.

    2. Two integration paths, fundamentally different

    Option 1: let the model schedule retrieval itself. During inference, the model decides whether retrieval is needed, how many rounds to run, and which pages to open. The developer pays only model-side input and output costs; tool fees are zero. The upside is minimal rework. The downside is uncontrolled context growth—every retrieval result is appended to the input.

    Option 2: orchestrate the retrieval chain in your own code. Business code first calls the search API for a candidate list, then calls the fetch API for page text, cleans and truncates it, stitches it into the prompt, and finally hands it to the model to generate the answer. Here search and fetch are billed per successful request (a common industry rate is 5 CNY per 1,000 successful requests each for text search and web fetching; failures, timeouts, and empty results are not billed), and model fees are calculated separately.

    What separates the two options is not the model unit price but the integration approach: the first pushes cost onto tokens, the second spreads it across request counts while adding a layer of engineering space you can optimize.

    3. The bill for 1,000 built-in connected Q&A calls, line by line

    Take a general-purpose lightweight model tier that supports built-in connectivity as an example. Pricing usually has peak and off-peak tiers (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 means six hours during weekday daytime and afternoon; all other hours and public holidays are counted as off-peak.

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

    • 1,000 tasks = 6 million input + 1 million output
    • Off-peak: 6 × 1 + 1 × 4 = 10 CNY
    • Peak: 6 × 2 + 1 × 8 = 20 CNY
    • Per task: roughly 0.01 / 0.02 CNY

    Two easily overlooked premises: first, the 6,000 input tokens are the entire billable input for the whole task, including text returned across multiple retrieval rounds, not the user’s opening question; second, whether the model actually went online must be checked in the call records, not guessed. These figures are budgeting assumptions, not measured values, and do not constitute any official commitment.

    4. Sensitivity as usage scales

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

    Input per task Output per task Off-peak (1,000 calls) Peak (1,000 calls)
    6000 1000 10 CNY 20 CNY
    12000 1000 16 CNY 32 CNY
    6000 2000 14 CNY 28 CNY
    12000 2000 20 CNY 40 CNY

    The pattern is clear: doubling input adds more cost than doubling output (off-peak 6 CNY vs 4 CNY; peak 12 CNY vs 8 CNY). Cost governance in connected scenarios naturally centers on “how much text gets fed back.”

    5. Why self-built retrieval chains can cost more

    At the same model usage, running 1,000 Q&A calls through self-integrated search and fetch APIs typically lands total cost in the 30–40 CNY range. Three reasons:

    1. Search plus fetch means two successful requests stacked; 1,000 calls means roughly 10 CNY in fixed spend.
    2. Fetched text is often not trimmed server-side, so raw noise goes straight into context and pushes input tokens up.
    3. Failed retries and multi-candidate stitching further inflate request counts.

    Its value is not in being cheaper but in being controllable: retrieval sources, ranking strategy, truncation length, and caching policy are all yours to decide. It suits scenarios with strong requirements on source compliance and result stability.

    6. Practical cost-reduction levers

    • Compress context: after fetching, extract and denoise the main text first, truncate by paragraph relevance, and cut input per task from around 6,000 to the 3,000 range—cost halves immediately.
    • Use caching: place stable system prompts, tool descriptions, and long-document prefixes at the front of the context so the cache-hit unit price (0.02/0.04) replaces the cache-miss price—a spread of up to 50×.
    • Run off-peak: move offline batch jobs, log summarization, and knowledge base rebuilds to off-peak hours and the bill halves.
    • Control output: cap the thinking budget and answer length; output unit price is four times input, so tightening output pays off noticeably.
    • Make it observable: use logging and monitoring/alerting to record input, output, cache hits, and tool-call counts per task—quantify first, then optimize.

    An illustrative budgeting logic:

    1. def estimate(n, in_tok, out_tok, peak=False, cache_ratio=0.0):
    2. pin, pout = (2, 8) if peak else (1, 4)
    3. pcache = 0.04 if peak else 0.02
    4. hit = in_tok * cache_ratio
    5. miss = in_tok - hit
    6. cost = n * (miss * pin + hit * pcache + out_tok * pout) / 1_000_000
    7. return round(cost, 2)
    8. print(estimate(1000, 6000, 1000)) # 10.0
    9. print(estimate(1000, 6000, 1000, peak=True)) # 20.0
    10. print(estimate(1000, 6000, 1000, cache_ratio=0.8)) # 2.2

    7. Three recommendations for technology selection

    First, treat “free tools” as a structural change rather than an absolute price cut, and always keep the token line item in your budget model. Second, prioritize trading caching and context compression for cost—neither sacrifices quality, and the payoff is the most certain. Third, break the bill down to task-level granularity for attribution, so you do not discover at month-end that cost is concentrated in a few long-context tasks. If you need fuller retrieval governance, caching, and quota capabilities, you can build a controllable chain on your own using general-purpose offerings such as container platforms, logging services, and monitoring/alerting from Baidu AI Cloud.