API 使用说明
认证方式
所有对 /v1/... 接口的请求(/v1/models 除外),都需在 HTTP 请求头中包含 Authorization 字段,并使用系统为您生成的专属 API Key 作为 Bearer Token。
格式示例:
Authorization: Bearer YOUR_API_KEY
授权要求
您的 Linux.do 账户信任等级 (Trust Level) 必须达到 L2 或更高 才能成功生成和使用专属 API Key 访问本服务。
主要 API 端点
聊天补全 (需认证):
POST https://openai-api.xiercloud.workers.dev/v1/chat/completions
获取可用模型 (公开):
GET https://openai-api.xiercloud.workers.dev/v1/models