API文档(api-reference)
引擎(Engines)

模型引擎Engines

模型引擎端点都已经废弃.请改用它们的替代品模型了解更多 (opens in a new tab)

这些端点描述并提供对API中可用引擎的访问。

列出废弃模型List engines Deprecatedget  https://api.openai.com/v1/engines (opens in a new tab)

列出当前可用的(未微调的)模型,并提供每个模型的基本信息,例如所有者和可用性。

请求示例(Python方式)

curl https://api.openai.com/v1/engines 
  -H "Authorization: Bearer $OPENAI_API_KEY"

响应体 (Response)

{
 "data": [
    {
 "id": "engine-id-0",
 "object": "engine",
 "owner": "organization-owner",
 "ready": true
    },
    {
 "id": "engine-id-2",
 "object": "engine",
 "owner": "organization-owner",
 "ready": true
    },
    {
 "id": "engine-id-3",
 "object": "engine",
 "owner": "openai",
 "ready": false
    },
  ],
 "object": "list"
}

检索可用模型实例 Retrieve engine Deprecated

get  https://api.openai.com/v1/engines/{engine_id} (opens in a new tab)

检索模型实例,提供有关其所有者和可用性等基本信息。

路径参数

engine_id字符串类型,必填项。用于此请求的引擎的ID

Example 请求示例(Python方式)

curl https://api.openai.com/v1/engines/text-davinci-003 
  -H "Authorization: Bearer $OPENAI_API_KEY"

请求示例(Python方式)

{
 "id": "text-davinci-003",
 "object": "engine",
 "owner": "openai",
 "ready": true
}