Skip to content

Models

List models
client.models.list(RequestOptionsoptions?): Page<Model { id, created, object, owned_by } >
GET/models
Retrieve model
client.models.retrieve(stringmodel, RequestOptionsoptions?): Model { id, created, object, owned_by }
GET/models/{model}
Delete a fine-tuned model
client.models.delete(stringmodel, RequestOptionsoptions?): ModelDeleted { id, deleted, object }
DELETE/models/{model}
ModelsExpand Collapse
Model { id, created, object, owned_by }

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: number

The Unix timestamp (in seconds) when the model was created.

object: "model"

The object type, which is always "model".

owned_by: string

The organization that owns the model.

ModelDeleted { id, deleted, object }
id: string
deleted: boolean
object: string