# OpenAI Fields

- Package: [Aspire.Hosting.GitHub.Models](/reference/api/csharp/aspire.hosting.github.models.md)
- Type: [OpenAI](/reference/api/csharp/aspire.hosting.github.models/openai.md)
- Kind: `Fields`
- Members: `17`

Models published by OpenAI.

## OpenAIGpt41

- Name: `OpenAIGpt41`
- Modifiers: `static` `readonly`
- Returns: [GitHubModel](/reference/api/csharp/aspire.hosting.github.models/githubmodel.md)
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Aspire.Hosting.GitHub.Models/GitHubModel.Generated.cs)

gpt-4.1 outperforms gpt-4o across the board, with major gains in coding, instruction following, and long-context understanding

```csharp
public static readonly GitHubModel OpenAIGpt41
```

## OpenAIGpt41Mini

- Name: `OpenAIGpt41Mini`
- Modifiers: `static` `readonly`
- Returns: [GitHubModel](/reference/api/csharp/aspire.hosting.github.models/githubmodel.md)
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Aspire.Hosting.GitHub.Models/GitHubModel.Generated.cs)

gpt-4.1-mini outperform gpt-4o-mini across the board, with major gains in coding, instruction following, and long-context handling

```csharp
public static readonly GitHubModel OpenAIGpt41Mini
```

## OpenAIGpt41Nano

- Name: `OpenAIGpt41Nano`
- Modifiers: `static` `readonly`
- Returns: [GitHubModel](/reference/api/csharp/aspire.hosting.github.models/githubmodel.md)
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Aspire.Hosting.GitHub.Models/GitHubModel.Generated.cs)

gpt-4.1-nano provides gains in coding, instruction following, and long-context handling along with lower latency and cost

```csharp
public static readonly GitHubModel OpenAIGpt41Nano
```

## OpenAIGpt4o

- Name: `OpenAIGpt4o`
- Modifiers: `static` `readonly`
- Returns: [GitHubModel](/reference/api/csharp/aspire.hosting.github.models/githubmodel.md)
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Aspire.Hosting.GitHub.Models/GitHubModel.Generated.cs)

OpenAI's most advanced multimodal model in the gpt-4o family. Can handle both text and image inputs.

```csharp
public static readonly GitHubModel OpenAIGpt4o
```

## OpenAIGpt4oMini

- Name: `OpenAIGpt4oMini`
- Modifiers: `static` `readonly`
- Returns: [GitHubModel](/reference/api/csharp/aspire.hosting.github.models/githubmodel.md)
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Aspire.Hosting.GitHub.Models/GitHubModel.Generated.cs)

An affordable, efficient AI solution for diverse text and image tasks.

```csharp
public static readonly GitHubModel OpenAIGpt4oMini
```

## OpenAIGpt5

- Name: `OpenAIGpt5`
- Modifiers: `static` `readonly`
- Returns: [GitHubModel](/reference/api/csharp/aspire.hosting.github.models/githubmodel.md)
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Aspire.Hosting.GitHub.Models/GitHubModel.Generated.cs)

gpt-5 is designed for logic-heavy and multi-step tasks.

```csharp
public static readonly GitHubModel OpenAIGpt5
```

## OpenAIGpt5ChatPreview

- Name: `OpenAIGpt5ChatPreview`
- Modifiers: `static` `readonly`
- Returns: [GitHubModel](/reference/api/csharp/aspire.hosting.github.models/githubmodel.md)
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Aspire.Hosting.GitHub.Models/GitHubModel.Generated.cs)

gpt-5-chat (preview) is an advanced, natural, multimodal, and context-aware conversations for enterprise applications.

```csharp
public static readonly GitHubModel OpenAIGpt5ChatPreview
```

## OpenAIGpt5Mini

- Name: `OpenAIGpt5Mini`
- Modifiers: `static` `readonly`
- Returns: [GitHubModel](/reference/api/csharp/aspire.hosting.github.models/githubmodel.md)
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Aspire.Hosting.GitHub.Models/GitHubModel.Generated.cs)

gpt-5-mini is a lightweight version for cost-sensitive applications.

```csharp
public static readonly GitHubModel OpenAIGpt5Mini
```

## OpenAIGpt5Nano

- Name: `OpenAIGpt5Nano`
- Modifiers: `static` `readonly`
- Returns: [GitHubModel](/reference/api/csharp/aspire.hosting.github.models/githubmodel.md)
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Aspire.Hosting.GitHub.Models/GitHubModel.Generated.cs)

gpt-5-nano is optimized for speed, ideal for applications requiring low latency.

```csharp
public static readonly GitHubModel OpenAIGpt5Nano
```

## OpenAIO1

- Name: `OpenAIO1`
- Modifiers: `static` `readonly`
- Returns: [GitHubModel](/reference/api/csharp/aspire.hosting.github.models/githubmodel.md)
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Aspire.Hosting.GitHub.Models/GitHubModel.Generated.cs)

Focused on advanced reasoning and solving complex problems, including math and science tasks. Ideal for applications that require deep contextual understanding and agentic workflows.

```csharp
public static readonly GitHubModel OpenAIO1
```

## OpenAIO1Mini

- Name: `OpenAIO1Mini`
- Modifiers: `static` `readonly`
- Returns: [GitHubModel](/reference/api/csharp/aspire.hosting.github.models/githubmodel.md)
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Aspire.Hosting.GitHub.Models/GitHubModel.Generated.cs)

Smaller, faster, and 80% cheaper than o1-preview, performs well at code generation and small context operations.

```csharp
public static readonly GitHubModel OpenAIO1Mini
```

## OpenAIO1Preview

- Name: `OpenAIO1Preview`
- Modifiers: `static` `readonly`
- Returns: [GitHubModel](/reference/api/csharp/aspire.hosting.github.models/githubmodel.md)
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Aspire.Hosting.GitHub.Models/GitHubModel.Generated.cs)

Focused on advanced reasoning and solving complex problems, including math and science tasks. Ideal for applications that require deep contextual understanding and agentic workflows.

```csharp
public static readonly GitHubModel OpenAIO1Preview
```

## OpenAIO3

- Name: `OpenAIO3`
- Modifiers: `static` `readonly`
- Returns: [GitHubModel](/reference/api/csharp/aspire.hosting.github.models/githubmodel.md)
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Aspire.Hosting.GitHub.Models/GitHubModel.Generated.cs)

o3 includes significant improvements on quality and safety while supporting the existing features of o1 and delivering comparable or better performance.

```csharp
public static readonly GitHubModel OpenAIO3
```

## OpenAIO3Mini

- Name: `OpenAIO3Mini`
- Modifiers: `static` `readonly`
- Returns: [GitHubModel](/reference/api/csharp/aspire.hosting.github.models/githubmodel.md)
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Aspire.Hosting.GitHub.Models/GitHubModel.Generated.cs)

o3-mini includes the o1 features with significant cost-efficiencies for scenarios requiring high performance.

```csharp
public static readonly GitHubModel OpenAIO3Mini
```

## OpenAIO4Mini

- Name: `OpenAIO4Mini`
- Modifiers: `static` `readonly`
- Returns: [GitHubModel](/reference/api/csharp/aspire.hosting.github.models/githubmodel.md)
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Aspire.Hosting.GitHub.Models/GitHubModel.Generated.cs)

o4-mini includes significant improvements on quality and safety while supporting the existing features of o3-mini and delivering comparable or better performance.

```csharp
public static readonly GitHubModel OpenAIO4Mini
```

## OpenAITextEmbedding3Large

- Name: `OpenAITextEmbedding3Large`
- Modifiers: `static` `readonly`
- Returns: [GitHubModel](/reference/api/csharp/aspire.hosting.github.models/githubmodel.md)
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Aspire.Hosting.GitHub.Models/GitHubModel.Generated.cs)

Text-embedding-3 series models are the latest and most capable embedding model from OpenAI.

```csharp
public static readonly GitHubModel OpenAITextEmbedding3Large
```

## OpenAITextEmbedding3Small

- Name: `OpenAITextEmbedding3Small`
- Modifiers: `static` `readonly`
- Returns: [GitHubModel](/reference/api/csharp/aspire.hosting.github.models/githubmodel.md)
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Aspire.Hosting.GitHub.Models/GitHubModel.Generated.cs)

Text-embedding-3 series models are the latest and most capable embedding model from OpenAI.

```csharp
public static readonly GitHubModel OpenAITextEmbedding3Small
```
