API Keys
API keys are owned by the workspace that created them and carry permissions and access policy; webhooks are configured per workspace.
/v1/modelsBoth personal and team workspaces can create and use API keys. In a personal workspace the Owner manages keys; in a team workspace the Owner or Admin manages them. Create and manage keys in the developer platform console.
An API key permanently scopes usage, tasks, and uploaded assets to that workspace; keys are isolated between personal and team workspaces. API calls use the workspace's separate API wallet, which cannot be transferred to creator credits. See Workspaces and API Access.
API keys carry no webhook settings. Task notifications are configured per workspace: subscribe with workspace webhooks, or pass callback_url on a single request. Both are managed on /console/webhooks; see Webhooks. Creating or updating a key with webhook_url, webhook_secret, webhook_events, or webhook_enabled: true returns 400 api_key_webhook_removed.
Scopes
| Scope | Capabilities |
|---|---|
v1:read | Models, quotes, task lookup, balance, and usage reads |
v1:generate | Image/video task creation and reference-image upload; normally combine with v1:read for quoting and polling |
Missing permission returns 403 scope_forbidden.
Access policy
When you create or edit a key in the console you can give it an access policy. Leave a field empty for no limit:
| Setting | Effect | When exceeded |
|---|---|---|
| Allowed IPs | Only accept requests from these IPs or CIDR ranges | 403 ip_not_allowed |
| Allowed models | Only allow the listed model IDs (the id from GET /v1/models) | 403 model_not_allowed |
| Requests per minute (RPM) | Cap generation and text-model requests per minute; responses carry X-RateLimit-* headers | 429 group_rate_limited |
| Tokens per minute (TPM) | Cap text-model tokens per minute | 429 |
| Daily requests, daily credit limit | Cap requests and credit spend per day | 429 group_limit_exceeded, with Retry-After pointing at the next reset |
| Expiry | The key stops working after this date; set at creation only | 401 |
See Errors & Retry for how to handle each error.
Recommended console flow
- Sign in to the developer platform console and switch to the personal or team workspace you want to use
- Create an API key for one environment or one customer
- Assign only the scopes you need
- If you need push delivery, configure workspace webhooks or the callback_url signing secret on
/console/webhooks

