xAI Grok API: models and pricing

FastMetal serves 3 xAI Grok models through one OpenAI-compatible API key, billed per token from a prepaid balance. Change the base URL and key, and existing code calls them as is. The list also shows xAI Grok models we do not serve yet.

Sort by:

14 models

Grok 4.7

grok-4.7

Grok 4.7 is SpaceXAI's flagship model for coding, agentic tasks, and knowledge work, succeeding Grok 4.6. It is particularly strong at long-running software engineering tasks, verifying its own work, and...

Provider:x-ai logox-ai
Pricing:$2.20 in · $6.60 out / 1M tokens
Context:500K tokens

Grok 4.6

grok-4.6

Grok 4.6 is SpaceXAI's smartest model with frontier performance on coding, knowledge work, and STEM.

Provider:x-ai logox-ai
Pricing:$2.20 in · $6.60 out / 1M tokens
Context:500K tokens

Grok 4.5

grok-4.5

Grok 4.5 is SpaceXAI's smartest model with frontier performance on coding, knowledge work, and STEM.

Provider:x-ai logox-ai
Pricing:$2.20 in · $6.60 out / 1M tokens
Context:500K tokens
Text Overall
#50

Grok 4.3

x-ai/grok-4.3

Grok 4.3 is a reasoning model from xAI. It accepts text and image inputs with text output, and is suited for agentic workflows, instruction-following tasks, and applications requiring high factual...

Provider:x-ai logox-ai
Pricing:Not on FastMetal yet
Context:1.0M tokens
Text Overall
#94

Grok 4.20

x-ai/grok-4.20

Grok 4.20 is a reasoning model from xAI with industry-leading speed and agentic tool calling capabilities. It combines the lowest hallucination rate on the market with strict prompt adherance, delivering...

Provider:x-ai logox-ai
Pricing:Not on FastMetal yet
Context:2.0M tokens

Grok 4.20 Multi-Agent

x-ai/grok-4.20-multi-agent

Grok 4.20 Multi-Agent is a variant of xAI’s Grok 4.20 designed for collaborative, agent-based workflows. Multiple agents operate in parallel to conduct deep research, coordinate tool use, and synthesize information...

Provider:x-ai logox-ai
Pricing:Not on FastMetal yet
Context:2.0M tokens

Grok 4.20 Beta

x-ai/grok-4.20-beta

Grok 4.20 Beta is xAI's newest flagship model with industry-leading speed and agentic tool calling capabilities. It combines the lowest hallucination rate on the market with strict prompt adherance, delivering consistently precise and truth…

Provider:x-ai logox-ai
Pricing:Not on FastMetal yet
Context:2.0M tokens

Grok 4.1 Fast

x-ai/grok-4.1-fast

Grok 4.1 Fast is xAI's best agentic tool calling model that shines in real-world use cases like customer support and deep research. 2M context window. Reasoning can be enabled/disabled using the `reasoning` `enabled` parameter in the API.

Provider:x-ai logox-ai
Pricing:Not on FastMetal yet
Context:2.0M tokens

Grok 4 Fast

x-ai/grok-4-fast

Grok 4 Fast is xAI's latest multimodal model with SOTA cost-efficiency and a 2M token context window. It comes in two flavors: non-reasoning and reasoning. Read more about the model on xAI's [news post](http://x.ai/news/grok-4-fast).

Provider:x-ai logox-ai
Pricing:Not on FastMetal yet
Context:2.0M tokens

Grok Code Fast 1

x-ai/grok-code-fast-1

Grok Code Fast 1 is a speedy and economical reasoning model that excels at agentic coding. With reasoning traces visible in the response, developers can steer Grok Code for high-quality work flows.

Provider:x-ai logox-ai
Pricing:Not on FastMetal yet
Context:256K tokens

Grok 4

x-ai/grok-4

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.

Provider:x-ai logox-ai
Pricing:Not on FastMetal yet
Context:256K tokens

Grok 3

x-ai/grok-3

Grok 3 is the latest model from xAI. It's their flagship model that excels at enterprise use cases like data extraction, coding, and text summarization. Possesses deep domain knowledge in finance, healthcare, law, and science.

Provider:x-ai logox-ai
Pricing:Not on FastMetal yet
Context:131K tokens

Grok 3 Mini

x-ai/grok-3-mini

A lightweight model that thinks before responding. Fast, smart, and great for logic-based tasks that do not require deep domain knowledge. The raw thinking traces are accessible.

Provider:x-ai logox-ai
Pricing:Not on FastMetal yet
Context:131K tokens

Grok 3 Mini Beta

x-ai/grok-3-mini-beta

Grok 3 Mini is a lightweight, smaller thinking model. Unlike traditional models that generate answers immediately, Grok 3 Mini thinks before responding.

Provider:x-ai logox-ai
Pricing:Not on FastMetal yet
Context:131K tokens
Text Overall
#206