# Bring your own key (BYOK) for AI

> Adding your own API key from an AI provider to an app, so the app's AI requests run on your provider account and are billed to you by that provider.

Source: https://plexiidesk.com/glossary/bring-your-own-key

In AI apps, "bring your own key" means you paste in an API key from an AI provider, and the app uses it to send your requests to that provider. The requests are made on your account, so the usage appears on your provider bill rather than being bundled into the app's own price.

The same initials have a separate meaning in cloud computing, where BYOK is ["an encryption key management approach where customers of a cloud service provider (CSP) generate and manage their own encryption keys"](https://www.ibm.com/think/topics/byok). This page is about the AI meaning.

## What an API key is

An API key is a long code that identifies your account with a service when software, rather than a person, talks to it. When you create one in your AI provider's account, you are giving permission for any software that holds it to make requests on your behalf.

## How billing works

API use is charged by usage rather than as a flat fee. Anthropic's [pricing page](https://platform.claude.com/docs/en/about-claude/pricing), for example, lists separate prices for input and output per million tokens, the units of text a model reads and writes (checked 15 October 2026). Prices differ by model and change over time, so check your provider's current pricing page rather than relying on a figure from elsewhere.

## When BYOK suits

- **You want to choose the provider.** BYOK lets you use the account and the provider you already trust.
- **You want to see spend directly.** Usage is recorded on your own provider account.
- **You already have a provider account** for other work, and want everything on one bill.

It suits less well if you would rather not manage a separate account and bill, in which case an app's built-in AI allowance, where one exists, is simpler.

### A fictional example

A consultant already pays for an AI provider account for other work. She adds that key to a desktop app, tests it, and the app's AI features now run on that account. At the end of the month, the usage appears on her provider's statement alongside her other use.

## How PlexiiDesk relates

PlexiiDesk lets you [add, test, replace or remove your own Anthropic and OpenAI keys](https://plexiidesk.com/help/api-keys) on the **AI** tab of Settings. Some features use your own key even when you are signed in and everything else runs on PlexiiDesk credits: [building or changing a Custom work widget, a Mind map's AI Expand, and a Voice note's Summary, Cleaned and Speakers views](https://plexiidesk.com/help/widget-requirements) use your Anthropic key, and the Image work widget and **Cloud** transcription use an OpenAI key.

Each key is encrypted with your operating system's secure storage, such as the macOS Keychain, and kept only on your computer. Requests made with your own key go straight from your computer to the provider; on PlexiiDesk credits they go through PlexiiDesk's server so usage can be metered. The AI source setting lets you choose **Automatic** (credits first, then your key), **PlexiiDesk credits** or **Your own key**.

For a full guide, see [Bring your own AI key: what it means and when it makes sense](https://plexiidesk.com/blog/bring-your-own-ai-key).

## Sources

- [IBM: What is bring your own key (BYOK)?](https://www.ibm.com/think/topics/byok) (the cloud encryption meaning)
- [Anthropic: Pricing](https://platform.claude.com/docs/en/about-claude/pricing) (checked 15 October 2026)
