> ## Documentation Index
> Fetch the complete documentation index at: https://mem0-feature-hermes-standalone-migration.mintlify.site/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](./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-hermes-standalone-migration/KlqdVHJghJddWMyM/images/provider-icons/openai.svg?fit=max&auto=format&n=KlqdVHJghJddWMyM&q=85&s=186ad5bb1927d5d87b0e07176eaef2ce" 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-hermes-standalone-migration/KlqdVHJghJddWMyM/images/provider-icons/ollama.svg?fit=max&auto=format&n=KlqdVHJghJddWMyM&q=85&s=bd48c7984102db36925262a135c6dda6" 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-hermes-standalone-migration/KlqdVHJghJddWMyM/images/provider-icons/azure-color.svg?fit=max&auto=format&n=KlqdVHJghJddWMyM&q=85&s=b45089fe40e935c70aec91d905319810" 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-hermes-standalone-migration/KlqdVHJghJddWMyM/images/provider-icons/anthropic.svg?fit=max&auto=format&n=KlqdVHJghJddWMyM&q=85&s=776cd7a62edbd5a02df3e59fa01757f4" 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-hermes-standalone-migration/KlqdVHJghJddWMyM/images/provider-icons/together-color.svg?fit=max&auto=format&n=KlqdVHJghJddWMyM&q=85&s=9112b757a855d2ed414847f7162b203e" 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-hermes-standalone-migration/KlqdVHJghJddWMyM/images/provider-icons/groq.svg?fit=max&auto=format&n=KlqdVHJghJddWMyM&q=85&s=f729e81c85121e75bbc446ccd9650282" 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-hermes-standalone-migration/KlqdVHJghJddWMyM/images/provider-icons/mistral-color.svg?fit=max&auto=format&n=KlqdVHJghJddWMyM&q=85&s=fcc7f4b1691a0344f2ab4cf1d6546d8e" 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-hermes-standalone-migration/KlqdVHJghJddWMyM/images/provider-icons/google-color.svg?fit=max&auto=format&n=KlqdVHJghJddWMyM&q=85&s=964e6344ff5a3a4310f2d3269849860c" 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-hermes-standalone-migration/KlqdVHJghJddWMyM/images/provider-icons/bedrock-color.svg?fit=max&auto=format&n=KlqdVHJghJddWMyM&q=85&s=b22a27e29c1128de2bbeaf8e13415f5b" 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-hermes-standalone-migration/KlqdVHJghJddWMyM/images/provider-icons/deepseek-color.svg?fit=max&auto=format&n=KlqdVHJghJddWMyM&q=85&s=a331bc696ddb816bd23655f27343256a" 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-hermes-standalone-migration/KlqdVHJghJddWMyM/images/provider-icons/minimax-color.svg?fit=max&auto=format&n=KlqdVHJghJddWMyM&q=85&s=a3154654112e57c290a5ab4d05ff04fc" 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-hermes-standalone-migration/KlqdVHJghJddWMyM/images/provider-icons/xai.svg?fit=max&auto=format&n=KlqdVHJghJddWMyM&q=85&s=8453a79207988728641eac4df8c93b58" 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-hermes-standalone-migration/KlqdVHJghJddWMyM/images/provider-icons/sarvam.svg?fit=max&auto=format&n=KlqdVHJghJddWMyM&q=85&s=1df61142702d0c7ed351d06eacbc8031" 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-hermes-standalone-migration/KlqdVHJghJddWMyM/images/provider-icons/lmstudio.svg?fit=max&auto=format&n=KlqdVHJghJddWMyM&q=85&s=940196ce61c0f3b7c1b64ebec88f5168" 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-hermes-standalone-migration/KlqdVHJghJddWMyM/images/provider-icons/langchain-color.svg?fit=max&auto=format&n=KlqdVHJghJddWMyM&q=85&s=71541a324448f663292528aac251c1ca" 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.
