Persistent memory for any AI model. One API that adds long-term memory to ChatGPT, Claude, Gemini, Grok, and 90+ other models.
🌐 Homepage · 📚 Documentation · 🎮 Dashboard
Sign up at memoryrouter.ai and grab your memory key from the dashboard.
curl https://api.memoryrouter.ai/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_MEMORY_KEY" \
-d '{
"model": "openai/gpt-4o",
"messages": [{"role": "user", "content": "Remember that my favorite color is blue."}]
}'curl https://api.memoryrouter.ai/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_MEMORY_KEY" \
-d '{
"model": "openai/gpt-4o",
"messages": [{"role": "user", "content": "What is my favorite color?"}]
}'The AI now remembers your favorite color is blue — across sessions, devices, and even different models.
- Drop-in replacement — Works with your existing code, just change the base URL
- Works with any model — OpenAI, Anthropic, Google, xAI (90+ models)
- Automatic memory — No manual embedding or retrieval code
- Cross-model memory — Start with GPT, continue with Claude
- Bring your own keys — Use your existing API keys, we just add memory
| Provider | Prefix | Example Models |
|---|---|---|
| OpenAI | openai/ |
gpt-4o, gpt-4-turbo, o1, o3 |
| Anthropic | anthropic/ |
claude-sonnet-4, claude-opus-4 |
google/ |
gemini-2.0-flash, gemini-2.5-pro | |
| xAI | x-ai/ |
grok-2, grok-3 |
See the full model list in our docs.
- AI Assistants — Build assistants that remember user preferences
- Customer Support — Bots that know customer history
- Personal AI — Apps that learn and adapt over time
- Multi-session Apps — Maintain context across conversations
- 🌐 Website: memoryrouter.ai
- 📚 Docs: docs.memoryrouter.ai
- 🎮 Dashboard: memoryrouter.ai/dashboard
- 📧 Support: john@memoryrouter.ai
MIT