Baidu

ERNIE 5.1 API pricing

Made by Baidu

1 provider route, checked 27 Nov 2026. For a sample chat workload, the cheapest is Aihubmix at $642.28 a month.

Input from
$0.563
Output from
$2.54
Context up to
119K tokens
Batch rates
None listed

Every route, cheapest first

Prices per 1M tokens. Month is the sample workload: 300,000 requests, 2,000 tokens in and 400 out per request, half the input cached. Cache writes are not counted.

ProviderInputOutputCache readCache writeBatch in / outContextMonth
AihubmixLiteLLM$0.563$2.54$0.563——119K$642.28

Other ERNIE models