File contents 能力概述
百度AI搜索核心接口,向 POST https://app-bo4w33bsdqm9-api-DYJwo27V8Qya-gateway.appmiaoda.com/v2/ai_search/chat/completions
发送多轮对话消息,调用百度大模型搜索全网实时信息并以 HTTP SSE 流式 方式返回智能总结、引用来源、
推理过程及追问建议。
维度
说明
Endpoint
POST https://app-bo4w33bsdqm9-api-DYJwo27V8Qya-gateway.appmiaoda.com/v2/ai_search/chat/completions
响应方式
HTTP SSE 流式(text/event-stream)
认证
platform_managed(X-Gateway-Authorization: Bearer <INTEGRATIONS_API_KEY>)
多平台差异
Web、MiniProgram、App 的 SSE 前端消费方式不同,详见 references/
核心能力:
多轮对话搜索(messages 数组,user/assistant 交替)
多模态资源过滤(web / image / video,可配置各模态返回数量)
深度搜索(enable_deep_search,最多 10 次智能搜索)
深度思考(enable_reasoning,支持 DeepSeek-R1 / 文心X1)
图文混排输出(response_format=rich_text)
智能追问建议(enable_followup_queries)
按发布时间筛选(search_recency_filter:week / month / semiyear / year)
生成期用法(Agent 直接调用)
此接口为 SSE 流式接口,生成期直接调用时需逐行读取 SSE 事件并累积 choices[].delta.content。
完整参数说明及生成期代码详见 references/ai-search-api.md。
生成后用法(应用内通过 Edge Function 调用)
应用内需部署 Edge Function 作为代理层,将 INTEGRATIONS_API_KEY 保存在服务端,
前端通过 Edge Function 获取 SSE 流。
平台差异概览:
平台
Edge Function
前端消费方式
Web
直接 proxy SSE 流(不缓冲)
ky + eventsource-parser 处理 SSE
MiniProgram
直接 proxy SSE 流(不缓冲)
miaoda-taro-utils 的 sendStream(ky/eventsource-parser 在 weapp 不可用)
App
直接 proxy SSE 流(不缓冲)
expo/fetch + eventsource-parser 处理 SSE(必须使用 expo/fetch,RN 原生 fetch 不支持流式 response.body)
Edge Function 完整代码、前端 SSE 工具函数及各平台调用示例详见
references/ai-search-api.md。
1 --- 2 name: baidu-ai-search 3 description: Baidu Ai Search 4 license: MIT 5 --- 6 7 ## 能力概述 8 9 百度AI搜索核心接口,向 `POST https://app-bo4w33bsdqm9-api-DYJwo27V8Qya-gateway.appmiaoda.com/v2/ai_search/chat/completions` 10 发送多轮对话消息,调用百度大模型搜索全网实时信息并以 **HTTP SSE 流式** 方式返回智能总结、引用来源、 11 推理过程及追问建议。 12 13 | 维度 | 说明 | 14 |------|------| 15 | Endpoint | `POST https://app-bo4w33bsdqm9-api-DYJwo27V8Qya-gateway.appmiaoda.com/v2/ai_search/chat/completions` | 16 | 响应方式 | HTTP SSE 流式(text/event-stream) | 17 | 认证 | platform_managed(`X-Gateway-Authorization: Bearer <INTEGRATIONS_API_KEY>`) | 18 | 多平台差异 | Web、MiniProgram、App 的 SSE 前端消费方式不同,详见 references/ | 19 20 **核心能力:** 21 - 多轮对话搜索(messages 数组,user/assistant 交替) 22 - 多模态资源过滤(web / image / video,可配置各模态返回数量) 23 - 深度搜索(enable_deep_search,最多 10 次智能搜索) 24 - 深度思考(enable_reasoning,支持 DeepSeek-R1 / 文心X1) 25 - 图文混排输出(response_format=rich_text) 26 - 智能追问建议(enable_followup_queries) 27 - 按发布时间筛选(search_recency_filter:week / month / semiyear / year) 28 29 --- 30 31 ## 生成期用法(Agent 直接调用) 32 33 此接口为 SSE 流式接口,生成期直接调用时需逐行读取 SSE 事件并累积 `choices[].delta.content`。 34 35 完整参数说明及生成期代码详见 [references/ai-search-api.md](references/ai-search-api.md)。 36 37 --- 38 39 ## 生成后用法(应用内通过 Edge Function 调用) 40 41 应用内需部署 Edge Function 作为代理层,将 `INTEGRATIONS_API_KEY` 保存在服务端, 42 前端通过 Edge Function 获取 SSE 流。 43 44 **平台差异概览:** 45 46 | 平台 | Edge Function | 前端消费方式 | 47 |------|--------------|-------------| 48 | Web | 直接 proxy SSE 流(不缓冲) | `ky` + `eventsource-parser` 处理 SSE | 49 | MiniProgram | 直接 proxy SSE 流(不缓冲) | `miaoda-taro-utils` 的 `sendStream`(`ky`/`eventsource-parser` 在 weapp 不可用) | 50 | App | 直接 proxy SSE 流(不缓冲) | `expo/fetch` + `eventsource-parser` 处理 SSE(必须使用 `expo/fetch`,RN 原生 fetch 不支持流式 `response.body`) | 51 52 53 Edge Function 完整代码、前端 SSE 工具函数及各平台调用示例详见 54 [references/ai-search-api.md](references/ai-search-api.md)。
qq5855144/githubm/tree/main/.skills/baidu-ai-search commit 1f861427c4
Frequently asked questions How do I install the Baidu AI Search skill? Run npx skillmds@latest add qq5855144/baidu-ai-search in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
What does the Baidu AI Search skill do? Baidu Ai Search It is listed under Coding & Dev Tools on SkillMD.
Is Baidu AI Search safe to use? This skill has not completed SkillMD's automated safety review yet. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
Which AI agents work with Baidu AI Search? This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Is Baidu AI Search free to use? Yes. Installing skills from SkillMD is free. This skill is licensed under MIT.
Who published Baidu AI Search? qq5855144 (@qq5855144) published this skill. Their other Agent Skills are listed on their SkillMD profile.