---
title: "Choose Models"
description: "Mem0 enhances AI assistants and agents by integrating with Large Language Models (LLMs) to provide intelligent memory capabilities. To function, Mem0 relies on an LLM to generate responses and proc..."
last_updated: "2026-05-07T04:49:20.026123+00:00"
canonical_url: "https://www.doc0.dev/docs/faa36707-7c28-4f69-a18f-700ff61c704e/guide/section-4/choose-models"
---

Mem0 enhances AI assistants and agents by integrating with Large Language Models (LLMs) to provide intelligent memory capabilities. To function, Mem0 relies on an LLM to generate responses and process information. This guide explains how to select and configure the LLM that Mem0 uses for its operations.

By default, Mem0 is configured to work with `gpt-4.1-nano-2025-04-14` from OpenAI. However, you have the flexibility to choose a different model to better suit your application's needs, performance requirements, or cost considerations.

### Large Language Models (LLMs)

A **Large Language Model (LLM)** is a type of artificial intelligence program trained on vast amounts of text data. LLMs can understand, generate, and respond to human-like text, making them essential for AI applications like chatbots, content creation, and intelligent assistants. Mem0 leverages these models to provide context-aware and personalized interactions.

### Choosing Your Model

Mem0 integrates with various LLMs. When using the OpenAI client, you can specify which model to use for generating responses.

<Steps>
<Step>
### Initialize the OpenAI Client
First, ensure you have the OpenAI client initialized in your application.
```python
from openai import OpenAI

openai_client = OpenAI()
```
</Step>
<Step>
### Specify Your Desired Model
When making a call to the OpenAI client to generate a chat completion, you can set the `model` parameter to your preferred OpenAI model. The default model is `gpt-4.1-nano-2025-04-14`.

For example, to use the default model:
```python
# ... (previous code)
response = openai_client.chat.completions.create(model="gpt-4.1-nano-2025-04-14", messages=messages)
```
To use a different OpenAI model, simply change the string value for the `model` parameter:
```python
# Example: Using a hypothetical 'gpt-3.5-turbo' model
response = openai_client.chat.completions.create(model="gpt-3.5-turbo", messages=messages)
```
</Step>
</Steps>

<Callout title="Important" variant="info">
The specific models available and their names are determined by the LLM provider (e.g., OpenAI). Always refer to your chosen provider's documentation for the most up-to-date list of available models and their identifiers.
</Callout>

<Callout title="Beyond OpenAI" variant="info">
Mem0 supports integration with a variety of Large Language Models beyond OpenAI. While the example above demonstrates model selection within the OpenAI client, the process for configuring other LLM providers will vary depending on the provider and their specific client libraries.
</Callout>

## Sitemap

See the full [sitemap](https://www.doc0.dev/docs/faa36707-7c28-4f69-a18f-700ff61c704e/llms.txt) for all pages in this wiki.
