Temperature
APIDefinition
API parameter (0.0-1.0) that controls the randomness of Claude's output. Lower values (0.0) produce deterministic, consistent responses ideal for classification and extraction. Higher values increase creativity and variety for generative tasks.
Example Usage
Use temperature 0 for classification and extraction tasks. Use higher temperature for creative writing and brainstorming.