# NewAPI

* Log in and open the token page
* Click Add Token

<figure><img src="/files/62da6ec2c40065e10d0bede2950d60858755d783" alt=""><figcaption></figcaption></figure>

* After entering the token name, click Submit (other settings can be configured as needed)

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

* Open CherryStudio’s provider settings and click the bottom-most item in the provider list`Add`
* Enter a remark name, choose OpenAI as the provider, and click Confirm

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

* Enter the key you just copied
* Go back to the page where you obtained the API Key, then copy the root address from the corresponding browser address bar, for example:

<figure><img src="/files/303de69d904ec378261811e818f047bff3e75dc9" alt=""><figcaption><p><strong>You only need to copy https://xxx.xxx.com; the “/” and everything after it are not needed</strong></p></figcaption></figure>

{% hint style="info" %}

* When the address is an IP + port, just enter [http://IP:port](https://docs.cherry-ai.com/docs/en-us/pre-basic/providers/http:/IP:port), for example: <http://127.0.0.1:3000>

* Strictly distinguish`http`and`https`, if SSL is not enabled, do not enter https
  {% endhint %}

* Add models (click Manage to auto-fetch or manually enter them), then turn on the switch in the upper-right corner to use them.


---

# 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/docs/en-us/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.
