返回模型列表
GLM Search Pro (Quark)
zhipuzhipu/search-pro-quark
供应商自营与 TheRouter 服务形态的差异
供应商自己运营时
BigModel 通过 tools API 以夸克支撑联网搜索引擎形式运行 search_pro_quark,而不是普通 chat-completions 模型。
在 TheRouter 上
TheRouter 在 /v1/chat/completions 上以 zhipu/search-pro-quark 暴露它,并把 tools 响应转换为 markdown 结果行、url_citation 标注与 usage.web_search_requests 计费元数据。
API 使用指南
通过 Chat Completions 搜索
通过 OpenAI 兼容的 chat-completions 端点调用 search-pro-quark。读取 message.annotations 中的 url_citation 条目,以及 usage.web_search_requests 按次计费字段。
cURL
curl https://api.therouter.ai/v1/chat/completions \
-H "Authorization: Bearer $THEROUTER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"zhipu/search-pro-quark","messages":[{"role":"user","content":"Find recent Chinese e-commerce logistics updates with sources"}],"search_recency_filter":"oneWeek","content_size":"high"}'单 chunk 流式
为兼容客户端可传 stream=true,但上游搜索工具不会分片流式输出。预期行为是一个完整 chunk,然后 [DONE]。
cURL
curl https://api.therouter.ai/v1/chat/completions \
-H "Authorization: Bearer $THEROUTER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"zhipu/search-pro-quark","stream":true,"messages":[{"role":"user","content":"Find Quark-indexed education technology updates"}]}'