xAI

Grok 2

Type
language model
Context
131K tokens
Max output
4K
API string
vercel_ai_gateway/xai/grok-2

Prices by provider

Provider Input, $ per 1M Output, $ per 1M In our data since
vercel_ai_gateway $2 $10 31 Jul 2026
xAI $2 $10 31 Jul 2026

Only the base tier and only per-token prices are shown. Batch, discounted and cached rates, as well as prices per image or per second of video, do not go into this table: they cannot stand in the same column as a price per million tokens.

The date in the last column is the day this price first entered our collection. The price may well be older: before that day we simply were not recording it. It has not changed since — otherwise a new row with a new date would stand in its place.

Measurement results

Task set Result Run conditions Measured by
Arena Score in English 1,320.85 1,316–1,325 — —
Arena Score in French 1,316.38 1,290–1,343 — —
Arena Score, overall 1,304.74 1,301–1,308 — —
Arena Score, multi-turn dialogue 1,290.23 1,283–1,297 — —
Arena Score, programming 1,287.94 1,281–1,295 — —
Arena Score in Russian 1,284.86 1,277–1,293 — —
Arena Score, creative writing 1,284.69 1,277–1,292 — —
Arena Score, mathematics 1,283.2 1,276–1,290 — —
Arena Score in Spanish 1,280.27 1,256–1,305 — —
Arena Score, long queries 1,276.53 1,269–1,284 — —
Arena Score, hard prompts 1,272.35 1,267–1,278 — —
Arena Score, instruction following 1,270.36 1,265–1,275 — —
Arena Score, expert questions 1,253.28 1,242–1,264 — —