> ## Documentation Index
> Fetch the complete documentation index at: https://docs.viviai.cc/llms.txt
> Use this file to discover all available pages before exploring further.

# 代码调用

通过代码、SDK 或 HTTP 请求调用 ViVi-API，选择所需协议，查看接入方法、请求参数和调用示例。

## 选择接口协议

| 接口协议 | 请求路径 | 文档入口 |
| - | - | - |
| **OpenAI Chat** | `/v1/chat/completions` | [接入方法与参数](https://docs.viviai.cc/openai-chat.md) |
| **Gemini** | `/v1beta/models/{model}:generateContent` | [接入方法与参数](https://docs.viviai.cc/gemini.md) |
| **Anthropic** | `/v1/messages` | [接入方法与参数](https://docs.viviai.cc/anthropic.md) |

API 服务地址：`https://api.viviai.cc`。请使用创建的令牌 Key，并确认模型支持所选协议。

## 接入前准备

* [快速开始](https://docs.viviai.cc/index.md)：注册账号、兑换余额并创建令牌。
* [模型价格](https://docs.viviai.cc/pricing.md)：查看分组倍率、节省比例、模型 ID 和适用场景。

接入遇到问题，请查看[常见问题](https://docs.viviai.cc/faq.md)。如果你使用现成的软件，请前往[软件接入](https://docs.viviai.cc/scenarios.md)，按场景查找配置教程。


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.