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.
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
- POSTchat_ernie35
Generate responses using ERNIE 3.5 for balanced performance and cost.
- POSTchat_ernie4
Generate conversational responses using Baidu's most advanced ERNIE 4.0 model.
- POSTchat_ernie_lite
Generate responses using ERNIE Lite, a lightweight and free model for simple tasks.
- POSTchat_ernie_speed
Get rapid responses with ERNIE Speed model optimized for low latency.
- POSTchat_ernie_tiny
Generate responses using ERNIE Tiny, the smallest and most efficient model.
Embedding, 1 operation
- POSTembedding
Convert Chinese and English text into semantic vector embeddings.
Image, 1 operation
- POSTtext_to_image
Create high-quality images from text descriptions using Stable Diffusion XL.
Token, 1 operation
- POSTget_access_token
Authenticate 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.
Popular integrations
Instagram API with Instagram Login (graph.instagram.com). Manage a Business/Creator Instagram account…
Messaging platform API for building bots and integrations. Send messages, manage chats and channels, handle…
Google's video platform API for accessing video, channel, playlist, and comment data
Social media platform API for content creators and businesses. Access user info, manage videos, get…
Social media platform API for posting, reading, and managing Twitter/X content. Post tweets, read timelines,…
Google email service API for sending, receiving, and managing emails. Access messages, threads, labels,…
AI API from xAI (Elon Musk's AI company) powering Grok models. Access state-of-the-art language models with…
Professional networking platform API for managing profiles, connections, and content. Share posts, manage…