Skip to content

Glossary

Bring your own key (BYOK) for AI

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

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" (opens in a new tab). 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 (opens in a new tab), 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 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 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.

Sources

  • AI agent (agentic AI)Software that uses an AI model to pursue a goal over several steps, choosing actions and using tools along the way, rather than answering a single prompt once.
  • Human in the loopAn AI system that a person takes part in while it runs: checking, correcting or approving its consequential steps rather than letting every action happen automatically.
  • Local-first softwareSoftware that treats the copy of your data on your own device as the primary one, so it works offline and syncs with other devices and people when it can.

The whole glossary, A to Z