列出模型
GET
{{BASE_URL}}/v1/models列出当前可用的型号,并提供每个型号的基本信息,例如所有者和可用性。
请求参数
Header 参数
Authorization
string
可选
示例值:
Bearer {{YOUR_API_KEY}}
示例代码
返回响应
List models(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
object
string
必需
data
array [object {4}]
必需
id
string
必需
object
string
必需
created
integer
必需
owned_by
string
必需
示例List models
{
"object": "list",
"data": [
{
"id": "model-id-0",
"object": "model",
"created": 1686935002,
"owned_by": "organization-owner"
},
{
"id": "model-id-1",
"object": "model",
"created": 1686935002,
"owned_by": "organization-owner",
},
{
"id": "model-id-2",
"object": "model",
"created": 1686935002,
"owned_by": "openai"
},
],
"object": "list"
}
最后修改时间: 1 个月前