OpenAI vs xAI Pricing Comparison
Full API pricing breakdown, model lineups, and category coverage.
Category Breakdown
| Provider | flagship | reasoning | balanced | efficient |
|---|---|---|---|---|
| OpenAI | 9 | 10 | 0 | 8 |
| xAI | 1 | 2 | 0 | 2 |
All Models & Pricing
OpenAI
Provider details →| Model | Category | Input | Output | Context |
|---|---|---|---|---|
| GPT-5 nano | efficient | $0.05/1M | $0.40/1M | 128,000 |
| GPT-4.1 nano | efficient | $0.10/1M | $0.40/1M | 128,000 |
| GPT-4o mini | efficient | $0.15/1M | $0.60/1M | 128,000 |
| GPT-5.4 nano | efficient | $0.20/1M | $1.25/1M | 128,000 |
| GPT-4.1 mini | efficient | $0.40/1M | $1.60/1M | 200,000 |
| GPT-5 mini | efficient | $0.25/1M | $2.00/1M | 500,000 |
| GPT-5.4 mini | efficient | $0.75/1M | $4.50/1M | 1,050,000 |
| o4-mini | reasoning | $1.10/1M | $4.40/1M | 2,000,000 |
| o3-mini | reasoning | $1.10/1M | $4.40/1M | 500,000 |
| o1-mini | reasoning | $1.10/1M | $4.40/1M | 128,000 |
| Codex Mini | efficient | $1.50/1M | $6.00/1M | 200,000 |
| o4-mini Deep Research | reasoning | $2.00/1M | $8.00/1M | 200,000 |
| GPT-4.1 | flagship | $2.00/1M | $8.00/1M | 200,000 |
| o3 | reasoning | $2.00/1M | $8.00/1M | 1,000,000 |
| GPT-5.1 | flagship | $1.25/1M | $10.00/1M | 1,000,000 |
| GPT-5 | flagship | $1.25/1M | $10.00/1M | 1,000,000 |
| GPT-4o | flagship | $2.50/1M | $10.00/1M | 128,000 |
| GPT-5.2 | flagship | $1.75/1M | $14.00/1M | 1,000,000 |
| GPT-5.3 Codex | coding | $1.75/1M | $14.00/1M | 256,000 |
| GPT-5.4 | flagship | $2.50/1M | $15.00/1M | 1,050,000 |
| GPT-4 Turbo | flagship | $10.00/1M | $30.00/1M | 128,000 |
| o3 Deep Research | reasoning | $10.00/1M | $40.00/1M | 200,000 |
| o1 | reasoning | $15.00/1M | $60.00/1M | 200,000 |
| o3-pro | reasoning | $20.00/1M | $80.00/1M | 1,000,000 |
| GPT-5 Pro | flagship | $15.00/1M | $120.00/1M | 200,000 |
| GPT-5.2 pro | reasoning | $21.00/1M | $168.00/1M | 1,000,000 |
| GPT-5.4 Pro | reasoning | $30.00/1M | $180.00/1M | 1,050,000 |
| o1 Pro | flagship | $150.00/1M | $600.00/1M | 200,000 |
| Model | Category | Input | Output | Context |
|---|---|---|---|---|
| Grok 4.1 Fast | efficient | $0.20/1M | $0.50/1M | 2,000,000 |
| Grok 3 Mini | efficient | $0.30/1M | $0.50/1M | 128,000 |
| Grok Code Fast 1 | standard | $0.20/1M | $1.50/1M | 256,000 |
| Grok 4.20 | reasoning | $2.00/1M | $6.00/1M | 2,000,000 |
| Grok 4 | reasoning | $3.00/1M | $15.00/1M | 256,000 |
| Grok 3 | flagship | $3.00/1M | $15.00/1M | 131,072 |
Cross-Provider Model Matchups
Browse all model comparisons →OpenAI vs xAI
Codex Mini vs Grok 4.20
efficient · reasoning
OpenAI vs xAI
Codex Mini vs Grok 4
efficient · reasoning
OpenAI vs xAI
Codex Mini vs Grok 4.1 Fast
efficient · efficient
OpenAI vs xAI
Codex Mini vs Grok Code Fast 1
efficient · standard
OpenAI vs xAI
Codex Mini vs Grok 3
efficient · flagship
OpenAI vs xAI
Codex Mini vs Grok 3 Mini
efficient · efficient
OpenAI vs xAI
o4-mini Deep Research vs Grok 4.20
reasoning · reasoning
OpenAI vs xAI
o4-mini Deep Research vs Grok 4
reasoning · reasoning
OpenAI vs xAI
o4-mini Deep Research vs Grok 4.1 Fast
reasoning · efficient
OpenAI vs xAI
o4-mini Deep Research vs Grok Code Fast 1
reasoning · standard
OpenAI vs xAI
o4-mini Deep Research vs Grok 3
reasoning · flagship
OpenAI vs xAI
o4-mini Deep Research vs Grok 3 Mini
reasoning · efficient
Showing 12 of 168 matchups between OpenAI and xAI.
Get started with OpenAI
Sign Up for OpenAI →Get started with xAI
Sign Up for xAI →Frequently Asked Questions
Which provider is cheaper on average, OpenAI or xAI?▼
On average, xAI has lower combined input + output rates. Compare model-specific pricing to match your workload.
What is the cheapest model across OpenAI and xAI?▼
GPT-5 nano (OpenAI) is the lowest-cost option at $0.05 input and $0.40 output per million tokens.
Which model is the most expensive between these providers?▼
o1 Pro (OpenAI) is the highest-cost model in this comparison at $150.00 input and $600.00 output per million tokens.
Which provider has more models available?▼
OpenAI offers more models in this dataset.