# OneAPI

* ログインしてトークンページに入る

<figure><img src="https://3776196818-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>

* 新しいトークンを作成する（defaultトークン↑を直接使用してもよい）

<figure><img src="https://3776196818-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>

* トークンをコピーする

<figure><img src="https://3776196818-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>

* CherryStudioのサービスプロバイダー設定を開き、プロバイダー一覧の最下部の［］をクリック`追加`
* メモ名を入力し、プロバイダーはOpenAIを選択して、OKをクリック

<figure><img src="https://3776196818-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>

* 先ほどコピーしたキーを入力
* API Keyを取得したページに戻り、該当するブラウザのアドレスバーからルートアドレスをコピーします。例：

<figure><img src="https://3776196818-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>https://xxx.xxx.com だけをコピーすればよく、「/」およびその後の内容は不要です</strong></p></figcaption></figure>

{% hint style="info" %}

* アドレスがIP＋ポートの場合は [http://IP:ポート](https://docs.cherry-ai.com/docs/jp/pre-basic/providers/http:/IP:ポート) と入力すればよく、例：<http://127.0.0.1:3000>

* 厳密に区別する`http`と`https`。SSLを有効にしていない場合は https を入力しないでください
  {% endhint %}

* モデルを追加（［管理］をクリックして自動取得するか、手動で入力）し、右上のスイッチをオンにすれば使用できます。

{% hint style="success" %}
OneAPIの他のテーマでは画面が多少異なる場合がありますが、追加方法は上記の操作手順と同じです。
{% endhint %}
