地址与端点
Base URL 规则
不同客户端会自动拼接不同路径,不能统一机械地添加 /v1。
| 客户端/协议 | 推荐 Base URL | 客户端最终请求 |
|---|---|---|
| Claude Code | https://api.minoagi.com |
/v1/messages |
| Codex(系统生成配置) | https://api.minoagi.com |
/responses |
| Codex(标准 OpenAI 配置) | https://api.minoagi.com/v1 |
/v1/responses |
| OpenAI SDK | https://api.minoagi.com/v1 |
/v1/chat/completions 或 /v1/responses |
| Gemini CLI | https://api.minoagi.com |
/v1beta/models/... |
| Antigravity Claude | https://api.minoagi.com/antigravity |
/antigravity/v1/messages |
Sub2API 同时兼容 /responses 与 /v1/responses。使用 Minoagi 控制台“使用”按钮或 CC-Switch 一键导入时,保持系统生成的根地址即可;手动配置标准 OpenAI SDK 时使用 /v1。
公开 AI 接口
| 方法 | 路径 | 说明 |
|---|---|---|
GET |
/v1/models |
查询密钥可见模型 |
POST |
/v1/messages |
Anthropic Messages |
POST |
/v1/messages/count_tokens |
Anthropic Token 计数 |
POST |
/v1/responses |
OpenAI Responses |
POST |
/v1/chat/completions |
OpenAI Chat Completions |
GET/POST |
/v1beta/models/... |
Gemini API |
Note
实际可用接口和模型受密钥分组约束。接口存在不代表当前 Key 一定有对应上游权限。