Grok 4

xAI

Next-generation xAI model with enhanced reasoning and coding capability. Competes with Claude Opus and o3 Pro tier.

Context Window: 256K tokens Released: 2025-09 Best For: Complex reasoning, advanced coding, enterprise applications
  • Enhanced reasoning
  • Advanced coding
  • Real-time knowledge
  • Grok 4 Pricing

    Token TypePrice per Million
    Input tokens$5.00
    Output tokens$25.00

    Estimated Cost by Project Size

    Realistic cost estimates for common coding scenarios. Assumes 30% cache hit rate where caching is available.

    ScenarioToken UsageEstimated Cost
    Small Script (1K lines) 50K input / 30K output $0.93
    Medium Feature (10K lines) 500K input / 200K output $6.75
    Large Project (50K lines) 2,500K input / 1,000K output $33.75
    Code Review (5K lines) 250K input / 25K output $1.50

    Get Access to Grok 4

    Ready to start using Grok 4? Get API access directly from xAI.

    Get API Access →

    How Does Grok 4 Compare?

    ModelInput ($/M)Medium Feature Cost
    Grok 4 $5.00 $6.75 selected
    Qwen 3 Max $5.00 $5.75 Compare
    Grok 3 Vision $5.00 $5.75 Compare
    Claude Sonnet 4 $3.00 $4.66 Compare
    Claude 3.5 Sonnet $3.00 $4.66 Compare
    Claude 3 Sonnet $3.00 $4.05 Compare

    Related Models

    Categories