> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mem0.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# LLM Providers Overview

> Overview of all supported LLM providers in Mem0, including OpenAI, Anthropic, Groq, Ollama, and more.

Mem0 includes built-in support for various popular large language models. Memory can utilize the LLM provided by the user, ensuring efficient use for specific needs.

## Usage

To use an LLM, you must provide a configuration to customize its usage. If no configuration is supplied, a default configuration will be applied, and `OpenAI` will be used as the LLM.

For a comprehensive list of available parameters for llm configuration, please refer to [Config](https://docs.mem0.ai/components/llms/config.md).

## Supported LLMs

See the list of supported LLMs below.

> [!NOTE]
>
> All LLMs are supported in Python. The following LLMs are also supported in TypeScript: **OpenAI**, **Anthropic**, **AWS Bedrock**, **Groq**, **Azure OpenAI**, **DeepSeek**, **Google AI**, **Langchain**, **LM Studio**, **Mistral AI**, and **Ollama**.

> [card] [OpenAI](https://docs.mem0.ai/components/llms/models/openai.md)

> [card] [Ollama](https://docs.mem0.ai/components/llms/models/ollama.md)

> [card] [Azure OpenAI](https://docs.mem0.ai/components/llms/models/azure-openai.md)

> [card] [Anthropic](https://docs.mem0.ai/components/llms/models/anthropic.md)

> [card] [Together](https://docs.mem0.ai/components/llms/models/together.md)

> [card] [Groq](https://docs.mem0.ai/components/llms/models/groq.md)

> [card] [Litellm](https://docs.mem0.ai/components/llms/models/litellm.md)

> [card] [Mistral AI](https://docs.mem0.ai/components/llms/models/mistral-ai.md)

> [card] [Google AI](https://docs.mem0.ai/components/llms/models/google-ai.md)

> [card] [AWS bedrock](https://docs.mem0.ai/components/llms/models/aws-bedrock.md)

> [card] [DeepSeek](https://docs.mem0.ai/components/llms/models/deepseek.md)

> [card] [MiniMax](https://docs.mem0.ai/components/llms/models/minimax.md)

> [card] [xAI](https://docs.mem0.ai/components/llms/models/xAI.md)

> [card] [Sarvam AI](https://docs.mem0.ai/components/llms/models/sarvam.md)

> [card] [LM Studio](https://docs.mem0.ai/components/llms/models/lmstudio.md)

> [card] [Langchain](https://docs.mem0.ai/components/llms/models/langchain.md)

## Structured vs Unstructured Outputs

Mem0 supports two types of OpenAI LLM formats, each with its own strengths and use cases:

### Structured Outputs

Structured outputs are LLMs that align with OpenAI's structured outputs model:

* **Optimized for:** Returning structured responses (e.g., JSON objects)
* **Benefits:** Precise, easily parseable data
* **Ideal for:** Data extraction, form filling, API responses
* **Learn more:** [OpenAI Structured Outputs Guide](https://platform.openai.com/docs/guides/structured-outputs/introduction)

### Unstructured Outputs

Unstructured outputs correspond to OpenAI's standard, free-form text model:

* **Flexibility:** Returns open-ended, natural language responses
* **Customization:** Use the `response_format` parameter to guide output
* **Trade-off:** Less efficient than structured outputs for specific data needs
* **Best for:** Creative writing, explanations, general conversation

Choose the format that best suits your application's requirements for optimal performance and usability.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.