Model Parameters
These are the API-level controls that determine how the AI model generates responses. Adjust the sliders to see how each parameter affects output.
The system prompt is the invisible instruction layer that shapes the AI's behavior across the entire conversation. It's set via the API, not visible to the end user.
Without System Prompt
With System Prompt
Developer Tip:
System prompts are where you define guardrails, persona, output format, and constraints for your AI application. Every production AI app uses them.Interactive Parameter Controls
Controls randomness/creativity. Low = deterministic and factual. High = creative and varied.
Prompt: "Explain Python in one sentence." "Python is the Swiss Army knife of programming — clean enough for beginners, powerful enough for AI researchers."
Limits the model to the most likely words up to a probability cutoff. Another way to control creativity alongside temperature.
Prompt: "Suggest a startup idea in AI." "An AI app that analyzes your fridge contents via camera and generates creative recipes based on what you have."
Maximum length of the model's output. Controls response size. 1 token ≈ ¾ of a word.
Prompt: "Explain Python." A detailed response covering history, features, syntax philosophy, use cases (web, data science, AI, automation), ecosystem (pip, PyPI), frameworks (Django, Flask, FastAPI), and comparison with other languages.
Reduces repetition of the same phrases. Higher values = less repetition.
"Python is popular. Python is easy. Python is versatile. Python is great for beginners. Python has many libraries. Python is widely used."
Encourages the model to introduce new topics instead of staying narrow. Higher = more topic diversity.
Prompt: "Tell me about AI." Focuses only on machine learning basics: supervised learning, neural networks, training data.
Stop sequences tell the model when to stop generating. Useful for structured outputs like JSON.
Without Stop Sequence
With Stop Sequence: "]"
| Parameter | Code Gen | Creative Writing | Data Extraction | Brainstorming |
|---|---|---|---|---|
| Temperature | 0–0.2 | 0.7–1.0 | 0 | 0.8–1.2 |
| Top-p | 0.1–0.3 | 0.8–1.0 | 0.1 | 0.9–1.0 |
| Max Tokens | 500–2000 | 1000–4000 | 200–500 | 500–1500 |
| Freq. Penalty | 0 | 0.3–0.7 | 0 | 0.5–1.0 |
| Pres. Penalty | 0 | 0.3–0.5 | 0 | 0.5–1.0 |