Skip to main content
API keys authenticate your inference requests. Each key is scoped to an organization.

Creating an API Key

1

Open the dashboard

Navigate to console.getlilac.com and select your organization.
2

Go to API Keys

Click API Keys in the sidebar.
3

Create a key

Click Create API Key, give it a name, and copy the key immediately.
API keys are only shown once at creation. Store it securely — you cannot retrieve it later.

Using Your API Key

Include your API key in the Authorization header:
Or pass it directly to the OpenAI SDK:

Revoking a Key

To revoke a key, go to API Keys in the dashboard and click Delete next to the key you want to remove. Revoked keys stop working immediately.

Best Practices

  • Create separate keys for different environments (development, staging, production).
  • Rotate keys periodically.
  • Never commit keys to version control — use environment variables instead.
  • Revoke keys immediately if they may have been exposed.