Model Comparison

ERNIE 4.5 vs GPT-5.1 Codex

Comparing ERNIE 4.5 and GPT-5.1 Codex across benchmarks, pricing, and capabilities.

Performance Benchmarks

Comparative analysis across standard metrics

No common benchmarks found

ERNIE 4.5 and GPT-5.1 Codex don't have any common benchmark datasets to compare. They may have been evaluated on different testing suites.

Arena Performance

Human preference votes

Pricing Analysis

Price comparison per million tokens

ERNIE 4.5 costs less

For input processing, ERNIE 4.5 ($0.40/1M tokens) is 3.1x cheaper than GPT-5.1 Codex ($1.25/1M tokens).

For output processing, ERNIE 4.5 ($4.00/1M tokens) is 2.5x cheaper than GPT-5.1 Codex ($10.00/1M tokens).

In conclusion, GPT-5.1 Codex is more expensive than ERNIE 4.5.*

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

Lowest available price from all providers
Fri Apr 17 2026 • llm-stats.com
Baidu
ERNIE 4.5
Input tokens$0.40
Output tokens$4.00
Best providerNovita
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 ERNIE 4.5's 128,000 tokens. GPT-5.1 Codex can generate longer responses up to 128,000 tokens, while ERNIE 4.5 is limited to 65,536 tokens.

Baidu
ERNIE 4.5
Input128,000 tokens
Output65,536 tokens
OpenAI
GPT-5.1 Codex
Input400,000 tokens
Output128,000 tokens
Fri Apr 17 2026 • llm-stats.com

Input Capabilities

Supported data types and modalities

GPT-5.1 Codex supports multimodal inputs, whereas ERNIE 4.5 does not.

GPT-5.1 Codex can handle both text and other forms of data like images, making it suitable for multimodal applications.

ERNIE 4.5

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.

ERNIE 4.5

Proprietary

Closed source

GPT-5.1 Codex

Proprietary

Closed source

Release Timeline

When each model was launched

ERNIE 4.5 was released on 2025-06-25, while GPT-5.1 Codex was released on 2025-11-19.

GPT-5.1 Codex is 5 months newer than ERNIE 4.5.

ERNIE 4.5

Jun 25, 2025

9 months ago

GPT-5.1 Codex

Nov 19, 2025

4 months ago

4mo newer

Knowledge Cutoff

When training data ends

GPT-5.1 Codex has a documented knowledge cutoff of 2024-09-30, while ERNIE 4.5's cutoff date is not specified.

We can confirm GPT-5.1 Codex's training data extends to 2024-09-30, but cannot make a direct comparison without ERNIE 4.5's cutoff date.

ERNIE 4.5

GPT-5.1 Codex

Sep 2024

Provider Availability

ERNIE 4.5 is available from Novita. GPT-5.1 Codex is available from OpenAI.

ERNIE 4.5

novita logo
Novita
Input Price:Input: $0.40/1MOutput Price:Output: $4.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

Key Takeaways

Less expensive input tokens
Less expensive output tokens
Larger context window (400,000 tokens)
Supports multimodal inputs

Detailed Comparison

AI Model Comparison Table
Feature
Baidu
ERNIE 4.5
OpenAI
GPT-5.1 Codex

FAQ

Common questions about ERNIE 4.5 vs GPT-5.1 Codex

ERNIE 4.5 (Baidu) 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.
ERNIE 4.5 scores GPQA: 74.0%, ARC-E: 60.7%, PIQA: 55.2%, Winogrande: 51.3%, CLUEWSC: 48.6%. GPT-5.1 Codex scores SWE-Bench Verified: 73.7%, SWE-Lancer: 66.3%, Terminal-Bench 2.0: 52.8%.
ERNIE 4.5 is 3.1x cheaper for input tokens. ERNIE 4.5 costs $0.40/M input and $4.00/M output via novita. GPT-5.1 Codex costs $1.25/M input and $10.00/M output via openai.
ERNIE 4.5 supports 128K 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.
Key differences include context window (128K vs 400K), input pricing ($0.40 vs $1.25/M), multimodal support (no vs yes). See the full comparison above for benchmark-by-benchmark results.
ERNIE 4.5 is developed by Baidu and GPT-5.1 Codex is developed by OpenAI.