Skip to content
AiTM

Bring your own key (BYOK)

Use your own AI provider key: the traffic is billed to your provider, not metered against your plan.

1 min read

On this page›

With Bring Your Own Key (BYOK), you add an API key from an AI provider you already pay for. When a key is in use, your chats run through that provider and are billed to your provider, not metered against your AiTM plan.

Add your key#

  1. Open Settings → AI keys (or go to app.aitm.io/settings/byok).
  2. Select Add key, pick your provider, and paste your key.
  3. (Optional) Choose which model it should use by default.
  4. Select Save. We verify the key against your provider before saving it.

Your key is encrypted and only used to make requests on your behalf.

Use your key in chat#

Once a key is saved and verified, the assistant uses it automatically. The chat shows a small indicator that a BYOK key is active.

To stop using your key and return to your AiTM allowance, open Settings → AI keys and turn the key off, or delete it.

Rotate or replace your key#

  • To replace a key: delete the old one and add a new one.
  • To check a key is still working: open Settings → AI keys — invalid keys are flagged.

What your provider sees#

Your provider sees the same requests any API client would send — prompt, response and token usage. Billing and rate limits are theirs.

AiTM keeps the request and response the same way it does for your plan's usage, within the Privacy Policy.

Troubleshooting#

  • "Key not valid" — the key was rejected by the provider. Check it is active in your provider dashboard and paste it again exactly.
  • "Not entitled" — your plan doesn't include BYOK yet. Change your plan from Settings → Plan.
  • The chat uses my plan instead of my key — make sure the key is turned on in Settings → AI keys.

See also#

  • Chat basics Start a conversation and manage your chats.
  • API keys AiTM API keys for your own scripts and integrations (different from BYOK).