Fill in the API Parameter Quiz: OpenAI and Anthropic APIs

Test your knowledge of AI API parameters with real examples

Ad placeholder (leaderboard)

Test your AI API parameter knowledge

Setting the right parameters on an LLM API call is the difference between deterministic, well-bounded output and a costly, unpredictable response. This quiz drops you into 20 real scenarios from the OpenAI and Anthropic APIs and asks you to pick the correct parameter and value — the kind of decisions you make every time you wire a model into production.

How it works

Each question gives a concrete goal — “make the output fully reproducible,” “stop generation at a delimiter,” “reduce repeated phrases” — and offers a few parameter choices. Select one and the quiz instantly tells you whether it is right and explains the parameter, including where OpenAI and Anthropic behave differently. Your score is tracked across all 20 questions, and a final summary tells you how solid your grasp is. Nothing is sent to any API; it runs entirely in your browser.

Tips for getting full marks

Remember the core distinctions: temperature and top_p both control randomness but you should generally tune only one; max_tokens caps output length (and is required on every Anthropic request but optional on OpenAI); stop sequences halt generation at a string; frequency_penalty and presence_penalty (OpenAI) discourage repetition and encourage new topics respectively; and seed plus temperature 0 is the closest you get to determinism. Keep those straight and the rest follows.

Ad placeholder (rectangle)