Skip to main content
OpenAI’s client is widely used by developers who consume AI inference in their applications. Muna’s OpenAI client allows developers to switch to open-source AI models in one line of code.
Unlike the official OpenAI client, Muna allows you to specify where the inference runs per-request: H100s, B200s, or on the local device.
You can easily compile your own custom models to be compatible with Muna’s OpenAI client. See the guide.

Creating Chat Completions

Muna supports running large language models via our client’s openai.chat.completions.create API:

Streaming Completions

Our OpenAI client also supports creating streaming completions:

Creating Embeddings

Muna supports running text embedding models via our client’s openai.embeddings.create API:

Creating Speech

Muna supports running text-to-speech models via our client’s openai.audio.speech.create API:

Creating Transcriptions

Muna supports using speech-to-text models via our client’s openai.audio.transcriptions.create API: