Low-Cost LLM APIs and the Shift to Heterogeneous Compute Infrastructure

    This article examines how an emerging LLM team turned application capabilities into atomized APIs, built an AI-native search stack to reduce costs, and moved pretraining toward domestically developed heterogeneous compute. It also offers practical guidance for developers building low-cost AI applications.

    In the rapidly evolving field of artificial intelligence, competition in the large-model industry has moved beyond parameter counts. It now spans underlying compute, infrastructure capabilities, and business models. Recently, an emerging large-model team facing policy restrictions in overseas markets did not pursue direct negotiation. Instead, it took a series of底层技术 actions to turn AI capabilities into infrastructure, offer them to the market at very low prices, and complete a key migration of its compute foundation. For developers and enterprise users, these moves are not only a cost dividend but also a signal of a new direction in AI architecture evolution.

    I. From Application Layer to Infrastructure: API Componentization and Atomic Capability Decoupling

    In the past, large-model teams tended to provide a “big and comprehensive” super-app, packaging search, conversation, recognition, and other capabilities into a single product. When external access is restricted, however, a closed application entry point can be cut off easily. The team’s core strategy was to “disassemble” the back-end capabilities of a mass-market application into fully atomic capabilities and offer them wholesale on a per-call basis at very low prices.

    1. Decoupling and Pricing of Core API Capabilities
    The team separated core capabilities one by one, including text search, image search, web scraping, OCR (optical character recognition), and speech recognition. Its pricing strategy was close to a “clearance” approach: high-frequency interfaces such as text and image search and web scraping were priced as low as a few yuan per thousand calls; OCR was billed per page at a unit price in the fraction-of-a-cent range; and speech recognition cost only a few tenths of a yuan per hour. This per-call and usage-based billing model greatly reduces the trial-and-error cost for developers.

    2. Ecosystem Significance of Open-Sourcing Front-End Components
    In addition to back-end APIs, the team also released its front-end chat interface under a permissive open-source license. This means developers no longer need to write complex interaction logic from scratch. With a few minutes of simple configuration, they can replicate a complete large-model chat application inside their own products. This combination of “back-end APIs + open-source front end” effectively transforms the team from a single-product provider into an AI infrastructure provider. By empowering numerous third-party applications, it builds a decentralized ecosystem network and effectively mitigates the risk of a single entry point being blocked.

    II. Low Prices Are Not Accidental: AI-Native Search Architecture Reduces Cost and Improves Efficiency

    If the team relied only on API forwarding or third-party services, such “bargain-bin” pricing would be difficult to sustain. Behind these extremely low prices is a fully self-developed underlying technology architecture.

    1. Breaking the “Traffic Tax” of Third-Party Search APIs
    In the overseas AI search market, many startups rely heavily on search APIs provided by a major technology company. Because they lack in-house capabilities, when that company raised interface prices several times, many independent search engines could not bear the high costs and shut down. At present, the built-in search costs of mainstream large-model vendors remain high, often tens of yuan per thousand calls. The team can push prices to one-tenth or less of the industry average, fundamentally because it has eliminated the “middleman” role.

    2. Full-Chain Self-Development of an AI-Native Search Engine
    To achieve controllable costs, the team spent two years building an AI-native search engine for hundreds of billions of web pages from scratch. The system covers the following core technical components:

    • Distributed crawler system: High-concurrency crawling of global web pages to ensure the timeliness and breadth of data sources.
    • Combined vector index and inverted index: Efficient organization of hundreds of billions of web page data to support the semantic retrieval capabilities required by large models.
    • Denoising and cleaning pipeline: Algorithms automatically identify and strip invalid information such as ads and templates from web pages, extract the core clean text, and improve the data quality fed to the large model.

    Because the system first serves the team’s own mass-market application with hundreds of millions of daily searches, its massive call volume has already spread fixed server costs sufficiently. As a result, the marginal cost of providing external API services is extremely low. This is comparable to the team building its own water plant at the water source, while vendors that rely on third-party interfaces are still paying high water rent.

    III. Migration of the Compute Foundation: Toward a Domestically Developed Heterogeneous Compute Ecosystem

    If low-cost APIs are a breakthrough at the application layer, the migration of the compute foundation is a deeper strategic move. Large-model pretraining is the largest consumer of compute, and the industry has long relied heavily on the ecosystem of a leading overseas GPU vendor.

    1. Compute Migration from Inference to Pretraining
    Recent industry-chain information indicates that the team’s next-generation large model plans to conduct pretraining on a domestically developed heterogeneous compute chip. Previously, domestic chips mainly handled relatively lightweight inference tasks in the team’s system, while the most demanding pretraining work was still led by overseas GPUs. Moving pretraining to domestic chips marks that domestic compute has reached the threshold to support hundred-billion-parameter model training in terms of memory bandwidth, cluster interconnect, and computational stability.

    2. Software-Hardware Co-Design: Early Layout of the Underlying Software Stack
    This migration is by no means immediate; it has been preceded by careful software-stack preparation. Before announcing the compute migration, the team had already open-sourced a full set of underlying components for the domestic chip, including:

    • Customized compiler: Efficiently maps high-level computation graphs to low-level hardware instruction sets to improve operator execution efficiency.
    • High-performance computing library: Performs deep assembly-level optimization for core operators such as matrix multiplication and attention mechanisms in the Transformer architecture.
    • High-speed communication library: Optimizes collective communication overhead such as All-Reduce during large-scale cluster training and reduces cross-node data transmission latency.

    These components correspond one-to-one with the earlier components for overseas GPUs, ensuring seamless switching of the upper-layer training framework. This order—“lay the software stack first, then bring in the hardware”—demonstrates high engineering rigor and provides a mature reference model for developers in China exploring heterogeneous compute.

    IV. Developer Takeaways: Practical Advice for Building Low-Cost AI Applications

    For developers and enterprise users, this industry shift brings concrete architectural dividends. Drawing on the capabilities of mainstream cloud and AI infrastructure providers—Baidu AI Cloud is one example—we can summarize the following practical guidelines:

    1. Adopt an Atomic API Composition Development Model
    When building applications such as intelligent customer service and knowledge-base question answering, enterprises should abandon traditional monolithic architectures and adopt an API composition model. By separately calling low-cost search APIs, OCR APIs, and large-model chat APIs, they can flexibly assemble workflows that fit specific business scenarios.

    1. # Pseudocode example: building a RAG application with low-cost atomic APIs
    2. def build_rag_pipeline(query):
    3. # 1. Call the low-cost search API to get relevant web page links
    4. search_results = call_api("web_search", query, top_k=3)
    5. # 2. Call the web scraping and cleaning API to get plain text
    6. raw_text = ""
    7. for result in search_results:
    8. raw_text += call_api("web_scrape", result['url'])
    9. # 3. Call the large model to summarize and answer
    10. prompt = f"Answer the question based on the following materials: {query}\nMaterials: {raw_text}"
    11. answer = call_llm_api(prompt)
    12. return answer

    2. Focus on the Cost Controllability of Infrastructure
    When choosing cloud services or AI capability providers, enterprises should look not only at model benchmark scores but also at the degree of self-reliance in the underlying infrastructure. Providers with full-stack self-development capabilities, such as Baidu AI Cloud, can continuously amortize overall compute costs through self-developed AI chips, 10-gigabit network clusters, and efficient storage architectures. When selecting vendors, enterprises should prioritize whether a provider has full-chain optimization capabilities from underlying compute to upper-layer models.

    3. Embrace Heterogeneous Compute and Multi-Cloud Disaster Recovery
    As the domestically developed compute ecosystem matures, enterprises can begin to try heterogeneous computing solutions based on domestic chips when fine-tuning AI models or deploying them privately. By adapting domestic compute libraries and communication libraries, enterprises can not only reduce hardware procurement costs but also achieve supply-chain security and controllability. At the same time, it is advisable to reserve multi-cloud interfaces in architecture design to avoid excessive lock-in to a single compute or API provider.

    In summary, the sharp drop in AI model API prices and the migration of the compute foundation are superficially responses to commercial competition. In essence, they are the inevitable results of large-model technology becoming infrastructure and the compute ecosystem becoming more diversified. Developers should capture this trend keenly, use low-cost atomic capabilities to quickly validate business logic, and embrace heterogeneous compute at the underlying architecture level to build a solid and economical foundation for next-generation intelligent applications.