SECAI Core · phase 5 of 15 · noun
Application programming interface
Methods exposed by a script or program that allow other scripts or programs to use it. For example, an API enables software developers to access functions of the TCP/IP network stack under a particular operating system.
The Explain card
- Plain English
- An API is the set of methods one program exposes so other programs can use it. For AI, it is the doorway through which apps send prompts and receive responses.
- Example
- A company's internal chatbot calls a hosted model through an HTTPS API with an API key. That key ends up hard-coded in a mobile app, an attacker extracts it, and strangers are soon running up the bill and probing the model at will.
- Why it matters
- Most AI systems are consumed through APIs, so the API is where authentication, rate limits, logging and input filtering live. A weak API means the model's guardrails are reachable from the outside.
- Hook
- The API is the front door of the model; lock it, log it, and watch who knocks.
Word knowledge
How the word is built, where it came from, and what it sits beside in memory.
In a sentence
The chat client posts each user prompt to the vendor's application programming interface over HTTPS, with a bearer token in the request header.
Why these words
- application Latin applicatio, a joining to, from applicare, to attach names the user-side program the boundary is built for
- programming Greek programma, a written public notice, via English program names the writing of code as the activity that uses that boundary
- interface English coinage from Latin inter, between, and facies, face is the head noun: the shared face between two pieces of software
Where it came from
- Origin
- English computing compound, from Latin applicatio (a joining to, from applicare, to attach), Greek programma (a written public notice), and English interface (from Latin inter, between, and facies, face)
- Entered the language
- late 1960s
- What changed
- Application had meant a joining, then a petition, then a software program that puts a machine to a task. Programming had meant issuing public notices, then writing a schedule, then writing machine instructions. Interface had meant a surface between two bodies of matter, then a meeting point between systems. Cotton and Greatorex joined application program with interface in a 1968 graphics paper, and the -ing form settled later as the everyday name for the contract an operating system, a library, or a remote model holds out to callers.
How it is spelled
- Pattern
- ad- becomes ap- before p, doubling the p
- Pattern
- Latin plicare keeps plic in the noun, ply in the verb
- Pattern
- US program doubles m before -ing even though the stress sits on the first syllable
- Pattern
- Latin inter- stays a closed prefix, one word not a hyphen
- Breaks the pattern
- the noun phrase stays three words; hyphens appear only when the stack modifies another noun
- Breaks the pattern
- programming doubles m against the usual stress rule that leaves offering and entering with one consonant
- Breaks the pattern
- application keeps plic from Latin, while apply, from the same plicare, writes ply
Spelled like
- appear
- implication
- programmed
- internet
Broken into chunks
-
app
- apply
- appoint
- append
-
plic
- implicit
- complicate
- replica
-
ation
- information
- operation
- combination
-
gram
- diagram
- telegram
- grammar
-
ing
- training
- computing
- reasoning
-
inter
- internet
- interrupt
- interval
-
face
- surface
- preface
- deface
What it sits beside
Same subject
Same shape
- user interface
- command line interface
- application binary interface
- graphical user interface
Ways into a model
Interface family
- user interface
- command line interface
- application binary interface
Application compounds
- application software
- application layer
- web application
Where it sits in the deck
Phase 5: Interacting with Models: Prompting, APIs, and Retrieval
With a working model and clean data, learn the interaction layer — how users and systems communicate instructions and retrieve grounded answers.