Class Model
Represents a language model.
https://platform.openai.com/docs/models/model-endpoint-compatability
public sealed class Model
- Inheritance
-
Model
- Inherited Members
Constructors
Model(string, string)
Constructor.
public Model(string id, string ownedBy = null)
Parameters
Properties
Babbage
Replacement for the GPT-3 ada and babbage base models.
public static Model Babbage { get; }
Property Value
CreatedAt
[JsonIgnore]
public DateTime CreatedAt { get; }
Property Value
CreatedAtUnixTimeSeconds
[JsonInclude]
[JsonPropertyName("created")]
public int CreatedAtUnixTimeSeconds { get; }
Property Value
DallE_2
The default model for ImagesEndpoint.
public static Model DallE_2 { get; }
Property Value
DallE_3
public static Model DallE_3 { get; }
Property Value
Davinci
Replacement for the GPT-3 curie and davinci base models.
public static Model Davinci { get; }
Property Value
Embedding_3_Large
Most capable embedding model for both english and non-english tasks.
public static Model Embedding_3_Large { get; }
Property Value
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
Remarks
Output Dimension: 1,536
Embedding_Ada_002
The default model for EmbeddingsEndpoint.
public static Model Embedding_Ada_002 { get; }
Property Value
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
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
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
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
GPT4_5
public static Model GPT4_5 { get; }
Property Value
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
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
Remarks
Context Window: 128,000 tokens
GPT4oAudio
public static Model GPT4oAudio { get; }
Property Value
GPT4oMini
public static Model GPT4oMini { get; }
Property Value
GPT4oRealtime
public static Model GPT4oRealtime { get; }
Property Value
GPT4oRealtimeMini
public static Model GPT4oRealtimeMini { get; }
Property Value
Id
[JsonInclude]
[JsonPropertyName("id")]
public string Id { get; }
Property Value
Moderation_Latest
[Obsolete("use OmniModerationLatest")]
public static Model Moderation_Latest { get; }
Property Value
Moderation_Stable
[Obsolete("Removed")]
public static Model Moderation_Stable { get; }
Property Value
O1
public static Model O1 { get; }
Property Value
O1Mini
public static Model O1Mini { get; }
Property Value
O3Mini
public static Model O3Mini { get; }
Property Value
Object
[JsonInclude]
[JsonPropertyName("object")]
public string Object { get; }
Property Value
OmniModerationLatest
public static Model OmniModerationLatest { get; }
Property Value
OwnedBy
[JsonInclude]
[JsonPropertyName("owned_by")]
public string OwnedBy { get; }
Property Value
Parent
[JsonInclude]
[JsonPropertyName("parent")]
public string Parent { get; }
Property Value
Permissions
[JsonInclude]
[JsonPropertyName("permission")]
public IReadOnlyList<Permission> Permissions { get; }
Property Value
Root
[JsonInclude]
[JsonPropertyName("root")]
public string Root { get; }
Property Value
TTS_1
The latest text to speech model, optimized for speed.
public static Model TTS_1 { get; }
Property Value
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
Whisper1
The default model for AudioEndpoint.
public static Model Whisper1 { get; }
Property Value
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
Returns
implicit operator Model(string)
Allows a string to be implicitly cast as a Model
public static implicit operator Model(string name)
Parameters
name
string