The AI arena is free today

Open Superagent

Gemma 3n E4B Instructed vs GPT-5.1 Codex

Comparing Gemma 3n E4B Instructed and GPT-5.1 Codex across benchmarks, pricing, and capabilities.

Google · OpenAI · Updated for 2026

Which is better?

Gemma 3n E4B Instructed and GPT-5.1 Codex trade strengths across price, capabilities, and technical limits. The better choice depends on the workload.

On price, GPT-5.1 Codex is roughly 7.3x cheaper per token on a blended 3:1 input/output basis, which adds up quickly at production volume.

GPT-5.1 Codex also accepts a larger context window (400,000 input tokens), making it the stronger choice for long documents and large codebases.

Based on current benchmark, pricing, and model metadata for 2026.

Choose Gemma 3n E4B Instructed

  • you want predictable pricing at $20.00/M input and $40.00/M output

Choose GPT-5.1 Codex

  • cost matters — it's about 7.3x cheaper per token
  • you process long inputs — it offers a 400,000 token context window
  • you want the most recent training data — it shipped Nov 2025

At a glance

The differences that matter most.

Benchmark wins
Input price
$20.00 / M
$1.25 / M
Output price
$40.00 / M
$10.00 / M
Context window
32,000
400,000
Released
Jun 2025
Nov 2025
License
Proprietary
Proprietary

Performance Benchmarks

Comparative analysis across standard metrics

No common benchmarks found

Gemma 3n E4B Instructed and GPT-5.1 Codexdon't have any common benchmark datasets to compare. They may have been evaluated on different testing suites.

Arena Performance

Playground indexes and blind preference scores

Pricing Analysis

Price comparison per million tokens

GPT-5.1 Codex costs less

For input processing, Gemma 3n E4B Instructed ($20.00/1M tokens) is 16.0x more expensive than GPT-5.1 Codex ($1.25/1M tokens).

For output processing, Gemma 3n E4B Instructed ($40.00/1M tokens) is 4.0x more expensive than GPT-5.1 Codex ($10.00/1M tokens).

In conclusion, Gemma 3n E4B Instructed is more expensive than GPT-5.1 Codex.*

* Using a 3:1 ratio of input to output tokens

Lowest available price from all providers
Tue Aug 25 2026 • llm-stats.com
Google
Gemma 3n E4B Instructed
Input tokens$20.00
Output tokens$40.00
Best providerTogether
OpenAI
GPT-5.1 Codex
Input tokens$1.25
Output tokens$10.00
Best providerOpenAI
Notice missing or incorrect data?Start an Issue

Context Window

Maximum input and output token capacity

GPT-5.1 Codex accepts 400,000 input tokens compared to Gemma 3n E4B Instructed's 32,000 tokens. GPT-5.1 Codex can generate longer responses up to 128,000 tokens, while Gemma 3n E4B Instructed is limited to 32,000 tokens.

Google
Gemma 3n E4B Instructed
Input32,000 tokens
Output32,000 tokens
OpenAI
GPT-5.1 Codex
Input400,000 tokens
Output128,000 tokens
Tue Aug 25 2026 • llm-stats.com

Input Capabilities

Supported data types and modalities

Both Gemma 3n E4B Instructed and GPT-5.1 Codex support multimodal inputs.

They are both capable of processing various types of data, offering versatility in application.

Gemma 3n E4B Instructed

Text
Images
Audio
Video

GPT-5.1 Codex

Text
Images
Audio
Video

License

Usage and distribution terms

Both models are licensed under proprietary licenses.

Both models have usage restrictions defined by their respective organizations.

Gemma 3n E4B Instructed

Proprietary

Closed source

GPT-5.1 Codex

Proprietary

Closed source

Release Timeline

When each model was launched

Gemma 3n E4B Instructed was released on 2025-06-26, while GPT-5.1 Codex was released on 2025-11-19.

GPT-5.1 Codex is 5 months newer than Gemma 3n E4B Instructed.

Gemma 3n E4B Instructed

Jun 26, 2025

1.2 years ago

GPT-5.1 Codex

Nov 19, 2025

9 months ago

4mo newer

Knowledge Cutoff

When training data ends

Gemma 3n E4B Instructed has a knowledge cutoff of 2024-06-01, while GPT-5.1 Codex has a cutoff of 2024-09-30.

GPT-5.1 Codex has more recent training data (up to 2024-09-30), making it potentially better informed about events through that date compared to Gemma 3n E4B Instructed (2024-06-01).

Gemma 3n E4B Instructed

Jun 2024

GPT-5.1 Codex

Sep 2024

3 mo newer

Provider Availability

Gemma 3n E4B Instructed is available from Together. GPT-5.1 Codex is available from OpenAI.

Gemma 3n E4B Instructed

together logo
Together
Input Price:Input: $20.00/1MOutput Price:Output: $40.00/1M

GPT-5.1 Codex

openai logo
OpenAI
Input Price:Input: $1.25/1MOutput Price:Output: $10.00/1M
* Prices shown are per million tokens

Outputs Comparison

Notice missing or incorrect data?Start an Issue discussion

Judge for yourself.

Run your own prompts against Gemma 3n E4B Instructed and GPT-5.1 Codex side-by-side, then vote on the output you prefer.

Gemma 3n E4B Instructed
✓ Preferred
GPT-5.1 Codex
Open in Playground

FAQ

Common questions about Gemma 3n E4B Instructed vs GPT-5.1 Codex.

Which is better, Gemma 3n E4B Instructed or GPT-5.1 Codex?

Gemma 3n E4B Instructed (Google) and GPT-5.1 Codex (OpenAI) each have strengths in different areas. Compare their benchmark scores, pricing, context windows, and capabilities above to determine which fits your needs.

How does Gemma 3n E4B Instructed compare to GPT-5.1 Codex in benchmarks?

Gemma 3n E4B Instructed scores HumanEval: 75.0%, MGSM: 67.0%, MMLU: 64.9%, Global-MMLU-Lite: 64.5%, MBPP: 63.6%. GPT-5.1 Codex scores SWE-Bench Verified: 73.7%, SWE-Lancer: 66.3%, Terminal-Bench 2.0: 52.8%.

Is Gemma 3n E4B Instructed cheaper than GPT-5.1 Codex?

GPT-5.1 Codex is 16.0x cheaper for input tokens. Gemma 3n E4B Instructed costs $20.00/M input and $40.00/M output via together. GPT-5.1 Codex costs $1.25/M input and $10.00/M output via openai.

What are the context window sizes for Gemma 3n E4B Instructed and GPT-5.1 Codex?

Gemma 3n E4B Instructed supports 32K tokens and GPT-5.1 Codex supports 400K tokens. A larger context window lets you process longer documents, conversations, or codebases in a single request.

What are the main differences between Gemma 3n E4B Instructed and GPT-5.1 Codex?

Key differences include context window (32K vs 400K), input pricing ($20.00 vs $1.25/M). See the full comparison above for benchmark-by-benchmark results.

Who makes Gemma 3n E4B Instructed and GPT-5.1 Codex?

Gemma 3n E4B Instructed is developed by Google and GPT-5.1 Codex is developed by OpenAI.