Topic 16 of 20 · 29 words
AI APIs, Protocols & Integration
Connecting software to AI models cleanly with REST APIs, SSE streaming, structured JSON schemas, rate limits, MCP, and A2A.
The 29 words, in learning order
Start at 1. Each word builds on the ones before it.
- APIAn API, or Application Programming Interface, is a set of rules that lets one program talk to another.
- REST APIA REST API is a common style of web API where programs send requests to web addresses using standard actions like GET and POST.
- API EndpointAn API endpoint is a specific web address where an API accepts requests for a particular function.
- API KeyAn API key is a secret code that identifies you to an API and gives you permission to use it.
- SDKAn 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.
- JSONJSON is a simple text format for storing and sending structured data, using keys and values.
- Structured OutputStructured output means getting an AI's answer in a fixed, machine-readable format, like JSON that follows a schema.
- JSON SchemaJSON Schema is a standard way to describe what a piece of JSON data should look like, including its fields and types.
- Tool CallingTool calling is when an AI model asks to use an outside tool, like a calculator, search engine or app, by producing a structured request.
- Streaming ResponseA streaming response sends an AI's answer piece by piece as it is generated, instead of waiting for the whole thing.
- Server-Sent Events (SSE)Server-Sent Events is a web technology that lets a server keep sending updates to a browser or app over one open connection.
- WebhooksWebhooks are automatic messages one system sends to another when something happens.
- Rate LimitingRate limiting caps how many requests or tokens you can send to an API in a certain amount of time.
- Request PayloadA request payload is the data you send in an API request, like your prompt, model choice and settings.
- Response PayloadA response payload is the data an API sends back, like the model's answer and information about token usage.
- AuthenticationAuthentication is proving who you are to a system, like logging in.
- AuthorizationAuthorization is deciding what an authenticated user or app is allowed to do.
- API LatencyAPI latency is the time between sending a request to an API and getting a response.
- API ThroughputAPI throughput is how many requests or tokens an API can handle over time for your account or app.
- Token LimitsToken limits are caps on how many tokens can be used, such as the maximum input size, maximum output length, or tokens per minute.
- Context LimitsContext limits are the maximum amount of text, in tokens, a model can take in for one request, including the conversation so far.
- ProviderA provider is a company or service that offers AI models for use, usually through an API.
- Model EndpointA model endpoint is the specific API address or deployment where a particular model can be called.
- OpenAI-Compatible APIAn OpenAI-compatible API is an API that copies the request and response format of OpenAI's API, so the same code works with different providers.
- Model Context Protocol (MCP)The Model Context Protocol is an open standard that lets AI apps connect to tools and data sources in one consistent way.
- A2A (Agent2Agent)A2A, or Agent2Agent, is an open protocol that lets AI agents from different companies and frameworks talk to and work with each other.
- WebSocketA WebSocket is a connection that stays open so a client and server can send messages back and forth instantly in both directions.
- Structured DataStructured data is information organized in a clear, predictable format, like tables, spreadsheets or JSON with fixed fields.
- Schema ValidationSchema validation checks whether data matches a defined schema, like the right fields and types.
How AI APIs, Protocols & Integration fits together
Behind almost every AI-powered product is a clean HTTP integration layer. Your app sends an authenticated JSON request payload with messages, token limits, and optional tool definitions; the provider streams tokens back via Server-Sent Events (SSE) so users see text immediately instead of staring at a spinner.
Features like Structured Outputs (strict JSON Schema enforcement) make LLM responses predictable enough for normal application code to parse without brittle regex hacks, while OpenAI-compatible endpoints and MCP make switching models and tools straightforward.