Qianfan (Baidu MaaS)

Baidu's Model-as-a-Service platform providing access to ERNIE models and third-party LLMs via OpenAI-compatible API. Enterprise-focused with Baidu Cloud billing. Features ERNIE 5.0 and ERNIE 4.5 series models.

Qianfan is Baidu's comprehensive Model-as-a-Service (MaaS) platform, providing enterprise access to Baidu's proprietary ERNIE model family alongside third-party models through a unified API. Built on Baidu AI Cloud infrastructure, Qianfan has been the #1 MaaS platform in China by market share since 2024. The platform's flagship models are the ERNIE series. ERNIE 4.5-300B-A47B uses a Mixture-of-Experts architecture with 300B total parameters and 47B activated per token, trained on Baidu's PaddlePaddle framework. It excels in text understanding, generation, reasoning, and coding through innovative multimodal heterogeneous MoE pre-training. ERNIE X1 is the reasoning-focused variant, competing with DeepSeek-R1 on math and coding benchmarks with extended thinking capabilities. Qianfan provides an OpenAI-compatible API with bce-v3 format authentication, making it usable with OpenClaw's standard provider integration. The platform goes beyond chat completions, offering embeddings, image generation, fine-tuning, and dataset management. Baidu has also built extensive enterprise features including model evaluation, prompt engineering tools, and deployment management. For OpenClaw users, Qianfan is primarily relevant for accessing ERNIE models, which represent Baidu's best-in-class AI capabilities. ERNIE 4.5 is competitive with other Chinese frontier models at reasonable pricing. The platform offers free trial credits for new accounts, and the ERNIE Lite/Speed models are free for basic usage. The main consideration is that Qianfan is primarily designed for the Chinese market — documentation is largely in Chinese, and some features may be region-restricted. Baidu unveiled ERNIE 5.0 at Baidu World 2025, alongside a push for global expansion. The platform continues to evolve with new model releases and infrastructure improvements, positioning itself as the enterprise AI backbone for Chinese businesses.

Tags: baidu, chinese-ai, maas, openai-compatible, enterprise, ernie, moe

Use Cases

  • Chinese-language AI applications where ERNIE models excel
  • Enterprise MaaS deployments on Baidu Cloud infrastructure
  • Reasoning tasks with ERNIE X1 as an alternative to DeepSeek R1
  • Multimodal applications combining ERNIE's text, vision, and image generation
  • Cost-effective Chinese AI with free ERNIE Lite/Speed tiers
  • Organizations already on Baidu Cloud leveraging integrated AI services

Tips

  • ERNIE Lite and Speed models are free for basic usage — start there before committing to paid tiers.
  • Use ERNIE 4.5 for general tasks and ERNIE X1 for complex reasoning and coding that benefits from extended thinking.
  • For international access, consider accessing ERNIE models through aggregators like SiliconFlow instead of direct Qianfan.
  • The PaddlePaddle framework integration is unique — useful if your AI pipeline already uses PaddlePaddle.
  • Check SiliconFlow's Baidu model page for easier English-friendly access to ERNIE models at competitive prices.
  • Free trial credits are available on signup — enough to evaluate whether ERNIE models fit your use case.

Known Issues & Gotchas

  • Registration requires a Baidu Cloud account. The signup process is primarily designed for Chinese users — ID verification may be required.
  • Documentation is largely in Chinese. Use browser translation for English-speaking developers.
  • API authentication uses bce-v3 format, which is different from standard Bearer token auth. Follow Baidu's auth docs carefully.
  • Some models and features may be region-restricted. International access may be limited compared to Chinese users.
  • Billing is through Baidu Cloud — separate from other AI provider billing systems. Prepaid credits required.
  • The platform hosts many third-party models alongside ERNIE — pricing and capabilities vary significantly by model.
  • ERNIE models are optimized for Chinese language. English performance is competent but not the primary focus.

Alternatives

  • DashScope (Alibaba)
  • Z.AI (Zhipu)
  • SiliconFlow
  • DeepSeek

Community Feedback

ERNIE 4.5 is a solid model but Qianfan's documentation being mostly in Chinese makes it hard for international developers. The OpenAI-compatible API helps, but onboarding is rough.

— Reddit r/MachineLearning

Baidu is the #1 MaaS provider in China for a reason — ERNIE models are genuinely good, especially for Chinese language tasks. Western developers tend to overlook it.

— Hacker News

ERNIE X1.1 reasoning is competitive with DeepSeek R1 on benchmarks. But the Baidu Cloud signup process and billing is a headache if you're not in China.

— Reddit r/artificial

Configuration Examples

Basic Qianfan setup with ERNIE 4.5

providers:
  qianfan:
    apiKey: your-bce-v3-api-key
    model: qianfan/ernie-4.5-300b-a47b

Qianfan with ERNIE X1 reasoning

providers:
  qianfan:
    apiKey: your-bce-v3-api-key
    model: qianfan/ernie-x1
    # Extended thinking for complex reasoning tasks