Skip to content

Retrieve model

GET https://api.fastapi.ai/v1/models/{model}

Retrieves a model instance, providing basic information about the model such as the owner and permissioning.

Path parameters


model string Required
The ID of the model to use for this request

Returns


The model object matching the specified ID.


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.


OBJECT The model object
bash
{
  "id": "gpt-4o",
  "object": "model",
  "created": 1686935002,
  "owned_by": "openai"
}

Example

Request

bash
curl https://api.fastapi.ai/v1/models/gpt-4o \
  -H "Authorization: Bearer $FAST_API_KEY"

Response

bash
{
  "id": "gpt-4o",
  "object": "model",
  "created": 1686935002,
  "owned_by": "openai"
}

那年我双手插兜, 让bug稳如老狗