Baidu's ERNIE 4.0 is one of China's most widely deployed AI models.
Pricing
| Model | Input (1M tokens) | Output (1M tokens) |
|---|---|---|
| ERNIE 4.0 | $0.55 | $0.55 |
| ERNIE-3.5 | $0.20 | $0.20 |
| DeepSeek V4 Pro | $0.14 | $0.28 |
| GLM-5 | $0.14 | $0.14 |
| GPT-4o | $2.50 | $10.00 |
Python Quick Start
from openai import OpenAI
client = OpenAI(base_url="https://aiwave.live/v1", api_key="***")
response = client.chat.completions.create(
model="ernie-4.0",
messages=[{"role": "user", "content": "Explain ERNIE features."}]
)
ERNIE 4.0, DeepSeek V4, GLM-5, Kimi K2.5, and Qwen3 are all available through one API key.
Full guide: https://aiwave.live/blog/ernie-4-api-guide
Top comments (0)