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

# 三种协议的密钥应该放在哪里？

| 协议 | 鉴权请求头 |
| - | - |
| OpenAI Chat | `Authorization: Bearer API_KEY` |
| Gemini | `x-goog-api-key: API_KEY` |
| Anthropic | `x-api-key: API_KEY` |

Anthropic 还需发送 `anthropic-version`。这些示例使用的都是 ViVi-API 密钥，请将 `API_KEY` 替换为创建的令牌 Key。

完整示例：[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.