List models
GET https://api.fastapi.ai/v1/models
Lists the currently available models, and provides basic information about each one such as the owner and availability.
Returns
A list of model objects.
The model object
Describes an OpenAI model offering that can be used with the API.
id
string
The model identifier, which can be referenced in the API endpoints.
created
integer
The Unix timestamp (in seconds) when the model was created.
object
string
The object type, which is always "model".
owned_by
string
The organization that owns the model.
bash
{
"id": "gpt-4o",
"object": "model",
"created": 1686935002,
"owned_by": "openai"
}
Example
Request
bash
curl https://api.fastapi.ai/v1/models \
-H "Authorization: Bearer $FAST_API_KEY"
Response
bash
{
"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"
}