Compare ERNIE 4.5 21B A3B from baidu and GPT-5 Chat from OpenAI 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 GPT-5 Chat 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.
GPT-5 Chat, from OpenAI, has a 128,000-token context window and is priced by the provider serving it on OpenRouter.
| Attribute | ERNIE 4.5 21B A3B | GPT-5 Chat |
|---|---|---|
| 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 | 128,000 tokens |
| Intelligence Index | Not available | 10.4 |
| 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 128,000 tokens for GPT-5 Chat.