# NewAPI

* 登录并打开令牌页面
* 点击添加令牌

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

* 输入令牌名称后点击提交（其他设置如有需要可自行配置）

<figure><img src="/files/cS00JDVtW2d3amsZCjea" alt="" width="240"><figcaption></figcaption></figure>

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

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

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

<figure><img src="/files/X8Y90lnSunBfGCX80QBM" alt=""><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 %}

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


---

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