检索模型
GET
https://api.openai.com/v1/models/{modelid}
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://api.openai.com/v1/models/babbage' \
--header 'Authorization: Bearer '
响应示例响应示例
{
"id": "gpt-3.5-turbo-instruct",
"object": "model",
"created": 1686935002,
"owned_by": "openai"
}
请求参数
Path 参数
modelid
string
必需
示例值:
babbage
Header 参数
Authorization
string
可选
示例值:
Bearer {{YOUR_API_KEY}}
返回响应
修改于 2024-02-05 04:26:07