Creating API Keys
Only workspace owners and admins can create API tokens. If you don’t see the option to create a token, contact your workspace owner to request access or an elevated role. To create an API key:- Navigate to krea.ai/settings/api-tokens
- Make sure you’re in the correct workspace (using the workspace toggle on the top left)
- Click “New Token”
- Give your token a descriptive name
- Save the token securely—you’ll only see it once!
The API operates as its own user identity within your workspace. Styles trained in the app won’t be accessible via the API, and styles trained via the API won’t appear in the app, unless they are shared with the workspace. See Train a Custom Style for details.
Using API Keys
Include your token in theAuthorization header of all requests:
Billing
API usage consumes your workspace’s compute units—the same pool used by the Krea web app.- View your usage in the Usage Statistics page
- For more details on compute units and purchasing, see the Compute Units Guide
Failed and cancelled jobs do not consume compute units. You’re only billed for completed jobs.
Compute Costs
Different models consume different amounts of compute units: Image Models:| Model | Compute Units | Estimated Time |
|---|---|---|
| Flux | ~5 | ~4 seconds |
| Seedream 4 | ~24 | ~20 seconds |
| ChatGPT Image | ~183 | ~60 seconds |
| Model | Compute Units | Estimated Time |
|---|---|---|
| Veo 3 | ~1017 | ~5 minutes |
| Wan 2.5 | ~569 | ~3 minutes |