Creative Genius Creative Genius
Lesson 3 of 3 · 14 min read

Temperature, Top-p, and Why Output Varies

The two dials that control how creative — or how deterministic — a model is. Most developers leave them at default and pay for it later.

Two parameters control output randomness: temperature (0–2) and top_p (0–1).

The right defaults for the right job

Use casetemperaturetop_p
Classification, structured extraction01
Customer-facing conversation0.3 – 0.51
Marketing copy, creative writing0.7 – 1.00.95
Brainstorming, exploration1.2 – 1.50.95

Set only one of the two — adjusting both at once compounds in unpredictable ways. OpenAI's docs explicitly recommend choosing one.

← Context Windows: The Real Limits Back to course