API Keys¶
Creating a key¶
- Log in at studiolm.dev
- Go to Dashboard → API Keys → Create New Key
- Give it a name and click Create
- Copy the key immediately — it is only shown once
Using a key¶
Include it in the Authorization header of every request:
Or set it as an environment variable and let the SDK pick it up:
Security best practices¶
- Never hardcode keys in source files or commit them to version control
- Use a separate key for each environment (dev / staging / production)
- Rotate keys periodically
- Revoke a key immediately if it is exposed
Revoking a key¶
Dashboard → API Keys → select key → Disable or Delete.
Disabled keys stop working immediately. Usage history is preserved.
Limits¶
| Plan | Max keys | Daily tokens |
|---|---|---|
| Free | 1 | 30,000 |
| Pro | 2 | 100,000 |