Models/xAI

xAI

xAI models, pricing, and protocols

8 currently available models with pricing synced from the MoleAPI console.

8 models

Compare
X
grok-4.7-70%

Grok 4.7 supports coding, agent tasks and knowledge work, with text and image input, configurable reasoning and a 500K-token context window.

View model
defaultx1
base
Input$2 / 1M tokens
Output$6 / 1M tokens
Cache read$0.5 / 1M tokens
discountx0.8
base
Input$1.6 / 1M tokens
Output$4.8 / 1M tokens
Cache read$0.4 / 1M tokens
relayx0.3
base
Input$0.6 / 1M tokens
Output$1.8 / 1M tokens
Cache read$0.15 / 1M tokens
openaiOpenAI compatiblePrompt cacheCompare
X
grok-4.6-70%

grok-4.6 · Language model for conversation, writing and summarization.

View model
defaultx1
base
Input$2 / 1M tokens
Output$6 / 1M tokens
Cache read$0.5 / 1M tokens
discountx0.8
base
Input$1.6 / 1M tokens
Output$4.8 / 1M tokens
Cache read$0.4 / 1M tokens
relayx0.3
base
Input$0.6 / 1M tokens
Output$1.8 / 1M tokens
Cache read$0.15 / 1M tokens
openaiOpenAI compatiblePrompt cacheCompare
X
grok-4.5-70%Official profile verified

Grok 4.5 is xAI's flagship model for code and general tasks, with agentic tool calling and configurable reasoning.

View model
defaultx1
base
Input$2 / 1M tokens
Output$6 / 1M tokens
Cache read$0.5 / 1M tokens
discountx0.8
base
Input$1.6 / 1M tokens
Output$4.8 / 1M tokens
Cache read$0.4 / 1M tokens
relayx0.3
base
Input$0.6 / 1M tokens
Output$1.8 / 1M tokens
Cache read$0.15 / 1M tokens
AA index 54openaiOpenAI compatiblePrompt cacheCompare
X

Grok model by xAI for general chat, writing, coding assistance, and tool-assisted workflows.

defaultx1
base
Input$1.25 / 1M tokens
Output$2.5 / 1M tokens
Cache read$0.2 / 1M tokens
openaiOpenAI compatiblePrompt cacheCompare
X
grok-4

Grok model by xAI for general chat, writing, coding assistance, and tool-assisted workflows.

defaultx1
base
Input$3 / 1M tokens
Output$15 / 1M tokens
Cache read$0.75 / 1M tokens
openaiOpenAI compatiblePrompt cacheCompare
X

grok-4-20-non-reasoning · Language model for conversation, writing and summarization.

defaultx1
Input$75 / 1M tokens
Output$75 / 1M tokens
openaiOpenAI compatibleReasoningCompare
X

grok-4-20-reasoning · Language model for conversation, writing and summarization.

defaultx1
Input$75 / 1M tokens
Output$75 / 1M tokens
openaiOpenAI compatibleReasoningCompare
X

Grok model by xAI for general chat, writing, coding assistance, and tool-assisted workflows.

defaultx1
base
Input$1 / 1M tokens
Output$2 / 1M tokens
Cache read$0.2 / 1M tokens
openaiOpenAI compatiblePrompt cacheCompare