clovegateway — 对外 Base URL(样品页)

当前推断的公网入口:https://gateway11.zeabur.app (可在环境变量 PUBLIC_BASE_URL 中固定,避免反代头不一致)

请求头使用与 Clove 相同的 x-api-key 或 Authorization: Bearer <与 Clove 一致的密钥>。

1. Cursor(独立前缀 /cursor

在 Cursor 设置里把 OpenAI Base URL 指到「Base URL」列;密钥仍用 Clove 的 API Key。

用途OpenAI 兼容,与下方 /oai 行为相同,仅路径不同,便于单独配置。
Base URL(常用)https://gateway11.zeabur.app/cursor
chat/completionshttps://gateway11.zeabur.app/cursor/v1/chat/completions
modelshttps://gateway11.zeabur.app/cursor/v1/models

2. CCH / 通用 OpenAI(/oai

供应商填到 /oai;若产品会自动拼路径,只填 Base 到 /oai 即可。

Base URLhttps://gateway11.zeabur.app/oai
chat/completionshttps://gateway11.zeabur.app/oai/v1/chat/completions
modelshttps://gateway11.zeabur.app/oai/v1/models

3. Anthropic / Claude Code CLI(/anthropic

ANTHROPIC_BASE_URL 指到「Base URL」;与直连 Clove 相同密钥。

Base URLhttps://gateway11.zeabur.app/anthropic
messageshttps://gateway11.zeabur.app/anthropic/v1/messages

4. 健康检查

https://gateway11.zeabur.app/health → JSON {"status":"ok"}

机器可读:/api/info