Skip to content

Models

List models
client.Models.List(ctx) (*Page[Model], error)
GET/models
Retrieve model
client.Models.Get(ctx, model) (*Model, error)
GET/models/{model}
Delete a fine-tuned model
client.Models.Delete(ctx, model) (*ModelDeleted, error)
DELETE/models/{model}
ModelsExpand Collapse
type Model struct{…}

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 int64

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

Object Model

The object type, which is always "model".

OwnedBy string

The organization that owns the model.

type ModelDeleted struct{…}
ID string
Deleted bool
Object string