Enter opens the highlighted result. Esc closes.

UI-TARS 7B vs Gemma 4 31B

UI-TARS 7B costs 2.0x less per output token than Gemma 4 31B ($0.20 vs $0.40 per million). Updated October 22, 2026; 1 benchmarks have a result for both.

UI-TARS 7BByteDance
Coding
No data
Overall
No data
Output $/M
$0.20
0
Gemma 4 31BGoogle
Coding
39.0
Overall
42.1
Output $/M
$0.40
1
vs boards won of 1 shared

UI-TARS 7B or Gemma 4 31B: which to pick

Only Gemma 4 31B has a coding score, 39.0 on the Vibe Coding Index; UI-TARS 7B has none, so the two cannot be ranked on coding.

Pick UI-TARS 7B for output tokens 2.0x cheaper ($0.20 vs $0.40 per million).

Shared results
1
UI-TARS 7B only
0
Gemma 4 31B only
70
Like-for-like categories
1 of 9

Only benchmarks that tested both models count toward a pick; a result only one model has is shown but not compared.

Which one for your work

Each card is decided by one number both models carry. Where only one has it, the card says so and makes no call.

At a glance

Coding index
UI-TARS 7B not benchmarked, Gemma 4 31B 39.0 from 2 benchmarks.
Widest category
Reasoning, 42.8 points apart on average over 1 shared benchmark.
Widest single gap
Kagi LLM Benchmark: UI-TARS 7B 20.7% against Gemma 4 31B 63.5%, 42.8 points apart on a 0 to 100 scale.
Output price
UI-TARS 7B $0.20 against Gemma 4 31B $0.40 per million output tokens, 2.0x apart.
Context window
UI-TARS 7B takes 128K tokens, Gemma 4 31B 262K.

Benchmark by benchmark

First the score: boards each model leads, per category, where both have a result. Then every board, a category to a fold; bars are each result on a 0 to 100 scale, so compare the two in a row, not one row with another.

Boards won, where both have a result
CategoryUI-TARS 7BBarsGemma 4 31BTies
Reasoning01
All shared boards01
CodingDirectional onlySix of these boards feed the Vibe Coding Index12 boards, none shared
Coding benchmarks for UI-TARS 7B and Gemma 4 31B
BenchmarkUI-TARS 7BGemma 4 31BLeader
LiveBench codingNot measured49.0%Only Gemma 4 31B measured
LMArena WebDevNot measured1367Only Gemma 4 31B measured
AA Coding IndexNot measured43.4Only Gemma 4 31B measured
SciCodeNot measured45.5%Only Gemma 4 31B measured
Terminal-Bench Hard (Artificial Analysis run)Not measured36.4%Only Gemma 4 31B measured
WeirdMLNot measured52.3%Only Gemma 4 31B measured
ALE-BenchNot measured925.5Only Gemma 4 31B measured
LMArena Text: codingNot measured1459Only Gemma 4 31B measured
LMArena Text: software and ITNot measured1463Only Gemma 4 31B measured
LMArena WebDev: ReactNot measured1359Only Gemma 4 31B measured
LMArena WebDev: HTMLNot measured1380Only Gemma 4 31B measured
SciCodeNot measured8.9%Only Gemma 4 31B measured
Neither model has a result on the other 27 boards here
IntelligenceDirectional onlyPublic boards, shown as published, kept out of the index2 boards, none shared
Intelligence benchmarks for UI-TARS 7B and Gemma 4 31B
BenchmarkUI-TARS 7BGemma 4 31BLeader
AA Intelligence IndexNot measured14.7Only Gemma 4 31B measured
Epoch Capabilities IndexNot measured143.0Only Gemma 4 31B measured
Agentic workDirectional onlyPublic boards, shown as published, kept out of the index5 boards, none shared
Agentic work benchmarks for UI-TARS 7B and Gemma 4 31B
BenchmarkUI-TARS 7BGemma 4 31BLeader
AA Agentic IndexNot measured4.2Only Gemma 4 31B measured
LiveBench researchNot measured44.4%Only Gemma 4 31B measured
LiveBench browserNot measured4.0%Only Gemma 4 31B measured
LiveBench long agenticNot measured13.3%Only Gemma 4 31B measured
τ²-Bench TelecomNot measured65.5%Only Gemma 4 31B measured
Neither model has a result on the other 36 boards here
ReasoningLike-for-likePublic boards, shown as published, kept out of the index01
Reasoning benchmarks for UI-TARS 7B and Gemma 4 31B
BenchmarkUI-TARS 7BGemma 4 31BLeader
LiveBench reasoningNot measured68.3%Only Gemma 4 31B measured
GPQA Diamond (Artificial Analysis run)Not measured85.7%Only Gemma 4 31B measured
Humanity's Last Exam (Artificial Analysis run)Not measured23.6%Only Gemma 4 31B measured
GPQA Diamond (Epoch AI run)Not measured75.8%Only Gemma 4 31B measured
LMArena Text: hard promptsNot measured1448Only Gemma 4 31B measured
LMArena Text: expertNot measured1464Only Gemma 4 31B measured
LMArena Text: hard prompts in EnglishNot measured1456Only Gemma 4 31B measured
LMArena Vision: diagramsNot measured1283Only Gemma 4 31B measured
LMArena Vision: homeworkNot measured1310Only Gemma 4 31B measured
Kagi LLM Benchmark20.7%63.5%Gemma 4 31B
Neither model has a result on the other 12 boards here
MathDirectional onlyPublic boards, shown as published, kept out of the index3 boards, none shared
Math benchmarks for UI-TARS 7B and Gemma 4 31B
BenchmarkUI-TARS 7BGemma 4 31BLeader
OTIS Mock AIMENot measured73.3%Only Gemma 4 31B measured
LMArena Text: mathNot measured1463Only Gemma 4 31B measured
LMArena Text: mathematical workNot measured1465Only Gemma 4 31B measured
Neither model has a result on the other 10 boards here
KnowledgeDirectional onlyPublic boards, shown as published, kept out of the index8 boards, none shared
Knowledge benchmarks for UI-TARS 7B and Gemma 4 31B
BenchmarkUI-TARS 7BGemma 4 31BLeader
CaseLaw (Vals AI)Not measured52.6%Only Gemma 4 31B measured
MortgageTax (Vals AI)Not measured61.4%Only Gemma 4 31B measured
SimpleQA VerifiedNot measured10.4%Only Gemma 4 31B measured
LMArena Text: scienceNot measured1457Only Gemma 4 31B measured
LMArena Text: medicine and healthcareNot measured1451Only Gemma 4 31B measured
LMArena Text: legal and governmentNot measured1438Only Gemma 4 31B measured
LMArena Text: business and financeNot measured1430Only Gemma 4 31B measured
FACTS Benchmark SuiteNot measured45.3%Only Gemma 4 31B measured
Neither model has a result on the other 10 boards here
Web designDirectional onlyPublic boards, shown as published, kept out of the index1 board, none shared
Web design benchmarks for UI-TARS 7B and Gemma 4 31B
BenchmarkUI-TARS 7BGemma 4 31BLeader
LiveBench designNot measured58.4%Only Gemma 4 31B measured
Neither model has a result on the other 8 boards here
GeneralDirectional onlyPublic boards, shown as published, kept out of the index30 boards, none shared
General benchmarks for UI-TARS 7B and Gemma 4 31B
BenchmarkUI-TARS 7BGemma 4 31BLeader
LiveBench data analysisNot measured53.3%Only Gemma 4 31B measured
SAGE (Vals AI)Not measured55.0%Only Gemma 4 31B measured
IFBenchNot measured75.6%Only Gemma 4 31B measured
Long context reasoning (AA-LCR)Not measured69.7%Only Gemma 4 31B measured
DTBenchNot measured82.7%Only Gemma 4 31B measured
LMCANot measured39.3%Only Gemma 4 31B measured
Surface Evolver BenchNot measured30.6%Only Gemma 4 31B measured
LMArena TextNot measured1443Only Gemma 4 31B measured
LMArena Text: instruction followingNot measured1433Only Gemma 4 31B measured
LMArena Text: creative writingNot measured1417Only Gemma 4 31B measured
LMArena VisionNot measured1276Only Gemma 4 31B measured
LMArena Text: EnglishNot measured1451Only Gemma 4 31B measured
LMArena Text: non-EnglishNot measured1430Only Gemma 4 31B measured
LMArena Text: ChineseNot measured1475Only Gemma 4 31B measured
LMArena Text: FrenchNot measured1436Only Gemma 4 31B measured
LMArena Text: SpanishNot measured1442Only Gemma 4 31B measured
LMArena Text: RussianNot measured1460Only Gemma 4 31B measured
LMArena Text: PolishNot measured1433Only Gemma 4 31B measured
LMArena Text: multi-turnNot measured1452Only Gemma 4 31B measured
LMArena Text: longer queriesNot measured1446Only Gemma 4 31B measured
LMArena Text: writing and languageNot measured1432Only Gemma 4 31B measured
LMArena Text: entertainment and mediaNot measured1405Only Gemma 4 31B measured
LMArena Vision: EnglishNot measured1271Only Gemma 4 31B measured
LMArena Vision: ChineseNot measured1326Only Gemma 4 31B measured
LMArena Vision: reading textNot measured1282Only Gemma 4 31B measured
LMArena Vision: humorNot measured1280Only Gemma 4 31B measured
LMArena Vision: captioningNot measured1218Only Gemma 4 31B measured
LMArena Vision: recognizing thingsNot measured1226Only Gemma 4 31B measured
LMArena Vision: creative writingNot measured1285Only Gemma 4 31B measured
LMArena DocumentNot measured1425Only Gemma 4 31B measured
Neither model has a result on the other 16 boards here
Image generationNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
Image generation benchmarks for UI-TARS 7B and Gemma 4 31B
BenchmarkUI-TARS 7BGemma 4 31BLeader
Neither model has a result on 5 boards here

What each workload costs

Three fixed token mixes at each model's listed price, so per-token rates become a bill.

Chat turn

1K input + 500 output tokens

UI-TARS 7B$0.0002Fits in one request
Gemma 4 31B$0.0003Fits in one request

UI-TARS 7B costs less

Repository review

50K input + 3K output tokens

UI-TARS 7B$0.0056Fits in one request
Gemma 4 31B$0.0082Fits in one request

UI-TARS 7B costs less

Agent loop

200K input + 10K output tokens

UI-TARS 7B$0.022Exceeds the context window
Gemma 4 31B$0.032Fits in one request

UI-TARS 7B costs less

Listed OpenRouter rates, without cache or batch discounts. A workload that does not fit a model's context window would need splitting.

Specification differences

The leading value in a row is marked; a row with a missing value names no leader. Our two rows are marked in red.

Specifications of UI-TARS 7B and Gemma 4 31B
SpecificationByteDance UI-TARS 7BGoogle Gemma 4 31B
MakerByteDanceGoogle
WeightsOpen weightsOpen weights
ReleasedJuly 22, 2025April 2, 2026
Context window128K262K
Input $/Mtok$0.10$0.14
Output $/Mtok$0.20$0.40
Coding indexNot benchmarked39.0
Independent measurements behind it02
Cost per solved taskNot computableNot computable
SourceOpenRouter listingOpenRouter listing

Questions

Is UI-TARS 7B better than Gemma 4 31B for coding?

Only Gemma 4 31B has a coding score, 39.0 on the Vibe Coding Index; UI-TARS 7B has none, so the two cannot be ranked on coding. Pick UI-TARS 7B for output tokens 2.0x cheaper ($0.20 vs $0.40 per million).

Which is cheaper, UI-TARS 7B or Gemma 4 31B?

UI-TARS 7B costs $0.10 per million input tokens and $0.20 per million output tokens; Gemma 4 31B costs $0.14 and $0.40. Cost per solved task is known for neither of them.

Which has the bigger context window, UI-TARS 7B or Gemma 4 31B?

Gemma 4 31B, with 262K tokens against 128K.

How many benchmarks is the UI-TARS 7B vs Gemma 4 31B comparison based on?

1 benchmarks have a result for both models as of October 22, 2026. UI-TARS 7B's coding index rests on 0 independent benchmarks and Gemma 4 31B's on 2. Where only one model has a result, the page says so instead of naming a winner.

Compare next