Cost of Connected Q&A: Breaking Down the Bill for 1,000 API Calls
This article breaks down the real cost of connected (web-augmented) Q&A across 1,000 calls. It explains why "free built-in tools" does not mean free retrieval, compares two integration approaches (model-driven retrieval versus programmatic search and fetch), and shows tiered per-million-token pricing with peak and off-peak rates. You will find a line-by-line bill estimate, a scaling table, and a practical cost-control checklist. All figures are budgeting assumptions, not measured data.
1. Where the Question Starts: “Free Built-In Tools” Is Not “Free Connected Q&A”
After teams build web retrieval directly into a model service, the first reaction is often: does connecting to the web cost nothing now? That judgment is only half right. The accurate statement is: the model’s own act of deciding to search and open a page during generation is no longer billed separately, but the retrieved material still enters the context and takes part in reasoning, so that content is still charged as input tokens.
So the real cost structure has three parts, not one:
- Model inference fee (input + output, including thinking/reasoning usage);
- Retrieval fee (if your program calls the search API itself);
- Web page full-text fetch fee (if your program calls the fetch API itself).
Looking at a single metric like “how much per million tokens” will never produce the real bill. You have to put all three items in one table before you can compare different integration approaches side by side.
2. Two Integration Approaches, and the Boundary Between Them
Approach A: Let the Model Use the Web Itself
The model decides on its own whether retrieval is needed, what to search, and which page to open while generating the answer. The tool-call step produces no separate fee. The cost is that the fetched page full text and search result snippets all become input tokens, and repeated retrieval can significantly inflate input volume.
Best for: interactive Q&A, exploratory research, and one-off tasks with unclear requirements. The upside is a short pipeline with no retrieval service to maintain; the downside is high variance in token consumption and weak controllability.
Approach B: Your Program Orchestrates Retrieval and Fetching
Business code first calls the search API to get a result list, then calls the fetch API to get full text, cleans and truncates it, stitches it into the prompt, and finally hands it to the model to generate the answer. Search and fetch are usually billed by successful request count; a common industry rate is about 5 CNY per 1,000 successful requests each for text search and web fetch. Failed, timed-out, or empty-result requests are generally not counted. The model fee is separate.
Best for: batch, predictable tasks that need strong cost control and traceable citations. The upside is that usage at each step is measurable, cacheable, and degradable; the downside is that you must handle retries, deduplication, full-text extraction, and length trimming yourself.
A minimal pseudocode sketch showing where the costs occur:
# Cost point 1: retrieval request (billed by successful count)results = search_api(query, top_k=5)# Cost point 2: fetch request (billed by successful count)docs = [fetch_api(r.url) for r in results if r.need_fulltext]# Cost point 3: model input tokens (assembled context)context = truncate(dedup(clean(docs)), max_chars=6000)answer = llm.chat(system=PROMPT, user=query, context=context)
3. Putting Unit Prices on the Table: Tiered Billing Is the Norm
Take a general-purpose large model service with built-in connected capability as an example. Public pricing is typically split into peak and off-peak tiers, in CNY per million tokens, at roughly the following magnitudes:
| Billing item | Off-peak | Peak |
|---|---|---|
| Cache-miss input | 1 CNY | 2 CNY |
| Cache-hit input | 0.02 CNY | 0.04 CNY |
| Output | 4 CNY | 8 CNY |
Peak generally refers to weekdays 9:00–12:00 and 14:00–18:00 Beijing time (excluding public holidays); all other times are off-peak. The implication is direct: the same workload can cost about half as much if you shift it off-peak. For batch offline jobs, scheduling strategy often yields more savings than switching models.
4. Line by Line: The Bill for 1,000 Connected Q&A Calls
Budget assumptions: each task accumulates 6,000 cache-miss input tokens + 1,000 billed output tokens (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 is 0, so:
- Off-peak: 6 × 1 + 1 × 4 = 10 CNY
- Peak: 6 × 2 + 1 × 8 = 20 CNY
Per task, that is about 1 cent or 2 cents.
If you switch to a self-built retrieval pipeline, at the same model usage you must add retrieval and fetch: 1,000 tasks usually mean about 1,000 successful search requests plus some successful fetch requests. At the rate of 5 CNY per 1,000 successful requests, the two items together come to roughly 10 CNY, putting the total bill in the 30–40 CNY range.
The conclusion is clear: the gap does not come from a model price cut, but from a different integration approach — one folds retrieval cost into tokens, the other breaks it into a separate per-request fee.
It must be stressed: 6,000 input is the total billable input for the whole task, not the user’s opening sentence; whether the model actually connected to the web in a given call must be confirmed via call logs. The above are all budget assumptions, not measured data, and do not constitute any official commitment.
5. Don’t Just Calculate a Single Point: Linear Scaling and Volume Estimates
Single-point estimates are only for calibration; real capacity planning scales up from the same unit prices:
| Input tokens per task | Output tokens per task | Off-peak model fee (1,000 calls) | Peak model fee (1,000 calls) |
|---|---|---|---|
| 6,000 | 1,000 | 10 CNY | 20 CNY |
| 12,000 | 2,000 | 20 CNY | 40 CNY |
| 20,000 | 3,000 | 32 CNY | 64 CNY |
Three reminders when scaling up: doubling input does not double output, and in long-document scenarios output usually grows more slowly; cache hits can push the cost of a repeated prefix down to about one-hundredth, but only for a stable prefix; the length of fetched full text is the biggest variable in input tokens, so a trimming strategy saves more money than switching models.
6. An Actionable Cost-Control Checklist
- Off-peak scheduling: put offline batch processing in off-peak windows, and let interactive pipelines run at peak.
- Prefix stabilization: keep the system prompt and fixed background at the front and unchanged, to aim for cache hits.
- Context budget: set a hard cap on retrieved full text; extract the main paragraphs first, then truncate.
- Request deduplication: reuse results for the same query within a window to avoid repeated retrieval and fetching.
- Don’t waste or rely on the “failures aren’t billed” allowance: cap retries to prevent inflating model-side tokens.
- Observability: instrument input/output tokens, retrieval counts, and fetch counts separately, and use logging and monitoring alerts to reconcile at day-level granularity.
7. Common Pitfalls
One is reading “free tools” as “free connection”; two is counting only the length of the user’s question as input; three is ignoring that the thinking process also counts as output; four is using peak unit prices for a full-year budget; five is forgetting, after building your own pipeline, that retries on failed fetches raise both time and model usage at the same time. Put these five points into a review checklist, and your cost estimate will rarely go off track.
