> ## Documentation Index
> Fetch the complete documentation index at: https://mem0-feature-memo-claude-plugin-v1.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# 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](./config).

## 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**.
</Note>

<CardGroup cols={4}>
  <Card title="OpenAI" icon="https://mintcdn.com/mem0-feature-memo-claude-plugin-v1/PTNJfqxNP8o3zR8B/images/provider-icons/openai.svg?fit=max&auto=format&n=PTNJfqxNP8o3zR8B&q=85&s=ef341d0172f0566f16643d059f4e411d" href="/components/llms/models/openai" width="16" height="16" data-path="images/provider-icons/openai.svg" />

  <Card title="Ollama" icon="https://mintcdn.com/mem0-feature-memo-claude-plugin-v1/PTNJfqxNP8o3zR8B/images/provider-icons/ollama.svg?fit=max&auto=format&n=PTNJfqxNP8o3zR8B&q=85&s=cb9c472e65b2e9b7837fcda135081ec2" href="/components/llms/models/ollama" width="16" height="16" data-path="images/provider-icons/ollama.svg" />

  <Card title="Azure OpenAI" icon="https://mintcdn.com/mem0-feature-memo-claude-plugin-v1/PTNJfqxNP8o3zR8B/images/provider-icons/azure-color.svg?fit=max&auto=format&n=PTNJfqxNP8o3zR8B&q=85&s=81c8174390496069b8a147af88ab4b11" href="/components/llms/models/azure_openai" width="16" height="16" data-path="images/provider-icons/azure-color.svg" />

  <Card title="Anthropic" icon="https://mintcdn.com/mem0-feature-memo-claude-plugin-v1/PTNJfqxNP8o3zR8B/images/provider-icons/anthropic.svg?fit=max&auto=format&n=PTNJfqxNP8o3zR8B&q=85&s=60bb6693523f86b6bca0bb4ac95bfe81" href="/components/llms/models/anthropic" width="16" height="16" data-path="images/provider-icons/anthropic.svg" />

  <Card title="Together" icon="https://mintcdn.com/mem0-feature-memo-claude-plugin-v1/PTNJfqxNP8o3zR8B/images/provider-icons/together-color.svg?fit=max&auto=format&n=PTNJfqxNP8o3zR8B&q=85&s=4fa7d2fdadfe4b07b0c8176f8f25b6ae" href="/components/llms/models/together" width="16" height="16" data-path="images/provider-icons/together-color.svg" />

  <Card title="Groq" icon="https://mintcdn.com/mem0-feature-memo-claude-plugin-v1/PTNJfqxNP8o3zR8B/images/provider-icons/groq.svg?fit=max&auto=format&n=PTNJfqxNP8o3zR8B&q=85&s=f2387945ec646b7e802ec6a6c7348415" href="/components/llms/models/groq" width="16" height="16" data-path="images/provider-icons/groq.svg" />

  <Card title="Litellm" icon="shuffle" href="/components/llms/models/litellm" />

  <Card title="Mistral AI" icon="https://mintcdn.com/mem0-feature-memo-claude-plugin-v1/PTNJfqxNP8o3zR8B/images/provider-icons/mistral-color.svg?fit=max&auto=format&n=PTNJfqxNP8o3zR8B&q=85&s=ef243898b62eb18e689bd15418b4edc2" href="/components/llms/models/mistral_AI" width="16" height="16" data-path="images/provider-icons/mistral-color.svg" />

  <Card title="Google AI" icon="https://mintcdn.com/mem0-feature-memo-claude-plugin-v1/PTNJfqxNP8o3zR8B/images/provider-icons/google-color.svg?fit=max&auto=format&n=PTNJfqxNP8o3zR8B&q=85&s=060aa20c5abe2082ecdb7b4a78b657ec" href="/components/llms/models/google_AI" width="16" height="16" data-path="images/provider-icons/google-color.svg" />

  <Card title="AWS bedrock" icon="https://mintcdn.com/mem0-feature-memo-claude-plugin-v1/PTNJfqxNP8o3zR8B/images/provider-icons/bedrock-color.svg?fit=max&auto=format&n=PTNJfqxNP8o3zR8B&q=85&s=ef6d3e684ee700f64c8bde012e39f49a" href="/components/llms/models/aws_bedrock" width="16" height="16" data-path="images/provider-icons/bedrock-color.svg" />

  <Card title="DeepSeek" icon="https://mintcdn.com/mem0-feature-memo-claude-plugin-v1/PTNJfqxNP8o3zR8B/images/provider-icons/deepseek-color.svg?fit=max&auto=format&n=PTNJfqxNP8o3zR8B&q=85&s=d0c9ee5687c0ab58029552f7b54c0e21" href="/components/llms/models/deepseek" width="16" height="16" data-path="images/provider-icons/deepseek-color.svg" />

  <Card title="MiniMax" icon="https://mintcdn.com/mem0-feature-memo-claude-plugin-v1/PTNJfqxNP8o3zR8B/images/provider-icons/minimax-color.svg?fit=max&auto=format&n=PTNJfqxNP8o3zR8B&q=85&s=e4f74b4aada62bfacc49c88ce955d076" href="/components/llms/models/minimax" width="16" height="16" data-path="images/provider-icons/minimax-color.svg" />

  <Card title="xAI" icon="https://mintcdn.com/mem0-feature-memo-claude-plugin-v1/PTNJfqxNP8o3zR8B/images/provider-icons/xai.svg?fit=max&auto=format&n=PTNJfqxNP8o3zR8B&q=85&s=ae0ccfefa2abbb2c36e9c943c9b8d08f" href="/components/llms/models/xAI" width="16" height="16" data-path="images/provider-icons/xai.svg" />

  <Card title="Sarvam AI" icon="https://mintcdn.com/mem0-feature-memo-claude-plugin-v1/PTNJfqxNP8o3zR8B/images/provider-icons/sarvam.svg?fit=max&auto=format&n=PTNJfqxNP8o3zR8B&q=85&s=5121d4a5c6fa8ad03f3beabc7c8eff8a" href="/components/llms/models/sarvam" width="344" height="341" data-path="images/provider-icons/sarvam.svg" />

  <Card title="LM Studio" icon="https://mintcdn.com/mem0-feature-memo-claude-plugin-v1/PTNJfqxNP8o3zR8B/images/provider-icons/lmstudio.svg?fit=max&auto=format&n=PTNJfqxNP8o3zR8B&q=85&s=8b8757b1ab3d7abab5bd2fbfa26c7fd9" href="/components/llms/models/lmstudio" width="16" height="16" data-path="images/provider-icons/lmstudio.svg" />

  <Card title="Langchain" icon="https://mintcdn.com/mem0-feature-memo-claude-plugin-v1/PTNJfqxNP8o3zR8B/images/provider-icons/langchain-color.svg?fit=max&auto=format&n=PTNJfqxNP8o3zR8B&q=85&s=da5c30010bd83e10aa084ad95d50f66c" href="/components/llms/models/langchain" width="16" height="16" data-path="images/provider-icons/langchain-color.svg" />
</CardGroup>

## 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.
