Full-Stack LLM APIs: Capabilities, Billing, and Integration Practices
A large-model provider has opened an API suite that exposes app-level capabilities such as web search, deep search, page reading, file upload parsing, OCR, speech input and read-aloud, and content safety moderation, shifting tool orchestration to the server. This article reviews the event, breaks down the request pipeline behind a single augmented call, explains token-plus-per-call billing, walks through a three-step integration with Python SDK code, and offers a checklist for deciding between managed tools and a self-built RAG stack. It concludes that managed APIs are a practical default for MVPs, while high-volume or highly customized paths may justify selective self-hosting later.
1. Event Recap: From Model APIs to Application APIs
A large-model provider recently released an API system that covers the full application workflow, opening up capabilities from its own app—web search, deep search, web page reading, file upload and parsing, speech input, and read-aloud—to developers.
The technical significance is worth unpacking. Over the past year or two, most teams have called large-model APIs through “bare” model calls: the model itself only generates text, while web access, page reading, and file parsing must be assembled by the developer. Teams connect a search service API, a web crawling and article-extraction library, an OCR or document-parsing service, and then write orchestration logic to inject the outputs of these tools into the context. The engineering effort is large, the chain is long, and every step requires separate handling of authentication, retries, rate limiting, and billing.
The key change here is that these tool calls are pushed down to the server side. Developers only need to declare one or two additional parameters in the request, and the server autonomously performs search, page reading, and result assembly. The client no longer needs to maintain a tool-call loop. According to the provider, developers can replicate the full official app experience 1:1.
It is worth noting that the two basic interfaces for search and web fetching were already available. The main additions this time are built-in web tools for chat, file input, OCR, speech, and content safety moderation—an effort to “complete the last mile” at the application layer.
2. Capability Breakdown: What Happens Behind a Single Request
To understand this kind of “full-stack” API, the key is to clarify what the server actually does after receiving a request. Take a typical question such as “What is the weather like today?” as an example. The server-side processing chain is roughly as follows:
- Intent detection: The model determines whether the current question needs external information, such as time-sensitive content, and decides whether to trigger web tools.
- Search execution: It calls the server’s built-in search capability and obtains a list of candidate results.
- Page fetching and extraction: It fetches highly relevant results, extracts the main content, and cleans noise such as navigation and ads.
- Context assembly: Search summaries and page text are injected into the context in a specific format and sent to the model together with the user question.
- Generation and citation: The model generates an answer based on the augmented context, usually with source information.
- Safety moderation: Input and output pass through content safety filtering.
For developers, the most valuable part of this chain is that steps 2–4 are fully managed. Anyone who has built a RAG retrieval pipeline knows that the quality of web page extraction, the relevance ranking of search results, and context length control all require long-term tuning. Reusing managed server-side capabilities can save substantial engineering investment.
3. Billing: A Dual Model of Tokens and Per-Call Charges
From a cost-structure perspective, these services usually bill on two layers:
- Model layer: Billed by token, with input and output priced separately, and generally with off-peak pricing. In the provider’s local pricing example, weekday peak input is around CNY 2 per million tokens and output around CNY 8, with lower off-peak rates. This is typical low-cost pricing in that market.
- Tool layer: Billed by call count. Search and web fetching are around CNY 5 per thousand calls, or about CNY 0.005 per call. Speech-to-text is billed by duration, with an hour of audio costing a few tenths of CNY. Speech recognition and synthesis may also have separate pricing.
This dual model is useful for cost estimation. Suppose you build an assistant with 10,000 Q&A sessions per day, and 30% of questions trigger web search. The daily search cost is about 10,000 × 0.3 × 0.005 = CNY 15. Relative to model token consumption and engineering labor, this is almost negligible. The real cost driver remains token consumption—web augmentation significantly lengthens input context, and doubling input at peak hours doubles cost. For scenarios that do not require real-time information, consider off-peak calls or result caching.
4. Integration Practice: Three Steps to an Augmented Call
The integration flow is lightweight and generally consists of three steps.
Step 1: Create credentials. Create an API key in the open-platform console. Inject it through environment variables to avoid hard-coding and leakage.
Step 2: Choose a protocol. These platforms usually support both OpenAI and Anthropic protocols, so common interfaces such as Chat Completions, Responses, and Messages can be used directly, keeping migration costs low. The following example uses the common Python SDK style:
import osfrom openai import OpenAIclient = OpenAI(api_key=os.environ["LLM_API_KEY"],base_url="https://your-provider-endpoint/v1",)resp = client.chat.completions.create(model="your-model-name",messages=[{"role": "user", "content": "What is the weather like in Shanghai today? Is it good for going out? Answer briefly."},],# Declare server-managed tools: web search + page readingtools=[{"type": "web_search"},{"type": "read_url"},],# Disable deep thinking when not needed to reduce latencyextra_body={"thinking": {"type": "disabled"}},)msg = resp.choices[0].messageprint(msg.content)# Server-side tool calls are traceable for debugging and auditingfor step in msg.model_extra["server_tool_calls"]:for call in step["calls"]:print("🔍", call["kind"],call["action"].get("queries") or call["action"].get("url"))
Step 3: Handle the response. Note a key detail in the code above: server_tool_calls retains each tool call actually executed by the server, including search queries and visited URLs. This is important for production—you can use it for audit logs, answer provenance, and attribution. It is also a transparency advantage of managed tools over a “black-box self-built” approach.
5. Build or Managed? A Decision Checklist
Before embracing a full-stack API, go through these questions:
- How strong is the real-time requirement? If the Q&A scenario depends heavily on real-time information such as news, prices, or weather, managed search brings the most value. For purely knowledge-based Q&A, the benefit is limited.
- How much customization is required? If you need domain-specific retrieval strategies, hybrid recall with private knowledge bases, or complex re-ranking logic, a self-built RAG pipeline remains irreplaceable. For general scenarios, a managed solution is simpler.
- How cost-sensitive are you? A managed solution combines multiple third-party calls into one API call and removes the integration and operations costs of separate search and crawling services. For very large-scale applications, however, self-hosting plus caching may have a lower marginal cost.
- Compliance and auditing. Managed solutions often include content safety moderation, which can significantly reduce compliance risk for consumer-facing applications.
My overall judgment is: prioritize managed tools at the MVP stage, and optimize high-frequency paths with self-built components after scale. Validate product value at minimum cost first, then decide which parts are worth building in-house. That is more practical than building a complete retrieval pipeline from day one.
6. Final Thoughts
The emergence of “full-stack” APIs signals that competition in large-model services is shifting from “model capability” to “application completeness.” For developers, the application-layer engineering dividend is arriving—web-augmented Q&A that once took weeks to build can now run with a few lines of code. Real differentiation will increasingly come from product understanding, scenario depth, and data assets, rather than repeated construction of toolchains. Try running the example above to experience the development workflow of server-managed tools, and then make trade-offs based on your own business needs.
