# API Key

- **Canonical URL:** https://getaimath.com/dictionary/api-key/
- **Topics:** [AI APIs, Protocols & Integration](https://getaimath.com/dictionary/category/ai-apis-protocols-and-integration/)
- **Last updated:** 2026-11-25

## What is API Key?

**In one sentence:** An API key is a secret code that identifies you to an API and gives you permission to use it.

You include it with each request so the service knows who is asking and who to bill. Anyone with your key can use your account, so it must be kept private.

![APIs, JSON & MCP: The Drive-Thru Window & Universal Plug — Simple cartoon showing an App handing a neat checklist order slip (JSON) through a drive-thru window (API) to the AI, while a universal USB-C plug (MCP) connects the AI to Google Drive, Slack, and Email.](https://getaimath.com/diagrams/ai-apis-protocols-and-integration.png)
*Napkin Diagram (AI APIs, Protocols & Integration): An API is the drive-thru window apps use to talk to AI; JSON keeps replies neat; MCP is the universal plug for tools.*

## What is an example of API Key?

A developer stores their AI API key in a secure setting instead of writing it in public code.

## Why does API Key matter?

Leaked API keys can lead to big bills and security problems.

## Related Concepts

- [API Endpoint](https://getaimath.com/dictionary/api-endpoint/): An API endpoint is a specific web address where an API accepts requests for a particular function.
- [SDK](https://getaimath.com/dictionary/sdk/): An SDK, or Software Development Kit, is a ready-made set of code libraries and tools that make it easier to use a platform or API.
- [REST API](https://getaimath.com/dictionary/rest-api/): A REST API is a common style of web API where programs send requests to web addresses using standard actions like GET and POST.
- [JSON](https://getaimath.com/dictionary/json/): JSON is a simple text format for storing and sending structured data, using keys and values.
- [API](https://getaimath.com/dictionary/api/): An API, or Application Programming Interface, is a set of rules that lets one program talk to another.
- [Structured Output](https://getaimath.com/dictionary/structured-output/): Structured output means getting an AI's answer in a fixed, machine-readable format, like JSON that follows a schema.

---
Source: The AI Math Dictionary (https://getaimath.com/dictionary/api-key/)
