Anthropic API Fundamentals: Official Course · Lesson 4
max_tokens, temperature, stop_sequences, and system prompt
How max_tokens limits generation, temperature controls randomness, stop_sequences halt at the right spot, and system prompt sets the role and context.