Prompt Engineering Interactive Tutorial: Based on Anthropic Materials · Lesson 1
Basic Prompt Structure
Messages API, required parameters (model, max_tokens, messages), user/assistant roles, the system prompt, and how to shape response format on current Claude models.
Messages API: Required Parameters
Every Claude call via the Messages API includes three parameters:
- model — the model ID (e.g.,
claude-opus-5-5; for simple or high-volume tasks,claude-sonnet-5-5orclaude-haiku-5-5) - max_tokens — hard limit on response tokens
- messages — an array of objects with
roleandcontentfields
The models are trained on alternating user and assistant turns, so start the conversation with user and alternate roles from there.
The rest of this lesson opens after a free sign-up
Sign up with email or Google: the first two lessons of every course stay open for good, and the whole catalog is open for 7 days. No card needed.


