Skip to content
AI Engineering Foundations

Concept

Models, Tokens, Context, and APIs

A model predicts the next piece of text from a context window. Tokens are the units used to measure input and output, while an API connects your application to the model. Good engineering starts by understanding these boundaries and the cost, latency, and reliability they create.

Knowledge check

Models, Tokens, Context, and APIs Quiz

Check your understanding of the foundations.

1. What does a token measure?
2. What is the context window?
3. What does an API provide?
Sign in to save completion.