Baidu ERNIE integration
Baidu's ERNIE Bot (文心一言) large language model API for Chinese and multilingual AI applications. Access ERNIE 4.0 (flagship model), ERNIE 3.5 (balanced performance), and ERNIE Speed (fast & free) for chatbots, content generation, embeddings, and text-to-image. Features web search integration, citation generation, function calling, and optimized Chinese language understanding. Perfect for building Chinese-language AI assistants and applications.
Say what should happen.
The workflow builds itself.
Common Baidu ERNIE use cases
- Simple Q&A chatbots
- Authenticating API access
- Text classification tasks
- High-volume chatbot deployments
- Building Chinese-language chatbots
- Real-time interactive applications
- Building Chinese semantic search engines
- Creating marketing visuals from descriptions
- Information extraction
- High-volume text processing
What you can do with Baidu ERNIE
Each of these is one operation on one endpoint, available both as a workflow step and as a tool an AI agent can call on its own. Nothing bundles several operations into one action, so what a run did stays readable afterwards.
Most endpoints run on the free plan. A few, mainly the ones that publish on your behalf, need a paid plan.
Chat, 5 operations
chat_ernie35Chat ernie35POSTGenerate responses using ERNIE 3.5 for balanced performance and cost.chat_ernie4Chat ernie4POSTGenerate conversational responses using Baidu's most advanced ERNIE 4.0 model.chat_ernie_liteChat ernie litePOSTGenerate responses using ERNIE Lite, a lightweight and free model for simple tasks.chat_ernie_speedChat ernie speedPOSTGet rapid responses with ERNIE Speed model optimized for low latency.chat_ernie_tinyChat ernie tinyPOSTGenerate responses using ERNIE Tiny, the smallest and most efficient model.
Embedding, 1 operation
embeddingEmbeddingPOSTConvert Chinese and English text into semantic vector embeddings.
Image, 1 operation
text_to_imageText to imagePOSTCreate high-quality images from text descriptions using Stable Diffusion XL.
Token, 1 operation
get_access_tokenGet access tokenPOSTAuthenticate and obtain access token for API requests.
Use Baidu ERNIE from Claude Code, Cursor or Codex
Connect Baidu ERNIE in LiveContext, create an API key in Settings, then add the LiveContext MCP server to your client. Its Baidu ERNIE operations become tools the client can call, next to every other integration you connected.
claude mcp add --transport http livecontext https://livecontext.ai/mcp --header "X-API-Key: YOUR_API_KEY"[mcp_servers.livecontext]
url = "https://livecontext.ai/mcp"
[mcp_servers.livecontext.http_headers]
"X-API-Key" = "YOUR_API_KEY"{
"mcpServers": {
"livecontext": {
"type": "http",
"url": "https://livecontext.ai/mcp",
"headers": {
"X-API-Key": "YOUR_API_KEY"
}
}
}
}How to connect Baidu ERNIE
- Create your workspace
Sign up free. Nothing to install.
- Connect Baidu ERNIE once
Add your Baidu ERNIE connection in Settings. Every tool from this integration reuses it, and secrets are encrypted at rest and visible only to you.
- Describe the job in chat
The workflow builds itself in front of you and picks the endpoints it needs. Drag the steps yourself on the canvas whenever you would rather be explicit.
Baidu ERNIE integration FAQ
What can you do with the Baidu ERNIE integration?
LiveContext exposes 8 operations on Baidu ERNIE, covering chat, embedding, image and token. Common uses include Simple Q&A chatbots, Authenticating API access and Text classification tasks.
