Skip to content

Models

List models
models.list() -> SyncPage[Model]
GET/models
Retrieve model
models.retrieve(strmodel) -> Model
GET/models/{model}
Delete a fine-tuned model
models.delete(strmodel) -> ModelDeleted
DELETE/models/{model}
ModelsExpand Collapse
class Model:

Describes an OpenAI model offering that can be used with the API.

id: str

The model identifier, which can be referenced in the API endpoints.

created: int

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

object: Literal["model"]

The object type, which is always "model".

owned_by: str

The organization that owns the model.

class ModelDeleted:
id: str
deleted: bool
object: str