---
title: OpenAI Compatibility
---

Mem0 seamlessly offers an OpenAI-compatible API, making it easy to incorporate into existing projects.

## Mem0 Params for Chat Completion

- `user_id` (Optional[str]): Identifier for the user.

- `agent_id` (Optional[str]): Identifier for the agent.

- `run_id` (Optional[str]): Identifier for the run.

- `metadata` (Optional[dict]): Additional metadata to be stored with the memory.

- `filters` (Optional[dict]): Filters to apply when searching for relevant memories.

- `limit` (Optional[int]): Maximum number of relevant memories to retrieve. Default is 10.


Other parameters are similar to OpenAI's API, making it easy to integrate Mem0 into your existing applications.
