> ## 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.

# 接口格式怎么填写？

按软件使用的协议，将原服务地址替换为 ViVi-API 地址：

## Gemini 接口

原地址：`https://generativelanguage.googleapis.com/v1beta`

替换为：`https://api.viviai.cc/v1beta`

## OpenAI / OAI 接口

原地址：`https://api.openai.com/v1`

替换为：`https://api.viviai.cc/v1`

## Claude / Anthropic 接口

原地址：`https://api.anthropic.com/v1/messages`

替换为：`https://api.viviai.cc/v1/messages`

> [!NOTE]
>
> 有的软件只需要填写 `https://api.viviai.cc`，会自动拼接接口路径；有的软件需要完整 Base URL 或请求地址。请按软件字段说明填写。调用出错时检查是否缺少路径，或重复添加了 `/v1` 等内容。

查看请求参数与示例：[OpenAI Chat](https://docs.viviai.cc/openai-chat.md) · [Gemini](https://docs.viviai.cc/gemini.md) · [Anthropic](https://docs.viviai.cc/anthropic.md)


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