# NewAPI

* ログインしてトークンページを開く
* ［トークンを追加］をクリック

<figure><img src="https://3776196818-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0Ut5BptC3t8CtSU1UWpM%2Fuploads%2Fgit-blob-1eb29a3442586cb00f74698d90f5da53c4c989f1%2Fimage%20(28).png?alt=media" alt=""><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-6bf089e6345ec76964053d8b6b58d5b88a86ac7d%2Fimage%20(29).png?alt=media" alt="" width="240"><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-56da5ef2284935a4ae3fef288fd624d108dca0c9%2Fimage%20(30).png?alt=media" alt=""><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 %}

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


---

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