Table of Contents

Class Model

Namespace
OpenAI.Models
Assembly
OpenAI-DotNet.dll
public sealed class Model
Inheritance
Model
Inherited Members

Constructors

Model(string, string)

Constructor.

public Model(string id, string ownedBy = null)

Parameters

id string

Model id.

ownedBy string

Optional, owned by id.

Properties

Babbage

Replacement for the GPT-3 ada and babbage base models.

public static Model Babbage { get; }

Property Value

Model

CreatedAt

[JsonIgnore]
public DateTime CreatedAt { get; }

Property Value

DateTime

CreatedAtUnixTimeSeconds

[JsonInclude]
[JsonPropertyName("created")]
public int CreatedAtUnixTimeSeconds { get; }

Property Value

int

DallE_2

The default model for ImagesEndpoint.

public static Model DallE_2 { get; }

Property Value

Model

DallE_3

public static Model DallE_3 { get; }

Property Value

Model

Davinci

Replacement for the GPT-3 curie and davinci base models.

public static Model Davinci { get; }

Property Value

Model

Embedding_3_Large

Most capable embedding model for both english and non-english tasks.

public static Model Embedding_3_Large { get; }

Property Value

Model

Remarks

Output Dimension: 3,072

Embedding_3_Small

A highly efficient model which provides a significant upgrade over its predecessor, the text-embedding-ada-002 model.

public static Model Embedding_3_Small { get; }

Property Value

Model

Remarks

Output Dimension: 1,536

Embedding_Ada_002

The default model for EmbeddingsEndpoint.

public static Model Embedding_Ada_002 { get; }

Property Value

Model

Remarks

Output Dimension: 1,536

GPT3_5_Turbo

GPT-3.5 Turbo models can understand and generate natural language or code and have been optimized for chat using the Chat Completions API but work well for non-chat tasks as well.

public static Model GPT3_5_Turbo { get; }

Property Value

Model

Remarks

Context Window: 4,096 tokens

GPT3_5_Turbo_16K

Same capabilities as the base gpt-3.5-turbo mode but with 4x the context length. Tokens are 2x the price of gpt-3.5-turbo. Will be updated with our latest model iteration.

public static Model GPT3_5_Turbo_16K { get; }

Property Value

Model

GPT4

More capable than any GPT-3.5 model, able to do more complex tasks, and optimized for chat. Will be updated with our latest model iteration.

public static Model GPT4 { get; }

Property Value

Model

Remarks

Context Window: 8,192 tokens

GPT4_32K

Same capabilities as the base gpt-4 mode but with 4x the context length. Will be updated with our latest model iteration. Tokens are 2x the price of gpt-4.

public static Model GPT4_32K { get; }

Property Value

Model

GPT4_5

public static Model GPT4_5 { get; }

Property Value

Model

GPT4_Turbo

The latest GPT-4 Turbo model with vision capabilities. Vision requests can now use JSON mode and function calling.

public static Model GPT4_Turbo { get; }

Property Value

Model

Remarks

Context Window: 128,000 tokens

GPT4o

GPT-4o ("o" for "omni") is our most advanced model. It is multimodal (accepting text or image inputs and outputting text), and it has the same high intelligence as GPT-4 Turbo but is much more efficient. It generates text 2x faster and is 50% cheaper. Additionally, GPT-4o has the best vision and performance across non-English languages of our models.

public static Model GPT4o { get; }

Property Value

Model

Remarks

Context Window: 128,000 tokens

GPT4oAudio

public static Model GPT4oAudio { get; }

Property Value

Model

GPT4oMini

public static Model GPT4oMini { get; }

Property Value

Model

GPT4oRealtime

public static Model GPT4oRealtime { get; }

Property Value

Model

GPT4oRealtimeMini

public static Model GPT4oRealtimeMini { get; }

Property Value

Model

Id

[JsonInclude]
[JsonPropertyName("id")]
public string Id { get; }

Property Value

string

Moderation_Latest

[Obsolete("use OmniModerationLatest")]
public static Model Moderation_Latest { get; }

Property Value

Model

Moderation_Stable

[Obsolete("Removed")]
public static Model Moderation_Stable { get; }

Property Value

Model

O1

public static Model O1 { get; }

Property Value

Model

O1Mini

public static Model O1Mini { get; }

Property Value

Model

O3Mini

public static Model O3Mini { get; }

Property Value

Model

Object

[JsonInclude]
[JsonPropertyName("object")]
public string Object { get; }

Property Value

string

OmniModerationLatest

public static Model OmniModerationLatest { get; }

Property Value

Model

OwnedBy

[JsonInclude]
[JsonPropertyName("owned_by")]
public string OwnedBy { get; }

Property Value

string

Parent

[JsonInclude]
[JsonPropertyName("parent")]
public string Parent { get; }

Property Value

string

Permissions

[JsonInclude]
[JsonPropertyName("permission")]
public IReadOnlyList<Permission> Permissions { get; }

Property Value

IReadOnlyList<Permission>

Root

[JsonInclude]
[JsonPropertyName("root")]
public string Root { get; }

Property Value

string

TTS_1

The latest text to speech model, optimized for speed.

public static Model TTS_1 { get; }

Property Value

Model

Remarks

The default model for SpeechRequests.

TTS_1HD

The latest text to speech model, optimized for quality.

public static Model TTS_1HD { get; }

Property Value

Model

Whisper1

The default model for AudioEndpoint.

public static Model Whisper1 { get; }

Property Value

Model

Methods

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.

Operators

implicit operator string(Model)

Allows a model to be implicitly cast to the string of its id.

public static implicit operator string(Model model)

Parameters

model Model

The Model to cast to a string.

Returns

string

implicit operator Model(string)

Allows a string to be implicitly cast as a Model

public static implicit operator Model(string name)

Parameters

name string

Returns

Model