Grok Code Fast 1

Provider: xAI US

No longer listed on OpenRouter since 2026-05-15. The figures below are the last recorded values.
Input price
$0.20
/ 1M tokens
Output price
$1.50
/ 1M tokens
Cache price
$0.02
/ 1M tokens (read)
Context
256K tokens
Max output 10K tokens

Overview

Grok Code Fast 1 is a specialized model from xAI, engineered for sophisticated coding and structured generation workloads. It positions itself as a reasoning specialist, offering a substantial context window and supporting key capabilities like function-calling and JSON mode.

Strengths

  • Excellent large context window of 256,000 tokens, suitable for extensive codebases.
  • Native support for function-calling, streamlining integration with external tools and APIs.
  • Reliable JSON mode for structured data generation and consistent API interactions.
  • Advanced 'thinking' capability, implying strong logical problem-solving and reasoning.
  • Cost-effective cache read operations at an efficient $0.02 per million tokens.

Best use cases

  • Generating and refactoring code for complex software projects requiring large context.
  • Automating API calls and tool orchestration with native function-calling support.
  • Extracting and transforming structured data from technical documents using JSON mode.
  • Debugging and analyzing extensive codebases, leveraging its 'thinking' capability.
  • Developing intelligent agents requiring both long context and structured responses for development tasks.

Pricing position

Grok Code Fast 1 offers a competitive input price of $0.20 per million tokens, aligning with other xAI Fast models and several similarly-priced peers. However, its output price of $1.50 per million tokens is notably higher than its xAI siblings like Grok 4.1/4 Fast ($0.50/M) and most comparable models, though still more economical than Grok Build 0.1.

Caveats

This model does not offer a free tier, which might impact initial experimentation and development budgets. Its output pricing of $1.50 per million tokens is comparatively high, making it potentially less economical for applications with verbose outputs or high token generation needs. For general-purpose tasks or those requiring context windows beyond 256,000 tokens, xAI's flagship Grok 4.1/4 Fast models with 2 million tokens might be more suitable.

Notes drafted by an LLM from the figures on this page (2026-05-21) and rewritten when the price changes.

Key facts

Max output
10K tokens
Tracked since
2026-05-08
Last updated
2026-05-15

Features

Function callingJSON outputReasoning

Price history

  • 2026-05-15 No longer listed

Monthly cost estimate

Scale Input (M) Output (M) Monthly
0.1M (hobby) 0.1 0.05 $0.10
1M (small app) 1 0.5 $0.95
10M (mid scale) 10 5 $9.50
100M (large) 100 50 $95.00

※ Cache and batch discounts not factored in. Detailed calculator

Official resources

Other models from xAI

Similar-priced models

Source: OpenRouter API