Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/openai/resources/models.ts>Models

Deno build of the official Typescript library for the OpenAI API.
Extremely Popular
Go to Latest
namespace Models
import { Models } from "https://deno.land/x/openai@v4.58.1/resources/models.ts";
class Models
extends APIResource
import { Models } from "https://deno.land/x/openai@v4.58.1/resources/models.ts";

Methods

del(model: string, options?: Core.RequestOptions): Core.APIPromise<ModelDeleted>

Delete a fine-tuned model. You must have the Owner role in your organization to delete a model.

list(options?: Core.RequestOptions): Core.PagePromise<ModelsPage, Model>

Lists the currently available models, and provides basic information about each one such as the owner and availability.

retrieve(model: string, options?: Core.RequestOptions): Core.APIPromise<Model>

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