Grok 4 Fast

xAI chatvisionreasoningtool_use Long

API ID: x-ai/grok-4-fast

Input Price
$0.20
/1M tokens
Output Price
$0.50
/1M tokens

About Grok 4 Fast

Grok 4 represents xAI's frontier model, pushing the boundaries of AI capability while maintaining the distinctive Grok personality. The model delivers exceptional performance on complex reasoning, coding, and creative tasks, competing with the best models available. Grok 4 features advanced reasoning capabilities, extended context handling, and real-time knowledge access through X integration. It demonstrates strong performance on challenging benchmarks and excels at tasks requiring deep analytical thinking. For users seeking maximum AI capability with Grok's engaging style, Grok 4 offers xAI's most powerful offering. It's particularly valuable for demanding applications in research, development, and creative work.

๐Ÿ’ฐ
Price Ranking
#389 lowest price among 599 Chat models

Model Specifications

Context Length
2.0M
Max Output
30k
Release Date
2025-09-19
Capabilities
chat vision reasoning tool_use
Input Modalities
textimage
Output Modalities
text

Best For

  • Complex reasoning, math problems, multi-step logic
  • Image analysis, document understanding, visual Q&A
  • Conversations, content writing, general assistance

Consider Alternatives For

  • Simple Q&A (cheaper models available)

๐Ÿ’ฐ Real-World Cost Examples

Estimated monthly costs for common use cases

Personal AI Assistant
$0.24
/month
50 conversations/day, ~500 tokens each
Customer Service Bot
$7.50
/month
1000 tickets/day, ~800 tokens each
Data Analysis Pipeline
$10.50
/month
500 analyses/day, ~2k tokens each

xAI Model Lineup

Compare all models from xAI to find the best fit

Model Input Output Context Capabilities
Grok 4 Fast Current $0.20 $0.50 2.0M chat vision reasoning tool_use
Grok 2 Vision 1212 Free Free 33k chat vision
Grok Vision Beta Free Free 8k chat vision
Grok 2 Free Free 33k chat
Grok 2 mini Free Free 33k chat
Grok 2 1212 Free Free 131k chat

Similar Models from Other Providers

Cross-brand alternatives with similar capabilities

Meta Llama 3 70B Instruct
Input: $0.30
Output: $0.40
Context: 8k
Baidu ERNIE 4.5 VL 28B A3B
Input: $0.14
Output: $0.56
Context: 30k
Other Lumimaid v0.2 8B
Input: $0.09
Output: $0.60
Context: 33k
Alibaba Qwen Qwen3 235B A22B Thinking 2507
Input: $0.11
Output: $0.60
Context: 262k

๐Ÿš€ Quick Start

Get started with Grok 4 Fast API

OpenAI-compatible SDK
from openai import OpenAI

client = OpenAI(
    base_url="https://api.provider.com/v1",
    api_key="YOUR_API_KEY"
)

response = client.chat.completions.create(
    model="x-ai/grok-4-fast",
    messages=[
        {"role": "user", "content": "Hello!"}
    ]
)
print(response.choices[0].message.content)