xAI API

Grok Build 0.1 API Pricing 2026 — Cost per 1 Million Tokens

Current Grok Build 0.1 API pricing from xAI per 1 million tokens, including input, output and cached-token rates when available.

ModelRatePrice / 1M tokens
Grok Build 0.1
xAI coding model for agentic software engineering and workflow tasks.
256K context · text/image input · reasoning, tools and structured output.
For requests at or above 200K context, xAI lists higher long-context rates; rows marked long-context show those prices.
Input — <200K context$1
Grok Build 0.1Cached input — <200K$0.2
Grok Build 0.1Output — <200K$2
Grok Build 0.1Input — ≥200K context$2
Grok Build 0.1Cached input — ≥200K$0.4
Grok Build 0.1Output — ≥200K$4

How API token cost is calculated

Multiply the number of tokens by the provider rate, then divide by 1,000,000.

cost = tokens × price per 1M ÷ 1,000,000

Example: 250,000 input tokens at $2 / 1M = $0.50.

AI Price History