xAI Grok API vs Baidu ERNIE API
LLM API Providers pricing comparison · 2026
xAI Grok API pricing ranges from $0.2–$30/per million tokens, while Baidu ERNIE API ranges from $0.1–$10/per million tokens. Baidu ERNIE API is typically 67% more affordable, though your actual cost depends on tier and team size.
VS
xAI Grok API and Baidu ERNIE API both operate in the llm api providers category. This page compares their list pricing.
Plan-by-Plan Pricing
| Plan | xAI Grok API | Baidu ERNIE API |
|---|---|---|
| Pay-as-you-go (Grok 4, Grok 4 fast, Grok Code Fast) | Custom | Custom |
| Enterprise | Custom | Custom |