Free Web Search in LLM APIs: Pricing Changes, Call Paths, and Rollout Evaluation

    This article explains how a recent change to one LLM platform's web search and page fetching fees affects two calling paths: model-triggered server-side search and standalone Search and Fetch API calls. It covers how to test these paths before launching a Q&A feature, including building a small evaluation set, tracing answers to their sources, archiving web pages, and comparing total cost across options.

    1. Call Paths and Billing Differences

    When you build web-enabled Q&A on an LLM, the first step is to identify how your application calls the search and fetch functions. The recent pricing change created two billing tracks. Understanding the difference between them is the basis for controlling cost.

    1. Model-triggered server-side search and page fetching

    When the model decides during inference that it needs web information and triggers server-side search and page fetching, the platform does not charge a tool call fee for these operations. However, the fetched page content is injected into the model’s input as context, and those additional tokens are billed at the standard model token rate.

    This path suits open-domain Q&A. The model decides when to search, which helps it handle open-ended user questions. The trade-off is that developers have less control over when searches happen.

    2. Standalone Search API and Fetch API calls

    If your program does not rely on the model’s autonomous decisions, you can call the standalone Search API or Fetch API directly, then pass the results to the model. Each track charges a fixed fee per 1,000 successful requests. A common industry rate is 5 CNY per 1,000 calls.

    This path gives developers full control over the pipeline. You can clean and summarize data before calling the model, which can significantly reduce the number of tokens sent to the model. The official documentation also states that standalone calls that return no results, fail, or time out are not billed. This gives developers cost protection when they implement retry logic in unstable network conditions.

    2. Evaluation Strategy Before Launching a Q&A Feature

    Given these pricing changes, switching all traffic at once or launching without testing is not advisable for a Q&A feature about to go live. You need a standardized evaluation process.

    1. Build a small test set

    Start with about ten standard questions whose answers you can verify on the official website or another authoritative source. For example, use this pricing change itself as the first question: “Starting from [date], which call path is free of tool fees, and which one is billed per call?” Running a small test set with questions that have clear answers helps you verify how well the system retrieves and summarizes information.

    2. Set strict source traceability

    Every conclusion the system produces must include the original page URL, the page’s publication date, and an anchor that points to the exact section on the page. If the model only finds an outdated announcement, you must guide it toward the current pricing page or find that page manually. API documentation changes frequently, so record the date you checked each document to create a timestamp. Without it, benchmark drift can make your evaluation invalid later.

    3. Citation Verification and Web Page Archiving

    In practice, a detail that teams often overlook is cited_text in the web tool documentation. This is the text segment that the model cites with a reference marker in its final answer.

    1. Detailed manual review

    When reviewing test results manually, do not check only whether the generated answer reads well. Open each cited page and compare the amounts, effective dates, and conditions line by line against the pricing table and explanatory text on the page. If cited_text differs from the original page content, the model has hallucinated or lost information during context compression or information extraction.

    2. Build a web page archive

    Archiving web pages is essential for second-pass verification and long-term auditing. You can use common web-scraping tools or general cloud services, such as object storage, to build an automated archiving pipeline. Save the public source page together with its source information: URL, fetch time, and HTTP status code.

    The following example shows an archive record stored in object storage:

    1. {
    2. "task_id": "qa_eval_001",
    3. "query": "联网搜索计费规则是什么?",
    4. "source_url": "https://example.com/pricing",
    5. "fetch_date": "2023-11-18T12:00:00Z",
    6. "cited_text": "由模型触发的服务端搜索和抓页免工具调用费。",
    7. "raw_html_bucket": "s3://my-archive-bucket/qa_eval_001.html"
    8. }

    This mechanism keeps a complete and objective chain of evidence even if the original page is changed or taken offline.

    4. Building and Comparing a Combined Cost Model

    When comparing calling options, do not focus on a single fee reduction. In your evaluation table for the ten test questions, record three core metrics together: model token cost, standalone tool call fees, and manual review time.

    1. Where hidden costs appear

    Lower tool call fees make costs look smaller at first. However, the model may then trigger web tools more often. When more web pages enter the context, long text can cause token consumption to rise sharply. Model tokens are billed by input and output length, so a web page of several thousand characters could double the cost of a single request.

    2. Balancing cost and quality

    After running the test set, check three things: how much you spent in total, how many conclusions you can trace precisely back to the source text, and how much manual review took. The cost of a complete task ultimately depends on actual usage. For example, if standalone API calls are billed per call but a preprocessing step that extracts the main page text cuts token consumption by 80%, the combined cost may be far lower than the “free” model-triggered mode, which can search without limit.

    5. Summary

    The pricing change to LLM API web search gives developers more flexibility in choosing how to call these tools. It also adds a hidden challenge in managing context tokens. Clear separation of call paths, small-scale test sets, and a complete archiving and audit mechanism help teams control application cost and data quality more precisely. For AI applications in production, a team can achieve both business value and cost control only by aligning detailed billing rules with the overall system architecture.