↑↓ move↵ openesc close

Overage / Compare / LLM APIs

AI21 Labs vs xAI API pricing

Verified 2026-10-23 (2 days ago)Source: AI21 Labs: www.ai21.com/pricing, xAI API: docs.x.ai/docs/modelsVerified shows the older of the two.

Monthly cost at three volumes

Monthly cost of AI21 Labs and xAI API at three volumes and at your own
VolumeAI21 LabsxAI API
small1M input, 200K output$0.28 / moJamba Mini$3.20 / mogrok-4.7
growing50M input, 10M output$14 / moJamba Mini$160 / mogrok-4.7
scale1B input, 200M output$280 / moJamba Mini$3,200 / mogrok-4.7
your volumeset above$14 / moJamba Mini$160 / mogrok-4.7

Each cell is the cheapest feasible plan, or the chosen model, at that volume, from the shared Overage cost function. "Cheapest model" only considers models with both an input and an output price listed. Volumes are example scenarios you can edit.

Cheapest model per service, USD per 1M tokens

Cheapest priced model of each service
ServiceCheapest modelInputOutputModels listed
AI21 LabsJamba Mini$0.20$0.402
xAI APIgrok-4.7$2$61

Every model

Every model of both services, USD per 1M tokens
ModelServiceInputOutput
Jamba MiniAI21 Labs$0.20$0.40
Jamba LargeAI21 Labs$2$8
grok-4.7xAI API$2$6

Models are compared by name and price, never by position. Pick one model per service, or "Cheapest model", in the cost table above.

Tiers, aligned by position

Tiers of AI21 Labs and xAI API aligned by position: free, entry, mid, top
PositionAI21 LabsxAI API
Free$0 onceFree Trialno tier
EntryunlistedPay As You Gono tier
Midno tierno tier
TopContact salesCustom Planno tier

Tightest rate limit

Tightest documented rate limit of each service
MeasureAI21 LabsxAI API
Tightest limitunlistedunlisted

Changes in the last 90 days

No changes recorded.

No change detected for either service in the last 90 days.