Work with a model

Talk to a model and control its output.

Call a model through its API and steer it: parameters, prompting, context, structured output, reasoning, cost — ending with how to choose the right model.


The AI API

How you actually call a model — messages and roles, request/response, streaming, and SDKs.

Inference Parameters

The knobs that shape a model’s output — temperature, top-p/top-k, max tokens, stop.

Prompt Engineering

The most direct way to control a foundation model’s output.

Context Engineering

Managing what goes into the context window — the discipline beneath prompting, RAG, and agents.

Structured Outputs

Making a model return machine-readable JSON that matches a schema — so your code can rely on it.

Reasoning Models

Models that think step-by-step before answering — when the extra time and tokens pay off.

Cost & Tokens

What you actually pay for, what drives it up, and the levers to bring it down.

Choosing a Model

Capability vs cost vs latency vs context — how to pick the right model for a task.