Back to comparator
x-ai

xAI: Grok 4

x-ai/grok-4

For $1, you can send approximately:
~7.94messages

How do we get this number?

One message = ~7,000 input tokens + ~7,000 output tokens
Input cost per message7,000 x $3.00/M = $0.021000
Output cost per message7,000 x $15.00/M = $0.105000
Total cost per message$0.126000
Messages for $17.94
Context window
256k
tokens
Max response
0
tokens
Input price
$3.00
per million tokens
Output price
$15.00
per million tokens

Modalities

Input:imageInput:textInput:fileOutput:text

Description

Grok 4 is xAI's latest reasoning model with a 256k context window. It supports parallel tool calling, structured outputs, and both image and text inputs. Note that reasoning is not...