Skip to content

Model Arena

Two to four models answer one prompt side by side, streaming with latency, tokens and cost. Vote blind, see who wrote what, and keep score across rounds.

On this page

Examples

Models

Installation

Installation is part of Pro

Pro components install from a licensed registry. The live preview stays open to everyone.

Two to four models answer the same prompt side by side. Each column streams its answer with the time to first token, latency, tokens and cost ticking up as it writes. In blind mode the columns are Model A, B, C and D until you vote; then the names and logos come in with a short reveal. With two answers you pick A better, B better, tie or both bad; with more, the best one, tie or all bad. Run again starts a new round in a shuffled order, and the leaderboard sums every round as wins, ties and losses.

The vote buttons are a group of toggle buttons and the result is announced. Below 640px the columns become tabs you can swipe between or move through with the arrow keys. Streaming stops while the arena is offscreen; with reduced motion the answers appear whole and the reveal has no animation. Pass simulate=false to stream real answers: update each entry's text, status and stats as chunks arrive.

Props

prompt
ReactNode
The prompt every model answers.
entries
ArenaEntry[]
2 to 4: { id, model, text, ttftMs?, tokensPerSec?, usdPerMTok? } when simulating; with simulate=false also status, latencyMs, tokens, costUsd.
simulate
boolean
Defaulttrue
Play each answer out on its own clock. false: you stream the text and stats.
blind / defaultBlind / onBlindChange
boolean
Defaulttrue
Hide model names until a vote.
vote / onVote
ArenaVote | null
Defaultnull
{ kind: "best", id } | { kind: "tie" } | { kind: "bad" }. Voting is open once every answer is in.
onRunAgain
() => void
Shows Run again. Shuffle the entries (shuffle(items, seed) is exported) and pass the new round.
rounds
ArenaRound[]
Default[]
{ models, vote } per round for the leaderboard: a best vote is a win for one and a loss for the others; tie and bad count as ties.
paused
boolean
Defaultfalse
Stop the simulated clock.

When to use

When to use

  • Letting people compare two to four models on the same prompt, blind, and vote for the better answer.
  • Picking a default model for a feature from real prompts, with latency and cost next to quality.
  • Collecting preference data across rounds and showing a running leaderboard.

When not to use

  • Scoring many cases automatically against expected answers: use Eval Suite.
  • Choosing which model to use for the next message: use Model Picker.
  • Showing a single answer with its sources: use AI Answer.

Using with AI

Use Copy page for AI above to give your assistant this page, Copy prompt under the install command to have it installed and wired to your data, or connect the Knowns UI MCP server and just ask:

  • Add the Knowns UI Model Arena to my app and wire it to my own data.
  • I need letting people compare two to four models on the same prompt, blind, and vote for the better answer. Set that up with the Knowns UI Model Arena.
  • Which Model Arena props do I need for a minimal setup? Show me a short example.

With the server connected, your assistant calls get_component({ name: "model-arena" }) and search_docs({ query: "model arena" }). Pro props, full examples and source come back once your license key is in the MCP config.

Need help?

Stuck on Model Arena, or found something off? We read every message.