ModelVerdict

Comparison

Claude Sonnet 5 vs Gemma 4 31B

Same documents, same prompt: where each model gets it right, what it really costs, and how fast it responds.

Verdict

Claude Sonnet 5 is more accurate; Gemma 4 31B is cheaper in 30 of 30 combinations.

More accurate

Claude Sonnet 5

wins 14 of 30

Cheaper

Gemma 4 31B

cheaper in 30 of 30

Faster

Gemma 4 31B

2.9 sec vs 3.6 sec

Fewer fixes

Gemma 4 31B

27 vs 33 documents per 1,000

Across 30 task and document-language combinations (speed and fixes: median).

At a glance

English (US)
Accuracy (correct fields)Per 1,000 documents
Task · documentsClaude Sonnet 5Gemma 4 31BDifferenceClaude Sonnet 5Gemma 4 31BDifference
Invoice extraction99.82%97.64%▼ 2.18$8.84$0.17−98 %
Email triage98.22%96.52%▼ 1.7$4.01$0.12−97 %
Personal data detection99.71%99.90%▲ 0.19$3.50$0.08−98 %
Contract clauses100.00%99.64%▼ 0.36$5.04$0.18−96 %
Document summaries96.00%100.00%▲ 4$4.08$0.13−97 %
Questions about a document100.00%100.00%±0$3.88$0.15−96 %
Czech
Accuracy (correct fields)Per 1,000 documents
Task · documentsClaude Sonnet 5Gemma 4 31BDifferenceClaude Sonnet 5Gemma 4 31BDifference
Invoice extraction100.00%96.10%▼ 3.9$9.41$0.21−98 %
Email triage98.15%97.11%▼ 1.04$4.91$0.16−97 %
Personal data detection98.86%99.81%▲ 0.95$4.06$0.12−97 %
Contract clauses100.00%99.95%▼ 0.05$6.05$0.25−96 %
Document summaries93.44%100.00%▲ 6.56$6.48$0.19−97 %
Questions about a document100.00%100.00%±0$5.14$0.21−96 %
German
Accuracy (correct fields)Per 1,000 documents
Task · documentsClaude Sonnet 5Gemma 4 31BDifferenceClaude Sonnet 5Gemma 4 31BDifference
Invoice extraction98.97%94.87%▼ 4.1$10.42$0.20−98 %
Email triage97.85%95.11%▼ 2.74$5.11$0.15−97 %
Personal data detection99.71%99.90%▲ 0.19$4.40$0.10−98 %
Contract clauses98.21%94.41%▼ 3.8$7.11$0.22−97 %
Document summaries99.11%100.00%▲ 0.89$5.97$0.16−97 %
Questions about a document100.00%100.00%±0$5.49$0.18−97 %
Spanish
Accuracy (correct fields)Per 1,000 documents
Task · documentsClaude Sonnet 5Gemma 4 31BDifferenceClaude Sonnet 5Gemma 4 31BDifference
Invoice extraction98.46%94.62%▼ 3.84$11.51$0.20−98 %
Email triage97.56%97.11%▼ 0.45$5.04$0.15−97 %
Personal data detection99.81%99.90%▲ 0.09$4.38$0.10−98 %
Contract clauses100.00%94.41%▼ 5.59$6.58$0.24−96 %
Document summaries94.22%99.67%▲ 5.45$6.32$0.16−98 %
Questions about a document100.00%100.00%±0$4.94$0.18−96 %
French
Accuracy (correct fields)Per 1,000 documents
Task · documentsClaude Sonnet 5Gemma 4 31BDifferenceClaude Sonnet 5Gemma 4 31BDifference
Invoice extraction99.69%93.54%▼ 6.15$10.69$0.22−98 %
Email triage98.67%96.22%▼ 2.45$4.64$0.16−97 %
Personal data detection99.71%99.81%▲ 0.1$4.10$0.12−97 %
Contract clauses99.95%94.62%▼ 5.33$6.69$0.26−96 %
Document summaries96.78%99.11%▲ 2.33$5.04$0.16−97 %
Questions about a document100.00%100.00%±0$4.93$0.19−96 %

Difference: Gemma 4 31B vs. Claude Sonnet 5; accuracy in percentage points, price in percent. The better value is in bold. Click a task to see the details.

Invoice extraction · English (US) (150 documents)

Claude Sonnet 5 is more accurate by 2.2 pp. Gemma 4 31B is 52.8× cheaper.

MetricClaude Sonnet 5Gemma 4 31B
Correct fields99.82%97.64%
Error-free documents98.67%81.33%
Per 1,000 documents$8.84$0.17
To fix / 1,00013187
Speed (median)3.2 sec8.9 sec
Valid answers100.00%100.00%

Free with login

Accuracy field by field and the documents where the models differ.

Just your email, no password.

Invoice extraction · Czech (150 documents)

Claude Sonnet 5 is more accurate by 3.9 pp. Gemma 4 31B is 44.4× cheaper.

MetricClaude Sonnet 5Gemma 4 31B
Correct fields100.00%96.10%
Error-free documents100.00%66.67%
Per 1,000 documents$9.41$0.21
To fix / 1,0000333
Speed (median)3.6 sec10.4 sec
Valid answers100.00%100.00%

Free with login

Accuracy field by field and the documents where the models differ.

Just your email, no password.

Invoice extraction · German (150 documents)

Claude Sonnet 5 is more accurate by 4.1 pp. Gemma 4 31B is 52.3× cheaper.

MetricClaude Sonnet 5Gemma 4 31B
Correct fields98.97%94.87%
Error-free documents86.67%64.00%
Per 1,000 documents$10.42$0.20
To fix / 1,000133360
Speed (median)3.8 sec7.7 sec
Valid answers100.00%100.00%

Free with login

Accuracy field by field and the documents where the models differ.

Just your email, no password.

Invoice extraction · Spanish (150 documents)

Claude Sonnet 5 is more accurate by 3.8 pp. Gemma 4 31B is 56.9× cheaper.

MetricClaude Sonnet 5Gemma 4 31B
Correct fields98.46%94.62%
Error-free documents81.33%50.67%
Per 1,000 documents$11.51$0.20
To fix / 1,000187493
Speed (median)4.2 sec7.4 sec
Valid answers100.00%100.00%

Free with login

Accuracy field by field and the documents where the models differ.

Just your email, no password.

Invoice extraction · French (150 documents)

Claude Sonnet 5 is more accurate by 6.2 pp. Gemma 4 31B is 48.5× cheaper.

MetricClaude Sonnet 5Gemma 4 31B
Correct fields99.69%93.54%
Error-free documents96.67%50.67%
Per 1,000 documents$10.69$0.22
To fix / 1,00033493
Speed (median)4.4 sec6.5 sec
Valid answers100.00%100.00%

Free with login

Accuracy field by field and the documents where the models differ.

Just your email, no password.

Email triage · English (US) (150 documents)

Claude Sonnet 5 is more accurate by 1.7 pp. Gemma 4 31B is 33.2× cheaper.

MetricClaude Sonnet 5Gemma 4 31B
Correct fields98.22%96.52%
Error-free documents84.00%72.00%
Per 1,000 documents$4.01$0.12
To fix / 1,000160280
Speed (median)3.8 sec2.2 sec
Valid answers100.00%100.00%

Free with login

Accuracy field by field and the documents where the models differ.

Just your email, no password.

Email triage · Czech (150 documents)

Claude Sonnet 5 is more accurate by 1 pp. Gemma 4 31B is 30.9× cheaper.

MetricClaude Sonnet 5Gemma 4 31B
Correct fields98.15%97.11%
Error-free documents83.33%74.67%
Per 1,000 documents$4.91$0.16
To fix / 1,000167253
Speed (median)4.7 sec2.5 sec
Valid answers100.00%100.00%

Free with login

Accuracy field by field and the documents where the models differ.

Just your email, no password.

Email triage · German (150 documents)

Claude Sonnet 5 is more accurate by 2.7 pp. Gemma 4 31B is 34.5× cheaper.

MetricClaude Sonnet 5Gemma 4 31B
Correct fields97.85%95.11%
Error-free documents81.33%62.00%
Per 1,000 documents$5.11$0.15
To fix / 1,000187380
Speed (median)4.3 sec3.6 sec
Valid answers100.00%100.00%

Free with login

Accuracy field by field and the documents where the models differ.

Just your email, no password.

Email triage · Spanish (150 documents)

Claude Sonnet 5 is more accurate by 0.5 pp. Gemma 4 31B is 34.6× cheaper.

MetricClaude Sonnet 5Gemma 4 31B
Correct fields97.56%97.11%
Error-free documents78.67%74.00%
Per 1,000 documents$5.04$0.15
To fix / 1,000213260
Speed (median)5.5 sec2.2 sec
Valid answers100.00%100.00%

Free with login

Accuracy field by field and the documents where the models differ.

Just your email, no password.

Email triage · French (150 documents)

Claude Sonnet 5 is more accurate by 2.4 pp. Gemma 4 31B is 29.1× cheaper.

MetricClaude Sonnet 5Gemma 4 31B
Correct fields98.67%96.22%
Error-free documents88.00%68.67%
Per 1,000 documents$4.64$0.16
To fix / 1,000120313
Speed (median)4.3 sec2.4 sec
Valid answers100.00%100.00%

Free with login

Accuracy field by field and the documents where the models differ.

Just your email, no password.

Personal data detection · English (US) (150 documents)

Gemma 4 31B is more accurate by 0.2 pp. Gemma 4 31B is 41.4× cheaper.

MetricClaude Sonnet 5Gemma 4 31B
Correct fields99.71%99.90%
Error-free documents98.00%99.33%
Per 1,000 documents$3.50$0.08
To fix / 1,000207
Speed (median)2.5 sec2.4 sec
Valid answers100.00%100.00%

Free with login

Accuracy field by field and the documents where the models differ.

Just your email, no password.

Personal data detection · Czech (150 documents)

Gemma 4 31B is more accurate by 0.9 pp. Gemma 4 31B is 34.1× cheaper.

MetricClaude Sonnet 5Gemma 4 31B
Correct fields98.86%99.81%
Error-free documents92.00%98.67%
Per 1,000 documents$4.06$0.12
To fix / 1,0008013
Speed (median)3.2 sec2.9 sec
Valid answers100.00%100.00%

Free with login

Accuracy field by field and the documents where the models differ.

Just your email, no password.

Personal data detection · German (150 documents)

Gemma 4 31B is more accurate by 0.2 pp. Gemma 4 31B is 43.2× cheaper.

MetricClaude Sonnet 5Gemma 4 31B
Correct fields99.71%99.90%
Error-free documents98.00%99.33%
Per 1,000 documents$4.40$0.10
To fix / 1,000207
Speed (median)3.7 sec1.9 sec
Valid answers100.00%100.00%

Free with login

Accuracy field by field and the documents where the models differ.

Just your email, no password.

Personal data detection · Spanish (150 documents)

Gemma 4 31B is more accurate by 0.1 pp. Gemma 4 31B is 42.3× cheaper.

MetricClaude Sonnet 5Gemma 4 31B
Correct fields99.81%99.90%
Error-free documents98.67%99.33%
Per 1,000 documents$4.38$0.10
To fix / 1,000137
Speed (median)3.6 sec3.6 sec
Valid answers100.00%100.00%

Free with login

Accuracy field by field and the documents where the models differ.

Just your email, no password.

Personal data detection · French (150 documents)

Gemma 4 31B is more accurate by 0.1 pp. Gemma 4 31B is 34.2× cheaper.

MetricClaude Sonnet 5Gemma 4 31B
Correct fields99.71%99.81%
Error-free documents98.00%98.67%
Per 1,000 documents$4.10$0.12
To fix / 1,0002013
Speed (median)2.5 sec4.3 sec
Valid answers100.00%100.00%

Free with login

Accuracy field by field and the documents where the models differ.

Just your email, no password.

Contract clauses · English (US) (150 documents)

Claude Sonnet 5 is more accurate by 0.4 pp. Gemma 4 31B is 28× cheaper.

MetricClaude Sonnet 5Gemma 4 31B
Correct fields100.00%99.64%
Error-free documents100.00%97.33%
Per 1,000 documents$5.04$0.18
To fix / 1,000027
Speed (median)3.4 sec2.5 sec
Valid answers100.00%100.00%

Free with login

Accuracy field by field and the documents where the models differ.

Just your email, no password.

Contract clauses · Czech (150 documents)

Both are equally accurate. Gemma 4 31B is 23.8× cheaper.

MetricClaude Sonnet 5Gemma 4 31B
Correct fields100.00%99.95%
Error-free documents100.00%99.33%
Per 1,000 documents$6.05$0.25
To fix / 1,00007
Speed (median)3.6 sec6.0 sec
Valid answers100.00%100.00%

Free with login

Accuracy field by field and the documents where the models differ.

Just your email, no password.

Contract clauses · German (150 documents)

Claude Sonnet 5 is more accurate by 3.8 pp. Gemma 4 31B is 32.3× cheaper.

MetricClaude Sonnet 5Gemma 4 31B
Correct fields98.21%94.41%
Error-free documents86.67%27.33%
Per 1,000 documents$7.11$0.22
To fix / 1,000133727
Speed (median)4.3 sec2.6 sec
Valid answers100.00%100.00%

Free with login

Accuracy field by field and the documents where the models differ.

Just your email, no password.

Contract clauses · Spanish (150 documents)

Claude Sonnet 5 is more accurate by 5.6 pp. Gemma 4 31B is 27.7× cheaper.

MetricClaude Sonnet 5Gemma 4 31B
Correct fields100.00%94.41%
Error-free documents100.00%27.33%
Per 1,000 documents$6.58$0.24
To fix / 1,0000727
Speed (median)4.0 sec5.0 sec
Valid answers100.00%100.00%

Free with login

Accuracy field by field and the documents where the models differ.

Just your email, no password.

Contract clauses · French (150 documents)

Claude Sonnet 5 is more accurate by 5.3 pp. Gemma 4 31B is 26.2× cheaper.

MetricClaude Sonnet 5Gemma 4 31B
Correct fields99.95%94.62%
Error-free documents99.33%30.67%
Per 1,000 documents$6.69$0.26
To fix / 1,0007693
Speed (median)4.6 sec5.3 sec
Valid answers100.00%100.00%

Free with login

Accuracy field by field and the documents where the models differ.

Just your email, no password.

Document summaries · English (US) (150 documents)

Gemma 4 31B is more accurate by 4 pp. Gemma 4 31B is 32× cheaper.

MetricClaude Sonnet 5Gemma 4 31B
Correct fields96.00%100.00%
Error-free documents76.67%100.00%
Per 1,000 documents$4.08$0.13
To fix / 1,0002330
Speed (median)2.9 sec2.2 sec
Valid answers100.00%100.00%

Free with login

Accuracy field by field and the documents where the models differ.

Just your email, no password.

Document summaries · Czech (150 documents)

Gemma 4 31B is more accurate by 6.6 pp. Gemma 4 31B is 34.2× cheaper.

MetricClaude Sonnet 5Gemma 4 31B
Correct fields93.44%100.00%
Error-free documents68.00%100.00%
Per 1,000 documents$6.48$0.19
To fix / 1,0003200
Speed (median)4.7 sec3.4 sec
Valid answers100.00%100.00%

Free with login

Accuracy field by field and the documents where the models differ.

Just your email, no password.

Document summaries · German (150 documents)

Gemma 4 31B is more accurate by 0.9 pp. Gemma 4 31B is 36.7× cheaper.

MetricClaude Sonnet 5Gemma 4 31B
Correct fields99.11%100.00%
Error-free documents96.00%100.00%
Per 1,000 documents$5.97$0.16
To fix / 1,000400
Speed (median)3.6 sec2.9 sec
Valid answers100.00%100.00%

Free with login

Accuracy field by field and the documents where the models differ.

Just your email, no password.

Document summaries · Spanish (150 documents)

Gemma 4 31B is more accurate by 5.4 pp. Gemma 4 31B is 40.2× cheaper.

MetricClaude Sonnet 5Gemma 4 31B
Correct fields94.22%99.67%
Error-free documents68.00%98.00%
Per 1,000 documents$6.32$0.16
To fix / 1,00032020
Speed (median)3.4 sec2.6 sec
Valid answers100.00%100.00%

Free with login

Accuracy field by field and the documents where the models differ.

Just your email, no password.

Document summaries · French (150 documents)

Gemma 4 31B is more accurate by 2.3 pp. Gemma 4 31B is 30.7× cheaper.

MetricClaude Sonnet 5Gemma 4 31B
Correct fields96.78%99.11%
Error-free documents80.67%94.67%
Per 1,000 documents$5.04$0.16
To fix / 1,00019353
Speed (median)3.1 sec3.2 sec
Valid answers100.00%100.00%

Free with login

Accuracy field by field and the documents where the models differ.

Just your email, no password.

Questions about a document · English (US) (150 documents)

Both are equally accurate. Gemma 4 31B is 25× cheaper.

MetricClaude Sonnet 5Gemma 4 31B
Correct fields100.00%100.00%
Error-free documents100.00%100.00%
Per 1,000 documents$3.88$0.15
To fix / 1,00000
Speed (median)2.2 sec2.1 sec
Valid answers100.00%100.00%

Free with login

Accuracy field by field and the documents where the models differ.

Just your email, no password.

Questions about a document · Czech (150 documents)

Both are equally accurate. Gemma 4 31B is 24.3× cheaper.

MetricClaude Sonnet 5Gemma 4 31B
Correct fields100.00%100.00%
Error-free documents100.00%100.00%
Per 1,000 documents$5.14$0.21
To fix / 1,00000
Speed (median)2.6 sec1.9 sec
Valid answers100.00%100.00%

Free with login

Accuracy field by field and the documents where the models differ.

Just your email, no password.

Questions about a document · German (150 documents)

Both are equally accurate. Gemma 4 31B is 30.2× cheaper.

MetricClaude Sonnet 5Gemma 4 31B
Correct fields100.00%100.00%
Error-free documents100.00%100.00%
Per 1,000 documents$5.49$0.18
To fix / 1,00000
Speed (median)2.3 sec2.1 sec
Valid answers100.00%100.00%

Free with login

Accuracy field by field and the documents where the models differ.

Just your email, no password.

Questions about a document · Spanish (150 documents)

Both are equally accurate. Gemma 4 31B is 27.2× cheaper.

MetricClaude Sonnet 5Gemma 4 31B
Correct fields100.00%100.00%
Error-free documents100.00%100.00%
Per 1,000 documents$4.94$0.18
To fix / 1,00000
Speed (median)2.2 sec1.9 sec
Valid answers100.00%100.00%

Free with login

Accuracy field by field and the documents where the models differ.

Just your email, no password.

Questions about a document · French (150 documents)

Both are equally accurate. Gemma 4 31B is 25.6× cheaper.

MetricClaude Sonnet 5Gemma 4 31B
Correct fields100.00%100.00%
Error-free documents100.00%100.00%
Per 1,000 documents$4.93$0.19
To fix / 1,00000
Speed (median)2.1 sec2.1 sec
Valid answers100.00%100.00%

Free with login

Accuracy field by field and the documents where the models differ.

Just your email, no password.

Log in with email

We use your email only to log you in (and for the digest if you tick it). No spam.