Skip to main content

What is an API Key?

An API Key is your authentication credential for accessing Model Router — the same sk-… key that authenticates all of MemoryLake’s programmatic surfaces. Which models a key can call is determined by your account’s model-access group and any per-key model restrictions.

How to Create an API Key

Step 1: Navigate to API Keys

  1. Log in to the MemoryLake Console
  2. Click API Keys in the sidebar (or go directly to the API Keys page)

Step 2: Create a New API Key

  1. Click the create button
  2. Configure the key:
    • Name: for your own reference (e.g., “My Project API Key”), changeable later
    • Expiry: Never / 7 days / 30 days (default) / 90 days / 1 year / custom date
    • Advanced → Group: the model-access group, shown when your account has more than one
The API Keys page always displays your API base address with a copy button — use it as the base URL in your clients.
Create API Key in MemoryLake Console

Step 3: Save Your API Key

After creation, the key starting with sk- is revealed once. Copy and store it immediately.
Save your API key in a secure place (password manager or environment variable). Never share it publicly or commit it to version control. If a key is compromised, use Rotate in the key’s detail panel to replace the secret, or disable/delete the key.

Optional Hardening

From the key’s detail panel you can also set:
  • Model restrictions — limit which models this key may call
  • IP allowlist — restrict usage to known addresses
  • Heartbeat — require periodic liveness signals for long-running automation

What’s Next?