Models
GET/v1/models
Provides basic information about each one such as the owner and availability.
Follows the exact same API spec as OpenAI's Chat API https://developers.openai.com/api/reference/resources/models/methods/list
Responses
- 200
- 400
Successful Response
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
object stringrequired
The object type, which is always 'list'
Possible values: [list]
data
object[]
required
List of model objects
id stringrequired
The model identifier
object stringrequired
The object type, which is always 'model'
Possible values: [model]
created integerrequired
The Unix timestamp (in seconds) when the model was created
owned_by stringrequired
The organization that owns the model
{
"object": "list",
"data": [
{
"id": "string",
"object": "model",
"created": 0,
"owned_by": "string"
}
]
}
Bad request Error when passing an invalid or non-existing model name or an invalid enum or an invalid type in a field
- application/json
- Schema
- Example (from schema)
Schema
error
object
required
Error returned as response for invalid or missing model name
message string
type string
param string
code string
{
"error": {
"message": "string",
"type": "string",
"param": "string",
"code": "string"
}
}
Loading...