> 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/zhong-wen-fan-ti/pre-basic/providers/openai.md).

# 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 %}

***

### 💡 取得幫助同提交反饋

如果你喺配置或者使用過程中遇到任何疑問、Bug 或者有功能改善建議，請參考 [反饋同建議](/docs/zhong-wen-fan-ti/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/zhong-wen-fan-ti/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.
