2023/3/13 17:19
API Reference - OpenAI API --- API 参考 - OpenAI API
https://platform.openai.com/docs/api-reference/fine-tunes/delete-model
1/45
You can interact with the API through HTTP requests from any language, via our official
Python bindings, our official Node.js library, or a community-maintained library.
您可以通过任何语言的 HTTP 请求、我们的官方 Python 绑定、我们的官方 Node.js 库或社区维
护的库与 API 交互。
To install the official Python bindings, run the following command:
要安装官方 Python 绑定,请运行以下命令:
To install the official Node.js library, run the following command in your Node.js project
directory:
要安装官方 Node.js 库,请在 Node.js 项目目录中运行以下命令:
The OpenAI API uses API keys for authentication. Visit your API Keys page to retrieve the
API key you'll use in your requests.
OpenAI API 使用 API 密钥进行身份验证。访问您的 API 密钥页面以检索您将在请求中使用的
API 密钥。
Remember that your API key is a secret! Do not share it with others or expose it in any
client-side code (browsers, apps). Production requests must be routed through your own
backend server where your API key can be securely loaded from an environment variable
or key management service.
请记住,您的 API 密钥是秘密的!不要与他人共享或在任何客户端代码(浏览器、应用程序)
中公开它。生产请求必须通过您自己的后端服务器进行路由,您的 API 密钥可以从环境变量或
密钥管理服务中安全加载。
All API requests should include your API key in an
Authorization
HTTP header as follows:
所有 API 请求都应在
Authorization
HTTP 标头中包含您的 API 密钥,如下所示:
Introduction介绍
pip install openai
npm install openai
Authentication验证