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:
- 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.