> For the complete documentation index, see [llms.txt](https://docs.cherryai.com.cn/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cherryai.com.cn/docs/jp/pre-basic/providers/newapi.md).

# NewAPI

Cherry Studio には New API プロバイダが標準搭載されています。1つの New API アドレスで OpenAI Chat、OpenAI Responses、Anthropic Messages、Gemini の各プロトコルに同時接続でき、プロトコルごとに個別のプロバイダを追加する必要はありません。

## 設定手順

1. New API 管理画面でトークンを作成してコピーする；
2. Cherry Studio の【設定】→【モデルサービス】→【New API】を開く；
3. 【API キー】を入力する；
4. 【API アドレス】に New API のルートアドレスを入力します。例えば `https://api.example.com`；
5. モデルを取得または手動で追加し、【検出】が完了したら右上の有効化スイッチをオンにします。

Cherry Studio は選択したプロトコルに応じて対応するバージョンパスを自動で使用します。例えば `/v1` または `/v1beta`。通常はルートアドレスを1回入力するだけでよく、 `/chat/completions` などの完全なエンドポイントパスを貼り付けないでください。

{% hint style="warning" %}
以前ベータ版を使用し、他のプロトコルのアドレスに `localhost:3000` などの古い値が残っている場合は、New API 設定に入り、デフォルト以外のプロトコルの古いアドレスを一度空にしてから、再度検出してください。そうしないと、一部のモデルは引き続き古いアドレスにリクエストする可能性があります。
{% endhint %}

<details>

<summary>中継サーバーでバージョンなしのパスを使う場合は？</summary>

中継サーバーが明確に、 `/v1` または `/v1beta` を含まないパスを使うよう要求する場合にのみ、対応する API アドレスの末尾に `#`。`#` は、バージョンパスを自動付与しないことを示します。通常の New API デプロイでは使用しないでください。

</details>

{% hint style="info" %}
アドレスには正しい `http://` または `https://`を保持する必要があります。IP とポートを使う場合は、次のような形式で入力できます。 `http://127.0.0.1:3000` のルートアドレス。
{% endhint %}

***

### ヘルプの取得とフィードバックの送信

設定や使用の過程で疑問、バグ、または機能改善の提案がある場合は、 [フィードバックと提案](/docs/jp/question-contact/suggestions.md) に記載されている公式窓口をご参照ください。


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.cherryai.com.cn/docs/jp/pre-basic/providers/newapi.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
