Groq vs xAI

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

Groq logo
Groq
Groq API
$0.030/1M tokens
starting price
VS
xAI logo
xAI
Grok API
$1.25/1M tokens
starting price

Groq vs xAI at a glance

GroqxAI
Cheapest model Llama Prompt Guard 2 22M · $0.030 in / $0.030 out grok-build-0.1 · $1.00 in / $2.00 out
Top-tier model Qwen3.8-27B · $0.80 in / $4.00 out grok-4.7 · $2.00 in / $6.00 out
Models tracked 11 7
Prompt-caching discount No Yes
Category LLM API LLM API
Plans tracked 12 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

Groq

ModelPrice
GPT OSS 120B $0.15 in / $0.60 out
GPT OSS 20B $0.075 in / $0.30 out
Llama 4 Scout $0.11 in / $0.34 out
Llama 3.3 70B Versatile $0.59 in / $0.79 out
Llama 3.1 8B Instant $0.050 in / $0.080 out
Qwen3 32B $0.29 in / $0.59 out
Qwen/Qwen3.8-27B $0.80 in / $4.00 out
GPT OSS Safeguard 20B $0.075 in / $0.30 out
Qwen3.8 27B $0.80 in / $4.00 out
Safety GPT OSS 20B $0.075 in / $0.30 out
Llama Prompt Guard 2 22M $0.030 in / $0.030 out
Prompt Guard 2 86M $0.040 in / $0.040 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 Groq or xAI cheaper?

Groq has the cheaper entry model: Llama Prompt Guard 2 22M at a blended $0.030 per million tokens.

How current is this Groq 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