XA

Grok 4

by xAIWebsite
reasoningcodinggeneral

Input

$3.00/MTok

Output

$15.00/MTok

Cached Input

$0.75/MTok

with caching

Specifications

Context Window

256K context

Max Output

131.1K tokens

Caching

Supported

Batch API

No

Vision

Supported

Tool Use

Supported

Cost Examples

Single chat message

500 input + 300 output tokens

$0.0060/request

Code review

5,000 input + 2,000 output tokens

$0.04/request

Document summary

50,000 input + 1,000 output tokens

$0.17/request

100 requests/day

1,000 input + 500 output × 30 days

$31.50/month

Compare Grok 4

See how Grok 4 stacks up against Claude Sonnet 4.6 and Claude Sonnet 4.5.