Lightweight, ultra-fast reasoning model for high-throughput utility tasks
grok-2-mini| Scenario | Input Tokens | Output Tokens | Uncached Cost | With Prompt Caching |
|---|---|---|---|---|
| Short Chat Query | 1,000 | 500 | $0.00070 | N/A |
| Document Summarization | 10,000 | 2,000 | $0.00400 | N/A |
| Codebase & Context Analysis | 100,000 | 20,000 | $0.0400 | N/A |
| Batch Corpus Processing | 1,000,000 | 100,000 | $0.3000 | N/A |
Ideal for production workloads demanding budget capabilities, deep context depth (128k tokens), and reliability from xAI. Excellent when predictable tokenomics and prompt caching support are paramount.
If your use-case requires sub-second streaming latency or ultra-high frequency classification at micro-cent pricing, consider lighter budget options such as Gemini Flash-Lite or Claude Haiku. For deep formal logic, consider dedicated reasoning models like o3.
For Grok 2 mini, 1 million input tokens costs $0.20, while 1 million output tokens costs $1.00. If using prompt caching, repetitive input prefixes are discounted to $0.20 per million.
Grok 2 mini features a maximum context window of 131,072 tokens (~98,304 words), with a maximum output limit of 8,192 tokens per completion.
Grok 2 mini utilizes the xAI Byte-level BPE (~131k vocabulary). Token counting on TokenMath runs client-side to ensure maximum privacy.
No, Grok 2 mini does not currently advertise prompt caching discounts on its standard API tier.