What are AI API keys?

An AI API key is a long secret value that lets a program use an AI service on your account. Whoever holds the key can spend your money.

Talk to an engineer Knowledge base
A robot arm working on a small component

When software uses an AI service through its API, the key tells the service whose account to charge. It works like a password for a program, with one difference: no phone prompt or second sign-in step protects it. Anyone who has the text of the key can use it from anywhere until it is cancelled.

How keys leak

Usually by accident. Someone pastes one into a chat or a support ticket, saves it in a shared document, or puts it in code stored in Git, where the history keeps it even after it is deleted. Criminals run automated searches for exposed keys, so a leaked one can be misused quickly.

The damage is mostly on the bill: the service charges for every request until the key is cancelled. On some services a key also reaches files stored on the account. And a key a former employee knew still works until someone replaces it.

Handling them safely

  • Store them in a password manager, never in chats, email or code.
  • One key per application, so a spike or a leak can be traced and that key cancelled alone.
  • Set spending limits where the provider allows them.
  • Replace keys when staff leave.

We work this way in our AI and automation projects and apply the same access rules in managed IT. See also agentic AI, where tools act with these keys.

Related services

AI and automation

Tools that call AI services, with keys handled safely.

Managed IT

Access control, onboarding and offboarding for your staff.

Endpoint security

Protection for the computers where keys are used.

Learn more

  • API key on WikipediaA neutral explanation of what API keys are and where they fall short as security.
  • OpenAI API documentationOne provider's instructions, for the person who will create and manage the keys.
  • Claude documentationAnother provider's developer reference, useful for comparing how keys and spending limits are managed.

Related guides

APIGitAgentic AIGitHubGitLabClaudeOpenAIOpenRouter

Not sure where your keys are?

We can help you find them, move them into a password manager and set spending limits.

Start a conversation