# OpenAI

## 攞 API Key

* 喺官方[API Key 頁面](https://platform.openai.com/api-keys)撳<mark style="background-color:green;">`+ Create new secret key`</mark>

<img src="/files/02cfde6a5aba97156242b1dd1af23c1a76561265" 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/88f7d6173126fb24afc1b1add6c6c3c7c8bd9250" 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/zhong-wen-fan-ti/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.
