The AI API
How you actually call a model — messages and roles, request/response, streaming, and SDKs.
less than a minute
Call a model through its API and steer it: parameters, prompting, context, structured output, reasoning, cost — ending with how to choose the right model.
How you actually call a model — messages and roles, request/response, streaming, and SDKs.
The knobs that shape a model’s output — temperature, top-p/top-k, max tokens, stop.
The most direct way to control a foundation model’s output.
Managing what goes into the context window — the discipline beneath prompting, RAG, and agents.
Making a model return machine-readable JSON that matches a schema — so your code can rely on it.
Models that think step-by-step before answering — when the extra time and tokens pay off.
What you actually pay for, what drives it up, and the levers to bring it down.
Capability vs cost vs latency vs context — how to pick the right model for a task.