# 使用说明

#### 本站接口支持市面上 90% 的 ChatGPT 应用，将官方接口地址替换成本站接口地址，再填入本站的API Key即可。 <a href="#ben-zhan-jie-kou-zhi-chi-shi-mian-shang-90-de-chatgpt-ying-yong-jiang-guan-fang-jie-kou-di-zhi-ti-hu" id="ben-zhan-jie-kou-zhi-chi-shi-mian-shang-90-de-chatgpt-ying-yong-jiang-guan-fang-jie-kou-di-zhi-ti-hu"></a>

> **本站接口地址（BASE\_URL）：**
>
> [**https://openkey.cloud**](https://openkey.cloud/)
>
> **令牌（API Key）：**
>
> **sk-09rSZn7f7QgUHtZ7Ff0e916a3bC6404392Dc20Abxxxxxxxx**

#### 详细教程如下： <a href="#xiang-xi-jiao-cheng-ru-xia" id="xiang-xi-jiao-cheng-ru-xia"></a>

第一步：若没有账号，请先注册并登录账号，也可以前往“[Box小铺](https://shop.terobox.com/)”或“[51BuyGPT](https://shop.51buygpt.com/)”直接购买。

第二步：在“[充值](https://openkey.cloud/topup)”页面输入兑换码（需要购买），获取Token额度。

第三步：在“[令牌](https://openkey.cloud/token)”页面点击“添加新的令牌”，设置名称、过期时间及额度（额度是指Token数，建议设置为无限额度）后点击提交，回到“令牌”页面，点击绿色的“复制”按钮，即可得到一串“sk-”开头的API Key。

第四步：使用令牌及接口

* 若用于开发场景，如 LangChain 等，接口使用方式与 OpenAI API 一致，仅需调整2步：第1步，修改API BASE URL，把原接口地址 [https://api.openai.com](https://api.openai.com/) 修改为本站的接口地址 [https://openkey.cloud](https://openkey.cloud/) ；第2步，把 API KEY 修改为 OpenKEY 平台生成的令牌KEY，即可正常调用API。
* 若用于网页对话网站（如ChatGPT Next），浏览器插件（如OpenAI Translator）及客户端（如ChatBox）等场景，把 API 调用接口的网址由 [https://api.openai.com](https://api.openai.com/) 更改为 本站的接口地址 [https://openkey.cloud](https://openkey.cloud/) ，再填入API Key（即令牌），选择模型即可。

最后，消费明细可在“[日志](https://openkey.cloud/log)”页面查看。

#### [代码示例：如何调用OpenKEY API实现ChatGPT对话 | Python代码](https://gptocean.com/d/1241) <a href="#dai-ma-shi-li-ru-he-tiao-yong-openkeyapi-shi-xian-chatgpt-dui-hua-python-dai-ma" id="dai-ma-shi-li-ru-he-tiao-yong-openkeyapi-shi-xian-chatgpt-dui-hua-python-dai-ma"></a>

### 适用网站 <a href="#kuo-yong-wang-zhan" id="kuo-yong-wang-zhan"></a>

**Web聊天平台**

51Buy对话网 - <https://vip.51buygpt.com/>

ChatBox - <https://web.chatboxai.app/>

以上仅列举部分，OpenKEY API完全兼容OpenAI接口协议，支持无缝对接各种支持OpenAi接口的应用。


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.openkey.cloud/help.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
