Authentication¶
Every request must include your API key in the Authorization header.
Getting a key¶
Log in at studiolm.dev → Dashboard → API Keys → Create New Key.
Warning
Your key is shown only once. Copy it immediately and store it somewhere safe.
Setting it as an environment variable¶
The SDK and most examples read STUDIOLM_API_KEY automatically:
Key security¶
- Never hardcode keys in source code or commit them to version control
- Use one key per environment (dev, staging, production)
- Revoke compromised keys immediately from the dashboard
Revoking a key¶
Dashboard → API Keys → click the key → Disable or Delete.