./glossary / api
API
An API is the documented way one program asks another to do something: a fixed address, a fixed request, a fixed reply. When software “calls a model” it sends text to the provider's API and gets text back. No human is involved at that point.
The acronym is application programming interface, and the idea predates AI by decades. A weather API takes a city and returns a forecast; a model API takes a prompt and returns a completion. The value is that the shape is stable, so software can be written against it.
For AI, the API is where money and privacy are decided. The request carries your text to the provider's servers, the reply comes back, and the provider bills per token. A local model replaces that call with a call to your own machine, which changes both the bill and who can read the text.
You do not need to write code to use one. Products that ask you for an API key are asking you to paste a credential so their software can make the call on your behalf, billed to your account. That is what bring-your-own-key means.
Where this comes up
Related terms
Cite this definition
MershLab, “API”, https://www.mershlab.com/glossary/api.
Last updated: 2026-11-29.