ERNIE 4.0 is Baidu's most advanced model. Strong knowledge retrieval and factual accuracy. Great for enterprise knowledge management and Q&A systems.
| Provider | Baidu |
|---|---|
| Input Price | $0.42 per 1M tokens |
| Output Price | $0.84 per 1M tokens |
| Context Window | 128K tokens |
| AIWave Endpoint | ernie-4 |
curl https://aiwave.live/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{"model":"ernie-4","messages":[{"role":"user","content":"Hello!"}]}'