List models
GET
https://api.openai.com/v1/modelsList and describe the various models available in the API. You can refer to the Models documentation to understand what models are available and the differences between them.
Lists the currently available models, and provides basic information about each one such as the owner and availability.
Request
Header Params
Authorization
string
optional
Example:
Bearer {{YOUR_API_KEY}}
Request samples
Responses
List models(200)
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
data
array [object {4}]
required
id
string
required
object
string
required
owned_by
string
required
permission
array [object]
required
object
string
required
ExampleList models
{
"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"
}
Last modified: a year ago