The Technical Logic Behind Search API Pricing
This article breaks down why a newly launched search and web-fetching API can charge roughly RMB 0.005 per successful request, a fraction of typical third-party pricing, by examining the cost structure of crawling, indexing, ranking, and anti-abuse. It then explains the two numeric signals returned with each result, the overall relevance score (0–3) and the site authority score (0–4, with -1 for unknown), and what exposing them means for developers. Finally, it covers the amplified weight of these scores when AI agents are the main callers, a sample cost calculation, and practical deployment advice such as provider abstraction, caching, fallback, and monitoring.
1. A Search Request at RMB 0.005: Where the Savings Come From
A model vendor recently opened up its in-house search and web-fetching capability, priced at RMB 5 per 1,000 successful requests, or about RMB 0.005 per request. Over the same period, the list price of common third-party search services in the industry sat around RMB 0.03 per request, while pay-as-you-go overseas options worked out to roughly RMB 50 per 1,000 requests. In other words, the new price is one-tenth to one-few-tenths of comparable offerings.
To judge whether this price is sustainable, start by breaking down the cost structure of a single search request:
- Crawling and storage: crawler bandwidth, deduplication, main-content extraction, incremental updates;
- Indexing and retrieval: inverted index construction, vectorization, sharded queries and result merging;
- Ranking and scoring: relevance computation, quality scoring, and authority determination;
- Anti-abuse: detecting bulk placement, templated content, and low-quality generated text;
- Redundancy and failures: timeout retries, proxy switching after being blocked.
Externally sourced solutions have to fold most of these stages into their quote and still leave room for channel margin. Vendors that have run their own search for a long time already treat crawling and indexing as fixed assets, so the marginal cost is mainly the compute for retrieval and ranking. That makes “billing per successful request” a particularly important design choice: failed requests are not charged, which leaves retry and risk-control costs with the provider and pushes it to improve crawl success rates. The real source of the low price is amortization at scale, not a compromise on quality. This makes it friendly to new projects, but it is not a replacement for a self-built fallback.
2. Opening the Ranking Black Box: Two Scores That Matter
More interesting than the price is the response structure. Beyond the title, link, and snippet, each result carries two numeric signals:
- An overall relevance score from 0 to 3 that blends relevance, authority, and freshness; the documentation suggests treating values greater than or equal to 1.5 as high-quality results;
- A site authority score, an integer from 0 to 4, where -1 means unknown; the documentation suggests treating values greater than or equal to 3 as extremely authoritative.
Traditional search engines also maintain site quality scores and page quality scores internally, but they never disclose them, leaving practitioners to infer them backward from ranking changes. Writing the scores into the response is essentially handing part of the “basis for ranking decisions” to the caller: developers no longer maintain a trusted-site allowlist and can do an initial filter with a single threshold check.
Illustrative code:
def pick(results, min_rel=1.5, min_auth=3, top_k=5):kept = [r for r in resultsif r["rerank_score"] >= min_reland r["authority"] >= min_authand r["authority"] >= 0]kept.sort(key=lambda r: r["rerank_score"], reverse=True)return kept[:top_k]
Three engineering points to watch: thresholds should be tied to the task, tightening to authority >= 3 for fact-checking questions and loosening for trend questions; -1 must be handled explicitly and never included in comparisons; the scores are bucketed integers, so do not treat them as continuous probabilities when computing weighted sums.
3. When Agents Become the Main Callers, the Weight of Scores Grows
Humans search by paging through results, changing keywords, and questioning output with common sense; a program never “feels that something is off.” Once a large number of agents all decide what to read and what to discard by an authority threshold, that integer no longer determines display order but whether a page is even eligible to enter the model’s context.
Two new risks follow. The first is homogenization: under the same threshold, every agent sees the same set of sources, and errors get amplified in sync. The second is a new optimization target: content producers stop optimizing for clicks and start optimizing for scores. The provider states in its announcement that it identifies and filters content-farm-style placement, manipulation aimed at generative engines, and low-quality generated content, precisely to protect this chain of trust. The advice for callers is to keep the raw score values and persist them to storage for traceability, and to introduce multi-source cross-validation in high-risk scenarios so that a single score is not the only judge.
4. Cost Estimate and How to Roll It Out
Take 100,000 retrievals per day as an example: at RMB 0.005 each, that is about RMB 500 per day and RMB 15,000 per month; staying with the RMB 0.03 option would cost RMB 45,000 per month. The larger the scale, the more obvious the gap.
For rollout, the recommendations are: wrap retrieval as a separate capability layer and switch providers through configuration to avoid lock-in; cache and reuse results for high-frequency queries; keep crawling and main-content extraction in their own layer so failures can degrade gracefully; use a logging service with monitoring and alerts to track success rate, score distribution, and P95 latency, and set budget alerts. If you already run container platforms, message queues, and object storage on Baidu AI Cloud, they can host this kind of stateless retrieval service and result archiving directly, with no rework cost.
Conclusion: the low price is only an entry ticket. The real capability is turning invisible quality judgments into programmable, auditable signals and continuously pushing back against content manipulation. Treat it as infrastructure rather than a universal answer, and pair it with caching, fallback, and cross-validation to save money while keeping answer quality stable.
