Baidu

ERNIE 4.0

Estimated pricingMedium memory

ERNIE 4.0 is Baidu's medium-memory model. This page shows current pricing, an interactive cost calculator, and a side-by-side with similar models.

Input

$0.80/1M tokens

Output

$1.60/1M tokens

Cached

β€”

Batch

β€”

Interactive

Calculate your ERNIE 4.0 bill.

Adjust the workload below and watch the monthly cost update in real time.

What would ERNIE 4.0 cost you?

Adjust the workload to see your monthly bill.

1,00010,00050,000250,0001M10M

Technical specifications

ERNIE 4.0 at a glance.

Memory

128,000

tokens

Max reply

4,096

tokens

Memory tier

Medium

a long report or a codebase file

Tokenizer

default

Released

β€”

Training cutoff

β€”

Availability

Estimated

Status

active

What it can do

Capabilities & limits.

  • Understands images
  • Deep step-by-step thinking
  • Uses tools / calls functions
  • Strict JSON output
  • Streams replies
  • Fine-tunable on your data

When to pick ERNIE 4.0

  • High-volume workloads where unit cost matters.

When to look elsewhere

  • Your workload involves images β€” pick a vision-capable model instead.
  • You need tool-use / function calling for agent workflows.

FAQ

ERNIE 4.0 β€” the questions we see most.

Pricing, capabilities, alternatives β€” generated from the same data that powers the calculator above.

Get instant answers from our AI agent

At a typical workload of 50,000 conversations a month with 1,500-token prompts and 800-token replies, ERNIE 4.0 costs roughly $124 per month. Input is $0.80 /1M tokens and output is $1.60 /1M tokens.
ERNIE 4.0 has a 128,000-token context window (medium memory β€” a long report or a codebase file). That means you can fit about 24,000 words of input and history in a single call.
Models in a similar class include ERNIE 3.5, Claude 3.5 Haiku, Granite 20B. The "Similar models" section below this FAQ links into each.
Open-weight model β€” price from a common hosting provider (Together, Fireworks, Replicate). We source estimates from the cheapest public hosting provider for that model and note it on the page.

Still unsure?

Compare ERNIE 4.0 against 100+ other models.

Open the full wizard β€” pick a use case, set your usage, and see side-by-side monthly costs in under a minute.