gpt-oss-20b vs Grok 4.6
gpt-oss-20b (OpenAI, August 2025) and Grok 4.6 (xAI, August 2026), compared on price, context window, access and specs. gpt-oss-20b is the cheaper API at $0.018 in and $0.09 out per million tokens, about 83× less than Grok 4.6 on a typical 3:1 input-to-output mix. Grok 4.6 reads more at once: a 500K-token context window against 131K. gpt-oss-20b has open weights, so you can also run it on your own hardware.
Updated 5 December 2026 · read each row across; the best value in a row is marked
At a glance
- Tasks
Language modeling
Language generation
Question answering
Language modeling
Language generation
Question answering
- Released
- 5 August 2025
- 12 August 2026
- Access
- Open weights (unrestricted)
- API access
- Country
- United States of America
- United States of America
Price and API
- Input, per 1M tokens
- $0.018on Hugging FaceLowest
- $2.00on xAI
- Output, per 1M tokens
- $0.09on Hugging FaceLowest
- $6.00on xAI
- Where to run it
- Hugging FaceDeepInfraAmazon BedrockGroqAll 6 providersMost choice
- xAIGoogle Vertex AIAmazon BedrockAzure AI FoundryAll 5 providers
- Official API id
- Not listed
xai/grok-4.6- Context window
- 131K tokens
- 500K tokensLargest
- Max output
- 131K tokens
- 500K tokensLargest
- Takes
- Text
- Text, Image, PDF
- Returns
- Text
- Text
- Knowledge cutoff
- June 2024
- February 2026
- Supports
- ReasoningTool callingStructured outputOpen weights
- ReasoningTool callingStructured outputFile input
Scale and training
- Parameters
- 21B20,910,000,000
- 1.5T1,500,000,000,000Largest
- Training compute
- 5.5 × 10²³ FLOP
- Not listed
- Training hardware
- NVIDIA H100 SXM5 80GB
- Not listed
- Confidence
- Confident
- Confident
Notes
- Parameters
- Total parameters: 20.91B
- Per Elon Musk, this is a 1.5T parameter model, presumably meaning total parameters. Grok 4.6 is almost certainly a sparse mixture of experts model with much fewer active parameters than total. https://x.com/elonmusk/status/2082123925283041545?s=20
- Training compute
- "The training run for gpt-oss-120b required 2.1 million H100-hours to complete, with gpt-oss-20b needing almost 10x fewer" assuming "almost 10x fewer" means ~9x fewer: 4.94e24/9 = 5.49e23
- Not listed
- Dataset size
- (pretraining FLOPs)/(6*3.6B active parameters)
- Not listed
In their own words
- Abstract
- Not listed
Today we are releasing Grok 4.6. Grok 4.6 builds on Grok 4.5 with a particular focus on long-running agents and more ambitious interactive and visual work. It stays with complex tasks across many steps, whether researching a topic, analyzing information, working across a codebase, or turning an idea into a polished application or work artifact. Grok 4.6 achieves frontier intelligence across several agentic coding and knowledge work benchmarks. It matches GPT-5.6 Sol on the Artificial Analysis Intelligence Index, which is a composite score of nine benchmarks.Read all
Which should you pick?
- High-volume or budget workloads
- gpt-oss-20b · Lowest list price: $0.018 in and $0.09 out per million tokens via Hugging Face.
- Long documents, codebases or transcripts
- Grok 4.6 · 500K tokens of context, 3.8× more than gpt-oss-20b.
- Long answers in one response
- Grok 4.6 · Up to 500K output tokens per response.
- Self-hosting or fine-tuning
- gpt-oss-20b · Open weights: you can download them and run them on your own GPUs.
- Reading images and screenshots
- Grok 4.6 · Accepts image input through the API.
Questions people ask
Is gpt-oss-20b better than Grok 4.6?
It depends on the job. For high-volume or budget workloads, gpt-oss-20b has the edge: lowest list price: $0.018 in and $0.09 out per million tokens via Hugging Face. For long documents, codebases or transcripts, Grok 4.6 has the edge: 500K tokens of context, 3.8× more than gpt-oss-20b. For long answers in one response, Grok 4.6 has the edge: up to 500K output tokens per response. Try them on your own prompts in the AIPortalX playground before you commit.
Which is cheaper: gpt-oss-20b or Grok 4.6?
gpt-oss-20b: $0.018 in and $0.09 out per million tokens at Hugging Face. Grok 4.6 starts at $2.00 in and $6.00 out per million tokens. These are list prices from the cheapest provider we track, and they change often.
Which has the bigger context window?
Grok 4.6, with 500K tokens; gpt-oss-20b takes 131K. A larger window lets one request hold longer documents or conversations.
Where can I use gpt-oss-20b and Grok 4.6 through one API?
Amazon Bedrock and OpenRouter serve all of them, so you can switch models without opening another account.
When were they released?
gpt-oss-20b in August 2025 and Grok 4.6 in August 2026.