Written by Martin Ågren - October 22, 2026
Abbreviation = API stands for: Application Programming Interface
What API is = A way of connecting applications. A way for different software systems to exchange data.
Connect system to LLM = You might want to connect a system to an AI model, using API calls.
Connect LLM to tool = You might want to connect LLM to an application, using API. A newer method for this is MCP though.
API key = Use an API key (a string of characters) to connect.
Protect API key = Protect your API key against unwanted exploitation (someone else uses the key & you pay for the API calls).
Never embed API key = Never embed the API key in a way that others may see that string of characters.
Example 1, customer service chatbot:
You create a customer service AI chatbot for your website. Your pay for API calls to an LLM every time a customer chats with it.
Example 2, Claude Code:
You use the code editor Visual Studio Code (VS Code) or Cursor to write code.
You use Claude Code extension using your Claude subscription for the AI usage, so you don't need to pay for API calls.
But you hit your monthly limit, so you use API to pay for some extra API calls to keep using Claude AI model inside your IDE, until your monthly limit is renewed and you can continue using your Claude subscription for AI model use inside your IDE.