xai | litellm

xai/grok-code-fast

$1.00 per million input tokens and $2.00 per million output tokens, context 256K.

Published terms

Provider
xai
Source
litellm
Input / 1M
$1.00
Output / 1M
$2.00
Cache read / 1M
$0.20
Context window
256K
Max output
256K
Parameters
not declared
License
not declared

Cost at the default workload

Blended / 1M
$1.25
Reference request
$0.009000 (8,000 in / 500 out)
Break-even at n/a/day
n/a

Memory and badges

No open-weight architecture is declared for this model, so the simulator reports cost and break-even without a VRAM estimate.

price per million tokens for xai/grok-code-fastcontext window for xai/grok-code-fastlast sync date for xai/grok-code-fast

Embed the badges

![price per 1M](https://llmcostledger.github.io/badges/grok-code-fast.svg) ![context](https://llmcostledger.github.io/badges/grok-code-fast-context.svg)

Sources and API

Prices are read from the OpenRouter model list and the LiteLLM model_prices_and_context_window file; when both declare a model, the LiteLLM record wins. Every field on this page is also available as JSON.

curl https://llmcostledger.github.io/api/v1/models/grok-code-fast.json