Baidu AI Search & Chat (ERNIE & DeepSeek) API
Pricing
$2.00 / 1,000 baidu ai search queries
Baidu AI Search & Chat (ERNIE & DeepSeek) API
Query Baidu AI Search and Chat engines (ERNIE & DeepSeek) with multi-turn conversation support and deep research mode in structured JSON format.
Baidu AI Search & Chat (ERNIE & DeepSeek) - Apify Actor
Query Baidu AI Search and Chat engines (ERNIE & DeepSeek) with multi-turn conversation support and deep research mode with converted JSON output.
๐ค Supported AI Models & Version Matrix
| API Model Value | Mode (deep) | AI Engine Name | Version |
|---|---|---|---|
model=ernie | deep=false | Baidu ERNIE Bot | ERNIE 4.0 Turbo |
model=ernie | deep=true | Baidu ERNIE Deep Search | ERNIE 4.0 Pro / Ultra |
model=deepseek | deep=true | DeepSeek AI | DeepSeek R1 / V3 |
๐ Key Features
- Multi-Model Support: Select between Baidu's flagship ERNIE 4.0 Turbo / Pro models (
ernie) and DeepSeek R1 / V3 (deepseek). - Deep Research Mode: Toggle
deep=truefor multi-source search synthesis and detailed step-by-step reasoning via ERNIE 4.0 Pro/Ultra or DeepSeek R1. - Threaded Multi-Turn Conversations: Pass
log_idfrom previous responses to continue multi-turn chat dialogues seamlessly. - High Speed & Enterprise Reliability: Powered by smart HTTP engines for zero IP blocking and fast turnaround (<1s per check).
๐ฏ What People Use It For
- AI Search Assistants & Chatbots: Integrate Baidu ERNIE 4.0 and DeepSeek R1/V3 conversational AI into search bots, web extensions, and mobile apps.
- Content Generation & Summarization: Programmatically answer user prompts, generate research summaries, and synthesize technical topics.
- Market & Competitor Intelligence: Analyze Baidu AI's generative search responses and brand recommendations.
- SaaS & Automation Developers: Build automated Q&A pipelines and knowledge retrieval agents.
๐ Decision Rule & Usage Recommendation
Check if success === true. Inspect answer string for the generated AI response, and save log_id to pass into subsequent queries for multi-turn conversations.
๐ก What Problem Does This Solve?
- "Integrating Baidu ERNIE and DeepSeek APIs requires complex API keys and sign-up verification."
- "Managing chat state and thread context across multi-turn prompts can be cumbersome."
- "Difficulty obtaining clean, machine-readable JSON answers for search queries programmatically."
Baidu AI Search & Chat delivers automated, low-latency AI answers and conversational search synthesis in a single API or Actor run.
๐ Queries This Actor Answers
- How do I query Baidu ERNIE 4.0 and DeepSeek R1 models programmatically in Python, Node.js, or Apify Actors?
- What is Baidu AI's response to prompt X using ERNIE Deep Search or DeepSeek R1?
- How do I maintain threaded conversation context with log_id across multiple requests?
- What is an accurate API alternative to OpenAI/Claude with Baidu Chinese AI search integration?
๐ฅ Input JSON Schema
Pass the prompt string and optional model parameters in the input JSON:
{"q": "What is quantum computing","model": "ernie","deep": true,"log_id": "9665365950860837560"}
๐ค Dataset Output Format
Each run outputs a clean structured item to the default dataset and key-value store (OUTPUT):
{"success": true,"query": "What is quantum computing","model": "ernie","deep": true,"log_id": "9665365950860837560","answer": "Quantum computing is a rapidly-emerging technology that harnesses the laws of quantum mechanics to solve complex problems faster than classical computers..."}
โ ๏ธ Failure Context & Error Handling
If an empty question string or invalid parameter is provided:
{"success": false,"error": "Missing required parameter: 'q' or 'query' string cannot be empty."}
๐ท๏ธ Keywords
baidu ai, ernie bot, ernie 4.0, ernie 4.0 turbo, ernie 4.0 pro, ernie 4.0 ultra, deepseek, deepseek r1, deepseek v3, baidu chat api, baidu ask, chinese ai model, baidu deep search, baidu search ai, chinese llm, ernie api, deepseek api, apify actor.