ERNIE 4.5 API

ERNIE 4.5 excels in multilingual reasoning, cost-efficient inference, and flexible integration for enterprise and research applications.
Output

How to use ERNIE 4.5 API

Install any OpenAI-compatible SDK, point it at api.aimlapi.com/v1, and set the model to .

OpenAI-compatible — swap the base URL and it works with your existing SDK.

ERNIE 4.5 API Pricing

TypePrice
Input
Output

ERNIE 4.5 vs other models

ModelInputOutputContextBest for
ERNIE 4.5
This page
$6.5 / 1M tokens
$39 / 1M tokens
1.05M tokens
Reasoning + agents
$2.6 / 1M tokens
$13 / 1M tokens
1M tokens
Balanced coding + agents
$3.9 / 1M tokens
$19.5 / 1M tokens
1M tokens
Long-context, multimodal & agentic workflows
$0.65 / 1M tokens
$3.9 / 1M tokens
1.05M tokens
Reasoning + agents

Frequently asked questions

Yes, ERNIE 4.5 can stream responses as they are generated.

Yes, ERNIE 4.5 supports both function calling and structured outputs.

ERNIE 4.5 was built by Baidu.

Start building with ERNIE 4.5

Get API Key
1000+ models, one API.