Price Per TokenPrice Per Token
OpenAI
OpenAI
vs
Xai
Xai

GPT-OSS-20b vs Grok 4

A detailed comparison of pricing, benchmarks, and capabilities

Get our weekly newsletter on pricing changes, new releases, and tools.

Join the Price Per Token Community

Key Takeaways

GPT-OSS-20b wins:

  • Cheaper input tokens
  • Cheaper output tokens
  • Faster response time

Grok 4 wins:

  • Larger context window
  • Higher intelligence benchmark
  • Better at coding
  • Better at math
Price Advantage
GPT-OSS-20b
Benchmark Advantage
Grok 4
Context Window
Grok 4
Speed
GPT-OSS-20b

Pricing Comparison

Benchmark Comparison

Context & Performance

Capabilities

Feature Comparison

FeatureGPT-OSS-20bGrok 4
Vision (Image Input)
Tool/Function Calls
Reasoning Mode
Audio Input
Audio Output
PDF Input
Prompt Caching
Web Search

License & Release

PropertyGPT-OSS-20bGrok 4
LicenseOpen SourceProprietary
AuthorOpenAIXai
ReleasedAug 2025Jul 2025

GPT-OSS-20b Modalities

Input
text
Output
text

Grok 4 Modalities

Input
imagetext
Output
text

Frequently Asked Questions

GPT-OSS-20b has cheaper input pricing at $0.03/M tokens. GPT-OSS-20b has cheaper output pricing at $0.10/M tokens.
Grok 4 scores higher on coding benchmarks with a score of 40.5, compared to GPT-OSS-20b's score of 18.5.
GPT-OSS-20b has a 131,072 token context window, while Grok 4 has a 256,000 token context window.
GPT-OSS-20b supports vision. Grok 4 supports vision.