> 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-cn/integrations/llms-and-databases/openai-integration.md).

# OpenAI 集成

## **OpenAI与SkyDeck AI平台的集成**

\
ChatGPT是由OpenAI开发的一款AI驱动的聊天机器人。它基于GPT-4语言模型，可以生成类似人类的文本，翻译语言，以及创作不同类型的创意内容。ChatGPT是各种应用场景中强大的工具。OpenAI是一家以安全和负责任的方式开发和部署AI的非盈利研究公司。与SkyDeck AI集成将使您可以访问ChatGPT的所有当前模型。

### **生成一个OpenAPI API密钥**

\
要使用OpenAI API，你需要按照以下3个简单的步骤来生成一个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 美元免费额度进行实验。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-cn/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.
