集合 API
集合 REST API 概览
集合 API 允许你通过编程方式管理集合中的 documents 和 collections。
collection 管理接口与 管理 API 共用基础 URL:https://management-api.x.ai/v1/。你必须使用 xAI 管理 API 密钥,并通过 Authorization: Bearer <your xAI Management API key> 请求头完成身份验证。
在 collections 中进行搜索的接口与 REST API 共用基础 URL:https://api.x.ai。你必须使用 Authorization: Bearer <your xAI API key> 请求头完成身份验证。
最后更新:2026 年 6 月 11 日