Skip to content
Alpha
  • Models
  • Rankings
  • Ori

Footer

OpenRouterOpenRouter
© 2026 OpenRouter, Inc

Product

  • Chat
  • Rankings
  • Benchmarks
  • Apps
  • Discover
  • Models
  • Ori
  • Collections
  • Providers
  • Tools
  • Pricing
  • Business
  • EU routing
  • Enterprise
  • Labs

Company

  • About
  • Blog
  • Careers
    Hiring
  • Privacy
  • Terms of Service
  • Trust Center
  • Support
  • Works With OR
  • Data
  • Brand

Developer

  • Documentation
  • API Reference
  • Developer Platform
  • Status
  • AI Site Map

Connect

  • Discord
  • GitHub
  • LinkedIn
  • X
  • YouTube
  1. Home
  2. /
  3. Compare

ERNIE 4.5 21B A3B vs Gemma 3n 2B

Compare ERNIE 4.5 21B A3B from baidu and Gemma 3n 2B from Google on key metrics including benchmarks, price, context length, and other model features. Access both models and hundreds of others through the OpenRouter API.

Favicon for baidu
ERNIE 4.5 21B A3B
Favicon for google
Gemma 3n 2B
Favicon for baidu
ERNIE 4.5 21B A3B
Favicon for google
Gemma 3n 2B

Overview

ERNIE 4.5 21B A3B
Author
baidu
Gemma 3n 2B
Author
Google
ERNIE 4.5 21B A3B
Context length
131Ktokens
Gemma 3n 2B
Context length
8Ktokens
ERNIE 4.5 21B A3B
Reasoning
Gemma 3n 2B
Reasoning
ERNIE 4.5 21B A3B
Input modalities
Gemma 3n 2B
Input modalities
ERNIE 4.5 21B A3B
Output modalities
Gemma 3n 2B
Output modalities

ERNIE 4.5 21B A3B vs Gemma 3n 2B: side-by-side summary

ERNIE 4.5 21B A3B and Gemma 3n 2B are available through the OpenRouter API, so switching between them takes a model slug change rather than a new integration.

ERNIE 4.5 21B A3B, from baidu, has a 131,072-token context window and is priced by the provider serving it on OpenRouter.

Gemma 3n 2B, from Google, has a 8,192-token context window and is priced by the provider serving it on OpenRouter.

Context window
  • ERNIE 4.5 21B A3B: 131,072 tokens
  • Gemma 3n 2B: 8,192 tokens
Price
  • ERNIE 4.5 21B A3B: Pricing varies by provider
  • Gemma 3n 2B: Pricing varies by provider
Provided by
  • ERNIE 4.5 21B A3B: baidu
  • Gemma 3n 2B: Google
  • ERNIE 4.5 21B A3B model details, providers and pricing
  • Gemma 3n 2B model details, providers and pricing

ERNIE 4.5 21B A3B vs Gemma 3n 2B at a glance

ERNIE 4.5 21B A3B vs Gemma 3n 2B comparison
AttributeERNIE 4.5 21B A3BGemma 3n 2B
Input pricePricing varies by providerPricing varies by provider
Output pricePricing varies by providerPricing varies by provider
Context window131,072 tokens8,192 tokens
Intelligence IndexNot available4.8
Coding IndexNot availableNot available
Agentic IndexNot availableNot available
Latency (p50)Not availableNot available
Throughput (p50)Not availableNot available

Benchmark data updated Oct 5, 2026

Frequently asked questions

Which has the longer context window, ERNIE 4.5 21B A3B or Gemma 3n 2B?

ERNIE 4.5 21B A3B has the longer context window at 131,072 tokens, compared with 8,192 tokens for Gemma 3n 2B.