> 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/openai.md).

# OpenAI

## APIキーを取得する

* 公式の [APIキーのページ](https://platform.openai.com/api-keys) をクリック<mark style="background-color:green;">`+ 新しいシークレットキーを作成`</mark>

<img src="https://3776196818-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0Ut5BptC3t8CtSU1UWpM%2Fuploads%2Fgit-blob-159901909dca352408b76ab8ab813843abe5140d%2Ffile.excalidraw%20(1).svg?alt=media" alt="" class="gitbook-drawing">

* 生成されたキーをコピーし、CherryStudio の [モデルサービス設定](/docs/jp/pre-basic/providers/providers.md)
* サービス提供者 OpenAI を見つけ、先ほど取得したキーを入力します

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

* 最下部の管理または追加をクリックして、対応モデルを追加し、右上のサービス提供者のスイッチをオンにすれば使用できます。

{% hint style="info" %}

* 中国では台湾を除くその他の地域から OpenAI サービスを直接利用できないため、プロキシの問題を自分で解決する必要があります；
* 残高が必要です。
  {% endhint %}

***

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

設定または使用の過程で疑問、Bug、または機能改善の提案がある場合は、 [フィードバックと提案](/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/openai.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.
