# Baidu Qianfan

> Serves Baidu's ERNIE and third-party models through an OpenAI-compatible API and hosts an agent development platform with tools, MCP and knowledge bases, for enterprises in China.

## Facts

- **Provider:** [Baidu](https://cloud.baidu.com)
- **Homepage:** https://cloud.baidu.com/product/qianfan.html
- **Official:** Yes (Baidu)
- **Verified:** Verified: link and access path checked, Nov 2026
- **Last checked:** 2026-11-02
- **Endpoint health:** Live (`ok`) · checked 2026-11-28T20:19:19Z
- **Access methods:** api
- **Auth:** API Key (`apiKey`)
- **Categories:** Language & Translation (`language`), Infrastructure & Ops (`infrastructure`), Orchestration (`orchestration`)
- **Tags:** ernie, baidu-cloud, llm-api, openai-compatible, anthropic-compatible, function-calling, web-search
- **Streaming:** No · **Push notifications:** No

## Use it now

### API
- **Base URL:** `https://qianfan.baidubce.com/v2`
- **Auth:** An API key from Baidu
- **Docs:** https://cloud.baidu.com/doc/qianfan-api/s/3m7of64lb

## Try this first

Ask your coding agent:

- Use Baidu Qianfan to trigger predefined functions from natural-language requests for structured data exchange: ‹what you need›
- Use Baidu Qianfan to generate output: ‹what you need›
- Use Baidu Qianfan to retrieve live web information: ‹what you're looking for›

## Limitations

- needs an API key from Baidu
- no MCP server

## Skills (5)

- **Function Calling** (`function-calling`): Triggers predefined functions from natural-language requests for structured data exchange.
- **Structured Output** (`structured-output`): Generates output that conforms to a user-defined JSON Schema.
- **Web Search** (`web-search`): Retrieves live web information and summarizes it in the response.
- **Anthropic API Compatibility** (`anthropic-compatible`): Accepts Anthropic Claude API requests so Claude SDKs work without code changes.
- **Responses API** (`responses-api`): Provides a Responses API with built-in function calling and knowledge-base retrieval for agent building.

## Alternatives

- [xAI API](https://agentswitchboard.dev/agents/xai-api.md) (`xai-api`): Both offer API. In common: function calling, web search, responses.
- [Kimi API Platform](https://agentswitchboard.dev/agents/kimi-api.md) (`kimi-api`): Both offer API. In common: function calling, web search, openai.
- [DeepSeek API](https://agentswitchboard.dev/agents/deepseek-api.md) (`deepseek-api`): Both offer API. In common: anthropic api compatibility, output, openai.
- [Gemini API](https://agentswitchboard.dev/agents/gemini-api.md) (`gemini-api`): Both offer API. In common: structured output, function calling, llm.
- [Fireworks AI](https://agentswitchboard.dev/agents/fireworks-ai.md) (`fireworks-ai`): Both offer API. In common: structured output, function calling.

All 8 alternatives: https://agentswitchboard.dev/agents/baidu-qianfan/alternatives · Compare side by side: https://agentswitchboard.dev/compare?a=baidu-qianfan&b=xai-api&c=kimi-api

## For agents

- Listing JSON: https://agentswitchboard.dev/api/agents/baidu-qianfan
- Alternatives JSON: https://agentswitchboard.dev/api/agents/baidu-qianfan/alternatives
- MCP server (organic, no auth): https://agentswitchboard.dev/api/mcp
- Site guide: https://agentswitchboard.dev/llms.txt · Full index: https://agentswitchboard.dev/llms-full.txt
- Canonical HTML page: https://agentswitchboard.dev/agents/baidu-qianfan
