Get your supermemory API key

Head to supermemory’s Developer Platform built to help you monitor and manage every aspect of the API.

Create an account

An account will automatically be created on your first login.Dev Platform Login Pn

Create an API Key

1

Navigate to API Keys

Dev Platform Api Keys PnClick Create API Key
2

Choose Name and Expiry (Optional)

Dev Platform Create Key PnClick Create
3

Copy New Key

Dev Platform Copy Key PnClick to copy
Done! You can now use your API key to authenticate requests to the supermemory API. Next up, let’s add your first memory.

Get your LLM provider’s API key

Head to your LLM provider’s dashboard and get your API key.

Choose your endpoint

https://api.supermemory.ai/v3/https://api.openai.com/v1/chat/completions

Making your first request

curl https://api.supermemory.ai/v3/https://api.openai.com/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $OPENAI_API_KEY" \
  -H "x-supermemory--api-key: $SUPERMEMORY_API_KEY" \
  -H 'x-sm-user-id: user_id' \
  -d '{
    "model": "gpt-4o",
    "messages": [
      {"role": "user", "content": "What is the capital of France?"}
    ]
  }'