Create a token
- After signing in at openp.ai, go to Console → Tokens.
- Click Add new token in the top-right corner.
- Fill in the token configuration:
| Field | Required | Description |
|---|---|---|
| Name | Yes | For your own reference only, e.g. my-app-prod, local-dev. |
| Quota | No | The maximum amount this token may spend. -1 means unlimited. |
| Expiry | No | Leave empty for no expiry. Set a short window for temporary test tokens. |
| Model scope | No | A list of model IDs this token may call. Empty means all models on the account. |
| IP allowlist | No | Only allow requests from the specified IPs (comma-separated). |
| Group | No | The group channel this token uses (affects multiplier and upstream). |
- Click Submit. The system generates a key like:
Store the key safely
Recommended practices:- Local development: write it to a
.envfile and add that to.gitignore. - Production: use a secrets manager like Vault, AWS Secrets Manager or Doppler.
- CI/CD: inject it as a GitHub Actions / GitLab secret.
- Never commit it to a Git repo or paste it into chats / issues.
.env
Manage existing tokens
In the token list you can, for each token:- Copy: copy the full key again (only available briefly after creation).
- Edit: change the name, quota, expiry and model scope.
- Disable / enable: temporarily suspend it without deleting.
- Delete: permanently void it — requests using the key immediately return
401.
Verify the key works
401, check that the key was copied in full, isn’t disabled, and hasn’t expired.
Next steps
Top up
Add credit to call all paid models.
Send your first request
Make a Chat Completion with the key you just created.