# Aspire.Hosting.OpenAI

- Module: `Aspire.Hosting.OpenAI`
- Version: `13.2.0`
- Source: [GitHub](https://github.com/microsoft/aspire)
- Functions: `5`
- Types: `2`

## Types

- [OpenAIModelResource](/reference/api/typescript/aspire.hosting.openai/openaimodelresource.md) -- `handle` - 1 members
- [OpenAIResource](/reference/api/typescript/aspire.hosting.openai/openairesource.md) -- `handle` - 3 members

## Functions

- [addModel](/reference/api/typescript/aspire.hosting.openai/addmodel.md) -- `method` -- Adds an OpenAI model resource.
- [addOpenAI](/reference/api/typescript/aspire.hosting.openai/addopenai.md) -- `method` -- Adds an OpenAI resource to the distributed application model.
- [withApiKey](/reference/api/typescript/aspire.hosting.openai/withapikey.md) -- `method` -- Configures the API key for the OpenAI resource.
- [withEndpoint](/reference/api/typescript/aspire.hosting.openai/withendpoint.md) -- `method` -- Configures the endpoint URI for the OpenAI resource.
- [withHealthCheck](/reference/api/typescript/aspire.hosting.openai/withhealthcheck.md) -- `method` -- Adds a health check for the OpenAI model resource.
