Skip to content

Authentication

Every request must include your API key in the Authorization header.

Authorization: Bearer sk-your-api-key

Getting a key

Log in at studiolm.devDashboardAPI KeysCreate 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:

export STUDIOLM_API_KEY="sk-..."
import studiolm
client = studiolm.Client()  # picks up the env var 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.