Back to Models

Baidu ERNIE 4.5 Turbo (128K)

baidubaidu/ernie-4.5-turbo-128k

Baidu ERNIE 4.5 Turbo โ€” flagship reasoning model with 128K context.

ERNIE 4.5 Turbo (128K) is Baidu's efficient, cost-optimised text model in the ERNIE 4.5 family, open-sourced June 30, 2025 under Apache 2.0. It corresponds to the ERNIE-4.5-21B-A3B variant โ€” a 21B-total-parameter MoE with 3B active parameters per token. Despite its smaller active footprint relative to the flagship 300B-A47B, the Turbo variant inherits the same heterogeneous MoE pre-training pipeline built on PaddlePaddle and the same 128K context window.

For TheRouter operators, ERNIE 4.5 Turbo is the practical entry point into the ERNIE 4.5 generation for latency-sensitive or high-volume Chinese-language workloads. At $0.12 / $0.48 per 1M tokens (input / output), it sits significantly below its sibling baidu/ernie-4.5 in cost while sharing the same OpenAI-compatible API surface. It is well-suited to general Chinese Q&A, instruction-following agents, and structured-output tasks that do not require the full parameter budget of the 300B flagship.

Best for
  • โ€ข High-volume Chinese-language Q&A and instruction-following at cost-optimised rates.
  • โ€ข Structured-output and function-calling agents in Chinese where per-call cost matters more than maximum accuracy.
  • โ€ข Routing complement to baidu/ernie-4.5: soft-route simpler Chinese queries to Turbo and escalate complex ones to the 300B flagship.
Reach for something else if
  • โ€ข Top-tier Chinese reasoning or hard knowledge tasks โ€” use baidu/ernie-4.5 (300B-A47B) for maximum benchmark coverage.
  • โ€ข English-first code generation or reasoning chains โ€” DeepSeek-V3 or Qwen3 variants offer better measured throughput for those workloads.

How TheRouter serves this differently from the vendor

As the vendor operates it

Baidu's own Qianfan platform serves ERNIE 4.5 Turbo via its proprietary REST API and SDK, with pricing in CNY (0.0008 / 0.0032 per 1K tokens input / output as of 2026-07-29). The vendor API uses a different authentication scheme and endpoint structure from OpenAI. Context window is 128K; max output is 8K per the vendor model card.

On TheRouter

TheRouter exposes ERNIE 4.5 Turbo as an OpenAI-compatible /v1/chat/completions endpoint under model id baidu/ernie-4.5-turbo-128k. Pricing is converted from CNY at the FX rate recorded in standard-models.yaml ($0.12 input / $0.48 output per 1M tokens as of 2026-07-29). Authentication uses the standard Bearer token scheme. Supported parameters (temperature, max_tokens, top_p, tools, tool_choice, response_format, stop) are taken from the live TheRouter catalog and are a subset of Qianfan's native capability surface.

Context Length
131K
Max Output
8K
Input Priceper 1M tokens
$0.1296/ 1M tokens
Output Priceper 1M tokens
$0.5184/ 1M tokens

Modalities

textโ†’text

Pricing Breakdown

TypeRate
Input$0.1296 / 1M tokens
Output$0.5184 / 1M tokens

Supported Parameters

temperaturemax_tokenstop_ptoolstool_choiceresponse_formatstop

Specifications

Release date2025-06-30 (open source)ernie.baidu.com โ†—verified
Architecture21B total / 3B active MoE (heterogeneous modality)huggingface.co โ†—verified
Context window128K tokensgithub.com โ†—verified
LicenseApache 2.0 (weights & code)ernie.baidu.com โ†—verified
Training cutoffNot publicly disclosedunknown
Inference backendsFastDeploy (PaddlePaddle), SGLang, vLLM; FP8/BF16/INT4/INT2; NVIDIA + AMD + Huawei Ascendgithub.com โ†—verified

Benchmarks

BenchmarkDistributionScoreSource
C-Eval
ERNIE-4.5-21B-A3B-Base reported as competitive against same-class models on Chinese general knowledge; exact per-variant figures not publicly isolated from the 300B results in official release.
โ€”Not publicly disclosedโ€”
MMLU
Baidu reports the 21B-A3B variant as highly competitive given its total parameter size (~70% of Qwen3-30B). No isolated MMLU figure published for the Turbo variant.
โ€”Not publicly disclosedโ€”
CMMLU
The ERNIE 4.5 family leads or matches GPT-4.5-class models on Chinese multitask understanding. Per-variant Turbo figures are not separately published; the 21B-A3B base pre-training uses the same data pipeline as the larger 300B-A47B.
โ€”Not publicly disclosedโ€”

API Usage Examples

Use the global api.therouter.ai endpoint shown below for new integrations; the legacy China accelerated endpoint is retired.

cURL
curl https://api.therouter.ai/v1/chat/completions   -H "Content-Type: application/json"   -H "Authorization: Bearer $THE_ROUTER_API_KEY"   -d '{
    "model": "baidu/ernie-4.5-turbo-128k",
    "messages": [
      {"role": "user", "content": "Summarize the key points from this input."}
    ]
  }'

Chat completion

cURL
curl https://api.therouter.ai/v1/chat/completions \
  -H "Authorization: Bearer $THEROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"baidu/ernie-4.5-turbo-128k","messages":[{"role":"user","content":"่ฏท็ฎ€่ฆไป‹็ปไธ€ไธ‹ๆททๅˆไธ“ๅฎถๆจกๅž‹๏ผˆMoE๏ผ‰็š„ไผ˜ๅŠฟใ€‚"}]}'

More from baidu

Similar models

Cross-provider sibling models

News & changes

2025-06-30

Baidu open-sources ERNIE 4.5 family including the Turbo (21B-A3B) variant

Baidu released all 10 variants of ERNIE 4.5 under Apache 2.0, including the efficient ERNIE-4.5-21B-A3B (Turbo) model. The release bundles the ERNIEKit training toolkit and FastDeploy inference engine. The 21B-A3B variant targets high-throughput and cost-conscious deployments while retaining the same 128K context as the full family.

re-authored by TheRouterernie.baidu.com โ†—

Frequently asked

What is the difference between ERNIE 4.5 Turbo and the baidu/ernie-4.5 flagship?

ERNIE 4.5 Turbo is the ERNIE-4.5-21B-A3B variant โ€” 21B total parameters with 3B active per token โ€” while the flagship (baidu/ernie-4.5) is the 300B-A47B variant. Turbo delivers faster throughput and lower cost at the expense of some accuracy headroom on hard reasoning and knowledge tasks. Both share the same 128K context window, Apache 2.0 license, and OpenAI-compatible API.

Can I self-host ERNIE 4.5 Turbo?

Yes. Weights are published on Hugging Face (baidu/ERNIE-4.5-21B-A3B-Paddle). FastDeploy (PaddlePaddle) provides production-grade PD-disaggregation and 4-bit/2-bit quantization. The model also runs via SGLang and vLLM through community recipes.

Is ERNIE 4.5 Turbo good for English tasks?

It handles English well enough for general tasks, but it is optimised for Chinese-language use cases and benchmarks. For English-first workloads โ€” especially code generation or complex reasoning โ€” models like DeepSeek-V3 or Qwen3 variants typically offer better measured performance at comparable prices.

Fact ledger โ€” every claim on this page traces here
sourceURLretrieved
Release dateernie.baidu.com โ†—2026-08-19verified
Architecturehuggingface.co โ†—2026-08-19verified
Context windowgithub.com โ†—2026-08-19verified
Licenseernie.baidu.com โ†—2026-08-19verified
Training cutoffโ€”โ€”unknown
Inference backendsgithub.com โ†—2026-08-19verified
C-Evalernie.baidu.com โ†—2026-08-19unknown
MMLUgithub.com โ†—2026-08-19unknown
CMMLUernie.baidu.com โ†—2026-08-19unknown
Baidu open-sources ERNIE 4.5 family including the Turbo (21B-A3B) varianternie.baidu.com โ†—2026-08-19verified
What is the difference between ERNIE 4.5 Turbo and the baidu/ernie-4.5 flagship?ernie.baidu.com โ†—2026-08-19to verify
Can I self-host ERNIE 4.5 Turbo?huggingface.co โ†—2026-08-19to verify
Is ERNIE 4.5 Turbo good for English tasks?ernie.baidu.com โ†—2026-08-19to verify
Help & contact