# OpenAI

## APIキーを取得

* 公式の[API Keyページ](https://platform.openai.com/api-keys)をクリック<mark style="background-color:green;">`+ Create new secret key`</mark>

<img src="/files/0de60b00dc2be50edd2bc6dd1fac4c3315f1788b" alt="" class="gitbook-drawing">

* 生成されたkeyをコピーし、CherryStudioの[サービスプロバイダー設定](https://github.com/CherryHQ/cherry-studio-docs/blob/main/pre-basic/providers/broken-reference/README.md)
* サービスプロバイダーOpenAIを見つけ、先ほど取得したkeyを入力する

<figure><img src="/files/8a46df298362fe8952bf9535a425df2161d50f66" alt=""><figcaption></figcaption></figure>

* 一番下の管理または追加をクリックし、対応するモデルを追加して右上のサービスプロバイダースイッチをオンにすれば使用できます。

{% hint style="info" %}

* 中国では台湾を除くその他の地域からOpenAIサービスを直接使用できず、プロキシの問題は各自で解決する必要があります；
* 残高が必要です。
  {% 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/openai.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.
