Grok 2 mini

xAI chat Free

API ID: x-ai/grok-2-mini

Input Price
Free
/1M tokens
Output Price
Free
/1M tokens

About Grok 2 mini

Grok 2 Mini is xAI's efficient model, delivering Grok's distinctive personality and real-time knowledge in a faster, more affordable package. As the compact variant of Grok 2, it maintains the model's characteristic wit and helpfulness while optimizing for speed and cost. Grok 2 Mini excels at quick conversations, basic coding assistance, and general knowledge queries. It features real-time information access through X integration, keeping responses current with recent events. The model is ideal for high-volume applications and interactive experiences where response speed matters. Grok 2 Mini demonstrates that efficient models can still have personality, offering engaging interactions without the latency of larger models. For developers building conversational applications that benefit from Grok's unique style at scale, Grok 2 Mini provides accessible entry to xAI's ecosystem. It's particularly popular for chatbots and interactive assistants where character and speed both matter.

๐Ÿ†
Price Ranking
#1 lowest price among 950 Chat models โ€” Top 20% cheapest!

Model Specifications

Context Length
33k
Max Output
โ€”
Release Date
2024-10-12
Capabilities
chat
Input Modalities
text
Output Modalities
text

Best For

  • Conversations, content writing, general assistance

Consider Alternatives For

  • Image understanding (needs vision capability)
๐ŸŽ‰

This model is completely free!

No token costs - use it without worrying about API bills.

Estimate Token Usage

xAI Model Lineup

Compare all models from xAI to find the best fit

Model Input Output Context Capabilities
Grok 2 mini Current Free Free 33k chat
Grok 2 Vision 1212 Free Free 33k chat vision
Grok 2 Vision 1212 Free Free 33k chat vision
Grok Vision Beta Free Free 8k chat vision
Grok Vision Beta Free Free 8k chat vision
Grok 2 Free Free 33k chat

Similar Models from Other Providers

Cross-brand alternatives with similar capabilities

Google Gemma 3n 4B
Input: Free
Output: Free
Context: 33k
Meta Llama 3.2 3B Instruct
Input: Free
Output: Free
Context: 80k
Alibaba Qwen Qwen2.5-VL 7B Instruct
Input: Free
Output: Free
Context: 33k
ByteDance Seedream 4.5
Input: Free
Output: Free
Context: 4k

๐Ÿš€ Quick Start

Get started with Grok 2 mini 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-2-mini",
    messages=[
        {"role": "user", "content": "Hello!"}
    ]
)
print(response.choices[0].message.content)