Prerequisites
Before creating an API key, make sure you:- Have a BabySea account (personal or team).
- Are signed in to the dashboard.
- Have an owner-level role on the account. Members can view the page, but cannot create or manage keys.
Step by step
Fill in the Name field
Enter the
Name value for the key. The current dashboard accepts up to 100 characters.| Example name | Use case |
|---|---|
prod-api-worker | Production backend generating images |
dev-frontend | Development environment |
staging-monitor | Staging health checks |
analytics-reader | Dashboard that reads usage data |
Choose Permissions
Select one of the built-in permission presets from the
See Scopes for the full endpoint mapping.
Permissions section:| Preset | Dashboard description |
|---|---|
Full Access | All permissions - read, write, delete |
Generate Only | Create & read generations + browse models |
Read Only | Read generations, account info, health - no spending |
Monitor Only | Health checks & model catalog - no account data |
Optional - add an IP allowlist
Use the Leave the field empty to allow requests from any IP. The current action accepts up to 50 entries.
IP allowlist (optional) field if you want the key to work only from specific IPs. Enter the list as comma-separated values:Using your key
With the SDK
TypeScript
With cURL
Terminal
With Python
Python
Verify the new key
Before sending generation traffic, verify the key withGET /v1/status:
Terminal
Store your key securely
- Environment variable
- Secrets manager
Add the key to your Then reference it in code:
.env file (make sure .env is in your .gitignore):.env
TypeScript
After creation
Your new key appears in the API keys table. From that table, owners can later:- Rotate the key to create a replacement key and keep the old key working for 24 hours.
- Revoke the key to disable it immediately.
- Delete the key to permanently remove it and all associated logs.