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.
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.
| Attribute | ERNIE 4.5 21B A3B | Gemma 3n 2B |
|---|---|---|
| Input price | Pricing varies by provider | Pricing varies by provider |
| Output price | Pricing varies by provider | Pricing varies by provider |
| Context window | 131,072 tokens | 8,192 tokens |
| Intelligence Index | Not available | 4.8 |
| Coding Index | Not available | Not available |
| Agentic Index | Not available | Not available |
| Latency (p50) | Not available | Not available |
| Throughput (p50) | Not available | Not available |
Benchmark data updated
ERNIE 4.5 21B A3B has the longer context window at 131,072 tokens, compared with 8,192 tokens for Gemma 3n 2B.