OverpayingForAIPricing desk

Code fix · 3 checks · max 600 tokens · benched 2026-09-16

Mistral Large 3 2512 vs Mistral Medium 3.5 vs Mistral Small 4 vs Ministral 3 8B 2512 on fix a missing await in javascript

Mistral AI models side by side on "Fix a missing await in JavaScript": Ministral 3 8B 2512 scores 10/10; Ministral 3 8B 2512 is the cheapest answer scoring 8+ at $0.02 per 1,000 runs. Outputs, checks, judge reasons, latency and cost.

The prompt every model received

System

You are a senior engineer. Reply with code only unless asked otherwise.

User

getName() always returns undefined. fetchUser(id) returns a Promise that resolves to an object with a name property. Fix the bug and return the complete corrected function only, keeping the same function name and signature.

async function getName(id) {
  const user = fetchUser(id);
  return user.name;
}

Rubric for the judge: Adds await to fetchUser, keeps the async signature, returns the name; no unrelated rewrites.

Side by side

Every cell is one OpenRouter call at temperature 0 with the prompt's token cap and reasoning effort "low" where the model supports it. Cost is usage × the catalogue rate in models.json. Quality is one judge call to anthropic/claude-haiku-4.5 against the prompt's rubric, cached per prompt version.

Mistral Large 3 2512

mistralai/mistral-large-2512

10/10
Latency
518ms
Cost
$8.2e-5
Per 1,000
$0.08

83 in · 27 out · 14 words · checks 3/3

  • contains
  • regex
  • contains
```javascript
async function getName(id) {
  const user = await fetchUser(id);
  return user.name;
}
```

Judge: Output correctly adds await to resolve the Promise, maintains async function signature, returns user.name, and provides only the corrected function without extra commentary.

Mistral Medium 3.5

mistralai/mistral-medium-3-5

10/10
Latency
548ms
Cost
$0.00185
Per 1,000
$1.84

95 in · 227 out (229 reasoning) · 12 words · checks 3/3

  • contains
  • regex
  • contains
async function getName(id) {
  const user = await fetchUser(id);
  return user.name;
}

Judge: Output correctly adds await to resolve the Promise, maintains async function signature, returns user.name, and provides only the corrected function without extra commentary.

Mistral Small 4

mistralai/mistral-small-2603

10/10
Latency
399ms
Cost
$0.00010
Per 1,000
$0.10

95 in · 144 out (130 reasoning) · 14 words · checks 3/3

  • contains
  • regex
  • contains
```javascript
async function getName(id) {
  const user = await fetchUser(id);
  return user.name;
}
```

Judge: Output correctly adds await to resolve the Promise, maintains async function signature, returns user.name, and provides only the corrected function without extra commentary.

Ministral 3 8B 2512

mistralai/ministral-8b-2512

10/10
top judge scorecheapest scoring 8+
Latency
377ms
Cost
$1.7e-5
Per 1,000
$0.02

83 in · 27 out · 14 words · checks 3/3

  • contains
  • regex
  • contains
```javascript
async function getName(id) {
  const user = await fetchUser(id);
  return user.name;
}
```

Judge: Output correctly adds await to resolve the Promise, maintains async function signature, returns user.name, and provides only the corrected function without extra commentary.

Frequently asked

What does this prompt test?

Code fix: Adds await to fetchUser, keeps the async signature, returns the name; no unrelated rewrites. The deterministic checks are contains, regex, contains.

Which model should I pick for this task?

If the judge's bar of 8/10 is good enough for you, Ministral 3 8B 2512 at $0.02 per 1,000 runs. If you need the top score, Ministral 3 8B 2512 at $0.02 per 1,000 runs.

If our calculators helped you cut down on hidden AI wallet leaks, thanks for using them. A tiny fraction of your savings is what keeps our pricing indexes updated daily.

Not sure which AI is cheapest for your use case? Find out in 30 seconds — no signup required.

AI cost intelligence

Stop overpaying for AI tools

Join the OverpayingForAI list for pricing updates, cheaper alternatives, and practical buying guidance.

Now tracking 50+ AI tools, models, platforms, subscriptions, coding tools, and automation products.

We use your email only for OverpayingForAI updates. Unsubscribe anytime.