AI Glossary / AI and machine learning / Beginner
Application programming interface
Definition
An application programming interface, or API, is a defined way for one piece of software to ask another to do something or share data, without needing to know how the other works inside.
What it means
An API is a contract between programs. One side says what requests it will accept and what it will send back; the other side makes requests in that format. Neither needs to see the other's internals.
You meet APIs all the time without noticing. A weather widget asks a weather service for tomorrow's forecast. A checkout page asks a payment provider to take a card. An app asks an AI provider to answer a question.
For AI work, APIs are how most businesses use models. Instead of running a large model themselves, they send text to the provider's API and receive an answer, paying per use.
Every API has rules: how to identify yourself (usually with a key), which requests exist, what limits apply, and what it costs. Those rules are the interface, and they can change, so they need watching.
For a non-technical owner, the practical point is that an API is what lets tools talk to each other and automations connect them, and it is also a door that needs a lock.
How it works
A program sends a request to an address, with details of what it wants, such as ask for the forecast for this city, or send this prompt to the model. The request carries a key that identifies the account.
The service checks the key and permissions, runs the request on its own systems, and sends back a response in an agreed format, often a structured block of text that the calling program can read directly.
Responses include status codes, so the caller knows whether things worked, whether it has hit a rate limit, or whether it asked for something that does not exist. Good programs handle those cases rather than assuming success.
Providers publish documentation describing every request, limit and price. Changes are usually versioned, so that old programs keep working while new features arrive.
Three practical examples
- A booking website pulls available times from a calendar service through its API.
- A support tool sends customer messages to an AI model's API and shows the drafted reply to staff.
- An accounting system sends invoices to a payment provider's API and receives paid or failed notices back.
Think of it this way
Think of a restaurant. You, the customer, do not walk into the kitchen. You read a menu, give an order to the waiter, and food comes back. The menu is the list of what you can ask for; the waiter is the API carrying requests and responses.
The limit: the kitchen can refuse, run out of something or take longer, and a program must plan for those answers instead of assuming every order arrives.
Worked example
connecting a shop to an AI drafting service
Suppose a small shop wants draft replies to customer emails. The helpdesk tool can send a message to an AI provider's API and receive text back.
The shop owner creates an account, obtains a key, and stores it in the helpdesk settings. The tool now sends each customer message plus instructions, and receives a draft reply.
Costs and limits come with the API: each call costs a small amount, and too many calls a minute are refused. The owner sets a monthly spending cap, and has staff approve every draft before sending. The set-up is illustrative; check your own provider's terms.
If the key leaks, anyone could run up charges, so the owner keeps it out of shared documents and can revoke and replace it.
Illustrative case study
A fictional tutoring company connects its booking app, its payment provider and an AI note-taking tool by API. For a year it works silently.
Then the payment provider releases a new version and retires the old one. Payments fail for two days because nobody read the notice. The company sets up an owner for API notices and a test payment after each change.
The invented lesson: APIs make businesses faster, but they are dependencies, and someone must own watching them.
Common misconceptions and mistakes
- An API is a type of software product. It is an interface, a way in, not a product on its own.
- Using an API requires being a programmer. Many no-code tools use APIs for you.
- A key is just a password for nothing important. It can spend your money and read your data, so it needs the same care as a password.
Business use
Use APIs when you want tools to share data or you want to build AI into your own workflow without hosting a model.
Keep keys secret, set spending limits, assign one person to read provider notices, and check what data you send. Personal or client data sent to a provider needs to match your privacy commitments.
People also ask
Is an API free?
Some are, many are priced per use. Always check the pricing page and set a cap.
What is an API key?
A secret code that identifies your account to the service. Treat it like a password.
Is my data safe through an API?
It depends on the provider's terms and your set-up. Read what they do with data you send.
Check your understanding
Why should one person own an API connection in a small business?
Answer: Because providers change versions, prices and limits, and keys need protecting. Without an owner, a change or leak can break or cost the business unnoticed.
Related terms
- Automation
- endpoint
- API key
- integration
- webhook
- rate limit
Learn next
AI Agents and Automation for Small Business shows how tools are connected into practical workflows: https://aiforbusinessandlife.com/academy/ai-agents-automation-small-business. [C4]
More in AI and machine learning
- And - or tree - An and - or tree represents a problem using two kinds of branching.
- Anomaly - An anomaly is a data point or event that departs from what is normal in a way that deserves attention: the unusual transaction, the strange sensor reading...
- Anomaly detection - Anomaly detection is the task of finding data points, events or patterns that differ markedly from what is normal, such as a fraudulent payment, a failing...
- Apriori Algorithm - The Apriori algorithm is a classic method for finding items that frequently occur together in a large set of transactions and turning them into association...
- Argumentation framework - An argumentation framework is a formal representation of arguments and relationships between them, used to analyze which arguments can be accepted together.
- ARKA descriptors in QSAR - ARKA descriptors are derived features used in quantitative structure - activity relationship modeling.
Sources
[S12] Aalto University, Dictionary of Machine Learning; [S14] KNIME, Data Science Glossary; [S3] NIST AI Resource Center glossary. Full URLs are in the source ledger. Verified 11 October 2026.
Previous: Application firewall Next: Application programming interface endpoint