> For the complete documentation index, see [llms.txt](https://docs.skydeck.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.skydeck.ai/zh-hk/integrations/llms-and-databases/openai-integration.md).

# OpenAI 整合

## **SkyDeck AI 平台與 OpenAI 的整合**

\
ChatGPT 是由 OpenAI 開發的一款 AI 助的聊天機器人。它基於 GPT-4 語言模型，能夠生成類似人類的文本、翻譯語言和寫作不同類型的創新內容。ChatGPT 是各種應用程式的強大工具。OpenAI 是一家致力於以安全和負責任的方式開發和部署 AI 的非營利研究公司。與 SkyDeck AI 集成將讓您接觸到所有當前的 ChatGPT 模型。

### **生成 OpenAPI API 密鑰**

\
若要使用 OpenAI API，您需要按照以下三個簡單的步驟來生成一個 API 密鑰：

1. 在 OpenAI 網站上創建一個免費帳戶，通過註冊這裡：[https://beta.openai.com/signup. ↗](https://beta.openai.com/signup) 您可以使用您的 Google 或 Microsoft 帳戶進行註冊，或使用電子郵件/密碼組合創建帳戶。
2. 一旦您註冊了，請訪問您的 OpenAI 密鑰頁面：\
   [https://beta.openai.com/account/api-keys, ↗](https://beta.openai.com/account/api-keys)，或者點擊菜單項“查看 API 密鑰”。
3. 點擊“創建新的秘密密鑰”按鈕來生成新的 API 密鑰。這個金鑰為您提供對 GPT-4 和 ChatGPT 模型的訪問，所以您不需要單獨的 API 密鑰。

就這樣結束了！一旦您擁有了您的 API 密鑰，您就可以在 SkyDeck AI 平台中使用 ChatGPT 的 LLM。

### **將 API 金鑰添加到 SkyDeck AI 控制中心**

API 金鑰被添加到控制中心整合螢幕

1. 在此登入或創建 SkyDeck AI 管理帳戶：<https://admin.skydeck.ai/>
2. 當你已簽入後，請訪問你的整合頁面 [https://admin.skydeck.ai/integrations/ ↗](https://admin.skydeck.ai/integrations/)，或點擊選單中的“整合”。
3. 點擊“+添加整合”按鈕並按照指示輸入您的 API 金鑰。

就是這樣！您現在可以使用強大的 SkyDeck AI 工具並直接訪問 GPT-4 和 ChatGPT 模型。

注意：您將根據使用 ChatGPT API 的月度使用量來收費。費用結構是根據使用的代幣數量來確定的，750 個字（約 1000 個代幣）是最小可收費單位。每 1000 個代幣的費用根據使用的模型而變化，目前的 ChatGPT 默認模型是 GPT-3.5 Turbo。由 2023 年 7 月起，您可以開始使用 $5 的免費信用額度，該額度可以在您前 3 個月使用。ChatGPT 對於一般用途的定價非常低，但如果你計劃定期使用該服務，你必須添加你的信用卡資訊並被建議在 OpenAI 網站上設定一個使用限制。

OpenAPI ChatGPT 定價 [https://openai.com/pricing ↗](https://openai.com/pricing)


---

# 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.skydeck.ai/zh-hk/integrations/llms-and-databases/openai-integration.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.
