# Genesis 模型 API

Genesis 模型 API 用于从应用程序调用模型。它提供 OpenAI 兼容的 Chat Completions 和 Responses 接口、Anthropic 兼容的 Messages 接口，以及 Embeddings 和 Rerank 等检索与向量接口。

调用前，确认所选接口的服务地址、认证方式、模型 ID 与请求格式。不要在不同接口之间混用请求体、响应字段或认证 Header。

## 选择入口

| 你的目标 | 从哪里开始 |
| --- | --- |
| 第一次调用模型 | [开始使用](getting-started/index.md) |
| 接入已有 OpenAI 客户端 | [OpenAI 兼容接口](openai-compatible/index.md) |
| 接入已有 Anthropic 客户端 | [Anthropic 兼容接口](anthropic-compatible/index.md) |
| 创建向量或重排序候选内容 | [检索与向量接口](retrieval-vector/index.md) |
| 查询调用记录与配额 | [用量、日志与配额](usage-logs-quotas.md) |

```{toctree}
:hidden:
:maxdepth: 2

开始使用 <getting-started/index>
OpenAI 兼容接口 <openai-compatible/index>
Anthropic 兼容接口 <anthropic-compatible/index>
检索与向量接口 <retrieval-vector/index>
用量、日志与配额 <usage-logs-quotas>
Genesis API 参考 <api-reference>
```
