Compute Comparison
xAI/Grok CodeEfficient

grok-code-fast-1

codingspeedcost
grok-code-fast-1 Pricing per 1M tokens
Input$0.200
Output$1.50
View xAI
Context Window
256K
tokens
grok-code-fast-1 Max Output
16K
tokens
grok-code-fast-1 Throughput
190
tokens/sec
grok-code-fast-1 Latency P50
350ms
time to first token
About grok-code-fast-1

grok-code-fast-1 is a efficient-tier language model from xAI. grok-code-fast-1 is a proprietary model available exclusively through xAI's API. Grok is xAI's model family, known for a large context window and reasoning capability across its model generations.

grok-code-fast-1 is priced at $0.2/1M input tokens and $1.5/1M output tokens. Output tokens are 7.5× more expensive than input tokens — this ratio reflects the sequential nature of autoregressive generation, which requires a separate forward pass per output token versus parallel processing of all input tokens simultaneously. At a typical usage pattern of 1,000 input tokens and 500 output tokens per call, grok-code-fast-1 costs approximately $0.95 per 1,000 API calls. xAI does not publish a prompt caching rate for this model, so repeated long contexts are billed at the standard $0.2/1M input rate.

Its 256K-token context window is in the top tier for production models, enabling full-document analysis, long multi-turn conversations, and large codebase understanding without chunking. Median latency (P50 time-to-first-token) is approximately 350ms — suitable for interactive applications where sub-second response is acceptable. Throughput is approximately 190 tokens/second — fast enough to stream responses at reading speed with headroom for concurrent requests. Maximum output length is 16K tokens — sufficient for long-form content generation, detailed code files, and extended reports.

grok-code-fast-1 is best suited to coding, speed, cost. Supported capabilities include vision inputs (images alongside text), function calling / tool use for agentic workflows, streaming token output for real-time UIs. Vision support enables document analysis, screenshot understanding, diagram interpretation, and visual question answering — images are converted to tokens at the standard input rate based on resolution. Function calling support makes it suitable for building AI agents, structured data extraction pipelines, and any workflow requiring the model to invoke external APIs or return typed JSON. When evaluating this model for a specific workload, the most important factors are: context window (does your input fit?), output price (how long are your generations?), and latency (is this interactive or batch?). The pricing table above shows how grok-code-fast-1 compares to similar models across these dimensions.

grok-code-fast-1 sits in the efficient tier — optimized for speed and cost while maintaining solid quality, ideal for high-volume or latency-sensitive workloads. Unlike open-weights alternatives, grok-code-fast-1 is only available via xAI's API — there is no self-hosted option, which simplifies deployment but creates vendor dependency. When comparing grok-code-fast-1 to alternatives, use the similar models section on this page to find models at comparable price points with different capability tradeoffs. The intelligence score (82/100) reflects aggregate benchmark performance — a useful proxy for general capability, though real-world performance varies significantly by task type. Always test with your specific prompts and use case before committing to a model for production.

grok-code-fast-1 Intelligence Score
82/100
82

Composite quality score based on reasoning, coding, and instruction-following benchmarks.

grok-code-fast-1 Pricing vs Efficient Tier
CheapestThis modelMost expensive
$0.030$0.200$1.50

Input price vs 217 efficient models tracked. Avg: $0.321/1M.

grok-code-fast-1 Capabilities
Vision / Images✓
Function Calling✓
Streaming✓
Prompt Caching✗
Reasoning / CoT✗
Open Weights✗
Computer Use✗
Web Search✗
grok-code-fast-1 Full Specifications
Model IDgrok-code-fast-1
ProviderxAI
Model FamilyGrok Code
TierEfficient
Context Window256,000 tokens (256K)
Max Output Tokens16,384 tokens
Input Price$0.2 / 1M tokens
Output Price$1.5 / 1M tokens
Cached Input PriceNot available
Throughput190 tokens/sec
Latency (P50)350ms
Intelligence Score82/100
LiveBench Score—
Cost per Task (LiveBench)—
Data Confidence—
HLE Score—
GPQA Diamond—
SWE-bench Score—
OSWorld Score—
BrowseComp Score—
Terminal-Bench Score—
AutoBench Score—
Parameters—
Vision SupportYes
Function CallingYes
StreamingYes
Reasoning ModelNo
Open WeightsNo
Data SourceStatic (verified)
Last Updated2026-07-01

Similar Models by Intelligence Score

grok-code-fast-1 Frequently Asked Questions