Get Model List
GET
https://api.cometapi.com/v1/modelsLists the currently available models, and provides basic information about each one such as the owner and availability.
Request
[message.headerParameter]
Authorization
string
可选
your API-KEY or Token
示例值:
Bearer sk-xxxxxx
Request samples
[api.label.responses]
Success(200)
HTTP Code: 200
Content Type : JSONapplication/json
[response.label.jsonSchema]
data
array [object {4}]
必需
id
string
必需
object
string
必需
owned_by
string
必需
permission
array[string]
必需
object
string
必需
[api.label.example]
{
"data": [
{
"id": "model-id-0",
"object": "model",
"owned_by": "organization-owner",
"permission": [...]
},
{
"id": "model-id-1",
"object": "model",
"owned_by": "organization-owner",
"permission": [...]
},
{
"id": "model-id-2",
"object": "model",
"owned_by": "openai",
"permission": [...]
}
],
"object": "list"
}
[updatedIn] 6 个月前