# OpenAI

- Kind: `class`
- Package: [Aspire.Hosting.GitHub.Models](/reference/api/csharp/aspire.hosting.github.models.md)
- Version: `13.4.0`
- Namespace: `Aspire.Hosting.GitHub`
- Target framework: `net8.0`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Aspire.Hosting.GitHub.Models/GitHubModel.Generated.cs)

Models published by OpenAI.

## Definition

```csharp
namespace Aspire.Hosting.GitHub;

public static class OpenAI
{
    // ...
}
```

## Fields

- [OpenAIGpt41](/reference/api/csharp/aspire.hosting.github.models/openai/fields.md#openaigpt41) : [GitHubModel](/reference/api/csharp/aspire.hosting.github.models/githubmodel.md) `static` -- gpt-4.1 outperforms gpt-4o across the board, with major gains in coding, instruction following, and long-context understanding
- [OpenAIGpt41Mini](/reference/api/csharp/aspire.hosting.github.models/openai/fields.md#openaigpt41mini) : [GitHubModel](/reference/api/csharp/aspire.hosting.github.models/githubmodel.md) `static` -- gpt-4.1-mini outperform gpt-4o-mini across the board, with major gains in coding, instruction following, and long-context handling
- [OpenAIGpt41Nano](/reference/api/csharp/aspire.hosting.github.models/openai/fields.md#openaigpt41nano) : [GitHubModel](/reference/api/csharp/aspire.hosting.github.models/githubmodel.md) `static` -- gpt-4.1-nano provides gains in coding, instruction following, and long-context handling along with lower latency and cost
- [OpenAIGpt4o](/reference/api/csharp/aspire.hosting.github.models/openai/fields.md#openaigpt4o) : [GitHubModel](/reference/api/csharp/aspire.hosting.github.models/githubmodel.md) `static` -- OpenAI's most advanced multimodal model in the gpt-4o family. Can handle both text and image inputs.
- [OpenAIGpt4oMini](/reference/api/csharp/aspire.hosting.github.models/openai/fields.md#openaigpt4omini) : [GitHubModel](/reference/api/csharp/aspire.hosting.github.models/githubmodel.md) `static` -- An affordable, efficient AI solution for diverse text and image tasks.
- [OpenAIGpt5](/reference/api/csharp/aspire.hosting.github.models/openai/fields.md#openaigpt5) : [GitHubModel](/reference/api/csharp/aspire.hosting.github.models/githubmodel.md) `static` -- gpt-5 is designed for logic-heavy and multi-step tasks.
- [OpenAIGpt5ChatPreview](/reference/api/csharp/aspire.hosting.github.models/openai/fields.md#openaigpt5chatpreview) : [GitHubModel](/reference/api/csharp/aspire.hosting.github.models/githubmodel.md) `static` -- gpt-5-chat (preview) is an advanced, natural, multimodal, and context-aware conversations for enterprise applications.
- [OpenAIGpt5Mini](/reference/api/csharp/aspire.hosting.github.models/openai/fields.md#openaigpt5mini) : [GitHubModel](/reference/api/csharp/aspire.hosting.github.models/githubmodel.md) `static` -- gpt-5-mini is a lightweight version for cost-sensitive applications.
- [OpenAIGpt5Nano](/reference/api/csharp/aspire.hosting.github.models/openai/fields.md#openaigpt5nano) : [GitHubModel](/reference/api/csharp/aspire.hosting.github.models/githubmodel.md) `static` -- gpt-5-nano is optimized for speed, ideal for applications requiring low latency.
- [OpenAIO1](/reference/api/csharp/aspire.hosting.github.models/openai/fields.md#openaio1) : [GitHubModel](/reference/api/csharp/aspire.hosting.github.models/githubmodel.md) `static` -- Focused on advanced reasoning and solving complex problems, including math and science tasks. Ideal for applications that require deep contextual understanding and agentic workflows.
- [OpenAIO1Mini](/reference/api/csharp/aspire.hosting.github.models/openai/fields.md#openaio1mini) : [GitHubModel](/reference/api/csharp/aspire.hosting.github.models/githubmodel.md) `static` -- Smaller, faster, and 80% cheaper than o1-preview, performs well at code generation and small context operations.
- [OpenAIO1Preview](/reference/api/csharp/aspire.hosting.github.models/openai/fields.md#openaio1preview) : [GitHubModel](/reference/api/csharp/aspire.hosting.github.models/githubmodel.md) `static` -- Focused on advanced reasoning and solving complex problems, including math and science tasks. Ideal for applications that require deep contextual understanding and agentic workflows.
- [OpenAIO3](/reference/api/csharp/aspire.hosting.github.models/openai/fields.md#openaio3) : [GitHubModel](/reference/api/csharp/aspire.hosting.github.models/githubmodel.md) `static` -- o3 includes significant improvements on quality and safety while supporting the existing features of o1 and delivering comparable or better performance.
- [OpenAIO3Mini](/reference/api/csharp/aspire.hosting.github.models/openai/fields.md#openaio3mini) : [GitHubModel](/reference/api/csharp/aspire.hosting.github.models/githubmodel.md) `static` -- o3-mini includes the o1 features with significant cost-efficiencies for scenarios requiring high performance.
- [OpenAIO4Mini](/reference/api/csharp/aspire.hosting.github.models/openai/fields.md#openaio4mini) : [GitHubModel](/reference/api/csharp/aspire.hosting.github.models/githubmodel.md) `static` -- o4-mini includes significant improvements on quality and safety while supporting the existing features of o3-mini and delivering comparable or better performance.
- [OpenAITextEmbedding3Large](/reference/api/csharp/aspire.hosting.github.models/openai/fields.md#openaitextembedding3large) : [GitHubModel](/reference/api/csharp/aspire.hosting.github.models/githubmodel.md) `static` -- Text-embedding-3 series models are the latest and most capable embedding model from OpenAI.
- [OpenAITextEmbedding3Small](/reference/api/csharp/aspire.hosting.github.models/openai/fields.md#openaitextembedding3small) : [GitHubModel](/reference/api/csharp/aspire.hosting.github.models/githubmodel.md) `static` -- Text-embedding-3 series models are the latest and most capable embedding model from OpenAI.
