Skip to content
  • Models
  • Rankings
  • Ori
Sign Up
Sign Up
OpenRouterOpenRouter
© 2026 OpenRouter, Inc

Product

  • Chat
  • Rankings
  • Benchmarks
  • Apps
  • Discover
  • Models
  • Collections
  • Providers
  • Pricing
  • Business
  • 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

Connect

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

ERNIE 4.5 21B A3B Thinking vs Granite 4.0 Micro

Compare ERNIE 4.5 21B A3B Thinking from baidu and Granite 4.0 Micro from ibm-granite 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 Thinking
Favicon for ibm-granite
Granite 4.0 Micro
Favicon for baidu
ERNIE 4.5 21B A3B Thinking
Favicon for ibm-granite
Granite 4.0 Micro

Overview

ERNIE 4.5 21B A3B Thinking
Author
baidu
Granite 4.0 Micro
Author
ibm-granite
ERNIE 4.5 21B A3B Thinking
Context length
131Ktokens
Granite 4.0 Micro
Context length
131Ktokens
ERNIE 4.5 21B A3B Thinking
Reasoning
Granite 4.0 Micro
Reasoning
ERNIE 4.5 21B A3B Thinking
Input modalities
Granite 4.0 Micro
Input modalities
ERNIE 4.5 21B A3B Thinking
Output modalities
Granite 4.0 Micro
Output modalities

ERNIE 4.5 21B A3B Thinking vs Granite 4.0 Micro: side-by-side summary

ERNIE 4.5 21B A3B Thinking and Granite 4.0 Micro 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 Thinking, from baidu, has a 131,072-token context window and is priced by the provider serving it on OpenRouter.

Granite 4.0 Micro, from ibm-granite, has a 131,000-token context window and is priced at $0.017/M tokens input, $0.112/M tokens output on OpenRouter.

Context window
  • ERNIE 4.5 21B A3B Thinking: 131,072 tokens
  • Granite 4.0 Micro: 131,000 tokens
Price
  • ERNIE 4.5 21B A3B Thinking: Pricing varies by provider
  • Granite 4.0 Micro: $0.017/M tokens input, $0.112/M tokens output
Provided by
  • ERNIE 4.5 21B A3B Thinking: baidu
  • Granite 4.0 Micro: ibm-granite
model details, providers and pricing
model details, providers and pricing
ERNIE 4.5 21B A3B Thinking
Granite 4.0 Micro