OpenAI vs xAI

LLM API pricing compared on live data, plan by plan.

OpenAI logo
OpenAI
OpenAI API
$0.20/1M tokens
starting price
VS
xAI logo
xAI
Grok API
$1.25/1M tokens
starting price

OpenAI vs xAI at a glance

OpenAIxAI
Cheapest model gpt-6-luna · $0.10 in / $0.50 out grok-build-0.1 · $1.00 in / $2.00 out
Top-tier model gpt-6-cyber · $20.00 in / $100.00 out grok-4.7 · $2.00 in / $6.00 out
Models tracked 11 7
Prompt-caching discount Yes Yes
Category LLM API LLM API
Plans tracked 11 7

Green marks the lower price.

Prices last checked November 8, 2026 · re-checked twice a week from official pricing pages and APIs · How we collect prices

Every plan, side by side

OpenAI

ModelPrice
gpt-6-astra $10.00 in / $50.00 out
gpt-6.1-sol $2.00 in / $10.00 out
gpt-6-luna $0.10 in / $0.50 out
gpt-5.6-sol $4.00 in / $20.00 out
gpt-5.6-cyber $12.50 in / $75.00 out
gpt-realtime-2.1 $4.00 in / $24.00 out
gpt-realtime-2.1-mini $0.60 in / $2.40 out
chat-latest $5.00 in / $30.00 out
gpt-6.1-terra $1.00 in / $5.00 out
gpt-5.3-codex $1.75 in / $14.00 out
gpt-6-cyber $20.00 in / $100.00 out

xAI

ModelPrice
grok-4.7 $2.00 in / $6.00 out
grok-4.6 $2.00 in / $6.00 out
grok-4.5 $2.00 in / $6.00 out
grok-4.3 $1.25 in / $2.50 out
grok-4.20-0309-reasoning $1.25 in / $2.50 out
grok-4.20-0309-non-reasoning $1.25 in / $2.50 out
grok-build-0.1 $1.00 in / $2.00 out

Related comparisons

Frequently asked questions

Is OpenAI or xAI cheaper?

OpenAI has the cheaper entry model: gpt-6-luna at a blended $0.20 per million tokens.

How current is this OpenAI vs xAI comparison?

Both providers' prices come from CloudMart's live catalog, last checked November 8, 2026. The page is rebuilt from current data on every visit.

Not sure which option fits your workload?

Describe your project and the Planner picks the provider, sizes it, and estimates the monthly bill.

Plan my stack →
✦
CloudMart AI Compute
Answers from live pricing data
✦
What are you building?
Compare providers, estimate costs, or get a recommendation - answers come from CloudMart's live dataset, never made-up prices.
Enter to send · Shift+Enter for a new line
Compare:
Report a problem