引擎端点
这些端点描述并提供对 API 中可用的各种引擎的访问。
列出引擎 弃用
get https://api.openai.com/v1/engines
列出当前可用(未微调)的模型,并提供有关每个模型的基本信息,例如所有者和可用性。
Example request
bash
Curl
bash
curl https://api.openai.com/v1/engines/text-davinci-003 \
-H "Authorization: Bearer $OPENAI_API_KEY"
Response
json
{
"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 弃用
get https://api.openai.com/v1/engines/{engine\_id}
检索模型实例,提供有关它的基本信息,例如所有者和可用性。
请求示例
bash
Curl
bash
curl https://api.openai.com/v1/engines/text-davinci-003 \
-H "Authorization: Bearer $OPENAI_API_KEY"
响应示例
json
{
"id": "text-davinci-003",
"object": "engine",
"owner": "openai",
"ready": true
}
路径参数
engine_id string
必填
用于此请求的引擎的 ID