Back to Models

xAI: Grok Code Fast 1

x-ai/grok-code-fast-1
Aug 26, 2025256K context10K max output$0.20/M in · $1.50/M outReasoningDeprecates 2026-05-15

Upcoming deprecation

This model will be deprecated on 2026-05-15. Please plan to migrate to an alternative model before this date.

Description

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.

Specifications

Provider
x-ai
Context Length
256K
Max Output
10K
Modality
Intext
Outtext

Pricing

TypePrice / 1M tokens
Input$0.20
Output$1.50
Cache Read$0.02
Web Search$0.0050 / call

Quick Start

curl https://api.ominigate.ai/v1/chat/completions \
  -H "Authorization: Bearer sk-omg-your-api-key" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "x-ai/grok-code-fast-1",
    "messages": [{"role": "user", "content": "Hello!"}]
  }'
xAI: Grok Code Fast 1 — Pricing & API on OminiGate