# OneAPI

* 登录并进入令牌页面

<figure><img src="/files/yJWBYO8BAqYb0MzEVFfW" alt=""><figcaption></figcaption></figure>

* 创建新令牌（也可以直接使用default令牌↑）

<figure><img src="/files/tthsbaztmWom5G4mtvRg" alt="" width="563"><figcaption></figcaption></figure>

* 复制令牌

<figure><img src="/files/7rOnPAaedUI1BoqEhE7p" alt="" width="563"><figcaption></figcaption></figure>

* 打开CherryStudio的服务商设置点击服务商列表最下方的`添加`
* 输入备注名称，提供商选OpenAI，点击确定

<figure><img src="/files/lTWphCcbyJKGPdBC7TB9" alt="" width="291"><figcaption></figcaption></figure>

* 填入刚刚复制的key
* 回到获取API Key的页面，在对应浏览器地址栏复制根地址，例：

<figure><img src="/files/tOViTrVZTihii5zmgLgJ" alt="" width="563"><figcaption><p><strong>只需要复制https://xxx.xxx.com即可，“/”及其之后的内容不需要</strong></p></figcaption></figure>

{% hint style="info" %}

* 当地址为IP+端口时填[http://IP:端口即可，如：http://127.0.0.1:3000](https://docs.cherry-ai.com/pre-basic/providers/http:/IP:端口即可，如：http:/127.0.0.1:3000)

* 严格区分`http`和`https`，如果没有开启SSL就不要填https
  {% endhint %}

* 添加模型（点击管理自动获取或手动输入）打开右上角开关即可使用。

{% hint style="success" %}
OneAPI其他主题可能界面有所不同，但添加方法跟上述操作流程一致。
{% endhint %}


---

# 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.cherry-ai.com/pre-basic/providers/oneapi.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.
