Bring Your Own Key (BYOK)
By default, AI analysis runs through MailPrism. Bring Your Own Key (BYOK) lets you connect your own provider account instead, so analysis is billed to you directly and runs against your own rate limits.
Supported providers
| Provider | Status |
|---|---|
| OpenAI | Available |
| Anthropic (Claude) | Available |
These are the only providers you can bring a key for today. Other providers are not yet available for BYOK.
BYOK is available on higher plans. If your plan doesn't include it, the OpenAI and Anthropic integrations show an Upgrade prompt. See Billing & Plans for what your plan includes.
What changes when you use BYOK
When a key is configured for a provider:
- AI operations for that provider run on your account and your rate limits.
- You're billed directly by OpenAI or Anthropic at their rates.
- MailPrism's platform AI credits are not consumed for those operations.
Your key is encrypted at rest and never logged or exposed.
Adding a key
- Go to Settings → Integrations.
- Choose OpenAI or Anthropic.
- Click to add a key, paste your API key, and save. MailPrism validates it for you.
Get your key from the provider:
- OpenAI — the OpenAI API keys page.
- Anthropic — the Anthropic Console.
Once saved, the integration shows the key's status (Valid, Pending, or Invalid), when it was added, when it was last tested, and how many requests it's handled.
Managing a key
From the provider's integration page you can:
- Test — re-validate the key against the provider.
- Replace — swap in a new key.
- Remove — delete the key. After removal, MailPrism falls back to platform credits for that provider's operations.
Treat your API key like a password. Never share it or paste it into client-side code. You can revoke and regenerate keys anytime from your provider's console.
Seeing what your key is doing
The Analytics page tracks AI operations, tokens, and cost, and shows what share of operations used your own keys versus the platform. See AI usage & cost for the details.
Related
- AI privacy & consent — AI is opt-in; turn it on first.
- AI usage & cost — track tokens, cost, and BYOK share.