# OneAPI

* Log in and go to the token page

<figure><img src="https://1658303467-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0Ut5BptC3t8CtSU1UWpM%2Fuploads%2Fgit-blob-4efc19c459d1d6eff0cd828627d56bac4662f7a8%2Fimage%20(20).png?alt=media" alt=""><figcaption></figcaption></figure>

* Create a new token (you can also directly use the default token ↑)

<figure><img src="https://1658303467-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0Ut5BptC3t8CtSU1UWpM%2Fuploads%2Fgit-blob-8f9da4239594f17807bff1c5cb62e8a817e338cf%2Fimage%20(19).png?alt=media" alt="" width="563"><figcaption></figcaption></figure>

* Copy the token

<figure><img src="https://1658303467-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0Ut5BptC3t8CtSU1UWpM%2Fuploads%2Fgit-blob-ed0d9ce1b6642b8d9e23bb2aaee4e4db9369096e%2Fimage%20(23).png?alt=media" alt="" width="563"><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="https://1658303467-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0Ut5BptC3t8CtSU1UWpM%2Fuploads%2Fgit-blob-576769f8965a56f182925e3209690d9459a73e26%2Fimage%20(25).png?alt=media" 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="https://1658303467-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0Ut5BptC3t8CtSU1UWpM%2Fuploads%2Fgit-blob-91a2b54ef14a03e7453c00305e938e84ce93684b%2Fimage%20(26).png?alt=media" alt="" width="563"><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.

{% hint style="success" %}
OneAPI may have a different interface in other themes, but the method for adding is the same as the procedure above.
{% endhint %}
