# Compare models on real requests

Suppose you want to switch the model that drafts your support replies. A cheaper model is useful only if it still answers the customer's question and follows the policy in the prompt. An evaluation lets both models answer the same recorded requests and asks one judge to score them against criteria you set.

You'll need a router with at least one replayable request, credentials for the models you want to compare, and a provider key and model for the judge. Generating and judging answers uses those providers' quotas.

## Choose the traffic

- **Try one request.** Open **Logs**, choose a request that represents the task, then open **Evaluations → Create new evaluation**. A request with a missing or truncated body may be unavailable for replay.
- **Test a workload.** Open your router's **Recordings**, start a recording, run the workload, and stop the recording. Open it and select **Benchmark this recording**. DodoRouter samples up to 20 replayable requests across the capture. Use traffic representative of the work you plan to move. [Recordings API](/docs/api/recordings/).

## Set up a fair comparison

1. In **Candidate models**, check that the model that served the request is selected. DodoRouter preselects it when its key and model are available. Add the alternative provider key and model. Leave **Prompt variants** empty to compare models with the request as served.
2. Under **Judge rubric**, describe what makes an answer acceptable. For a support reply, criteria could read *“Answer the customer's question, use the refund window stated in the supplied policy, and give the next step. An invented policy is a serious error.”* The judge scores on a 0–100 scale. You can also supply examples of good and bad answers.
3. Select a **Judge key** and **Judge model**. A separate key can keep judging from competing with candidate requests for the same quota.
4. Review the **Run plan** before selecting **Create & run benchmark**. For example, four requests × two models × three repetitions yields 24 candidate answers to judge. Repetitions show how much answers vary. Each additional prompt variant also multiplies the work.

## Read the results

| Look at | What to do with it |
| --- | --- |
| Completed and failed runs | Check coverage before comparing averages. Retry failed runs. If judging failed after an answer was stored, the retry calls the judge again and saves the cost of generating a second answer. |
| Judge feedback | Read any flagged rubric gaps and inspect an answer the judge struggled to score. Use **Duplicate** to try clearer criteria in a new evaluation. |
| Average score and spread | Compare candidates within the same evaluation. If their score gap is smaller than the run-to-run variation, the ranking alone gives little reason to switch. For a recording, expand each ranking and inspect the weakest source requests. |
| Average cost and latency | The rankings use generation cost at API list prices, which lets you compare a metered key with a subscription key. A subscription can show zero metered spend. A missing price is unknown. The batch total also accounts for judging. |

For an agent workflow, connect over OAuth and call `get_guide` first. The same comparison is available through `list_logs`, `list_eval_targets`, `create_eval` and `get_eval`. Read `rubric_feedback` before acting on the rankings. [Agent access](/docs/agent-access/).

For a recording that spans at least ten minutes, the results can project candidate generation cost at the observed request rate. This projection uses API list prices and excludes judging. Check whether the capture reflects a typical traffic period before using it to estimate a month.

## Test a prompt or an agent decision

Use **Prompt variants** to compare changes to the request under the same judge. Start from the served system prompt or patch an individual message, such as a long tool result. Include the original prompt as a baseline. For a recording, the same message position must exist in every sampled request. Results have one row per model and variant.

For a recorded agent workflow, **Next action** asks the judge to compare the candidate's proposed next move with the one taken in production. Each candidate sees the same preceding messages and tool results. The **Vs production** column reports how often its next move scored as good as or better than the recorded one.

## Apply a result

When the candidate meets your criteria on representative requests and its cost and latency suit your application, select **Route here** on its ranking and confirm. DodoRouter updates the matching routing step's provider, key and model. If it can no longer match the original step, open **Routing Chain** to review the current configuration.

The evaluation records the applied change. Choose **Revert** there to restore the previous step, or **Keep honest** to have the judge periodically score a sample of live answers against the same rubric.
