# Aspire.Hosting.OpenAI

- Module: `Aspire.Hosting.OpenAI`
- Version: `13.4.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 child to the provided OpenAI resource.
- [addOpenAI](/reference/api/typescript/aspire.hosting.openai/addopenai.md) -- `method` -- Adds an OpenAI parent resource that can host multiple models.
- [withApiKey](/reference/api/typescript/aspire.hosting.openai/withapikey.md) -- `method` -- Configures the API key for the OpenAI parent resource from a parameter.
- [withEndpoint](/reference/api/typescript/aspire.hosting.openai/withendpoint.md) -- `method` -- Sets a custom OpenAI-compatible service endpoint URI on the parent resource.
- [withHealthCheck](/reference/api/typescript/aspire.hosting.openai/withhealthcheck.md) -- `method` -- Adds a health check to the OpenAI Model resource.
