Anthropic · Topic 1 of 5
The Messages API
The core request/response contract: request anatomy (model, max_tokens, system, messages), statelessness and sending full history each turn, multi-turn conversations, assistant prefills, stop_reason semantics, and streaming responses.
5 lessons298 questions
What this topic covers
- 01Request Anatomy: model, max_tokens, system, messages300m
- 02Statelessness: Sending Full History Each Turn240m
- 03System Prompts and Assistant Prefills300m
- 04stop_reason: end_turn, tool_use, max_tokens300m
- 05Streaming Responses (SSE)300m