Get started free
All integrations

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.

8 toolsCustom authAPI docs

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 Code
claude mcp add --transport http livecontext https://livecontext.ai/mcp --header "X-API-Key: YOUR_API_KEY"
Codex (~/.codex/config.toml)
[mcp_servers.livecontext]
url = "https://livecontext.ai/mcp"

[mcp_servers.livecontext.http_headers]
"X-API-Key" = "YOUR_API_KEY"
Cursor, Claude Desktop and other JSON configs
{
  "mcpServers": {
    "livecontext": {
      "type": "http",
      "url": "https://livecontext.ai/mcp",
      "headers": {
        "X-API-Key": "YOUR_API_KEY"
      }
    }
  }
}

Set up the MCP server step by step

How to connect Baidu ERNIE

  1. Create your workspace

    Sign up free. Nothing to install.

  2. 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.

  3. 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

Browse the whole catalog