Skip to content
  • Models
  • Rankings
  • Ori
Sign Up
Sign Up
OpenRouterOpenRouter
© 2026 OpenRouter, Inc

Product

  • Chat
  • Rankings
  • Benchmarks
  • Apps
  • Discover
  • Models
  • Collections
  • Providers
  • Pricing
  • Business
  • Enterprise
  • Labs

Company

  • About
  • Blog
  • Careers
    Hiring
  • Privacy
  • Terms of Service
  • Trust Center
  • Support
  • Works With OR
  • Data
  • Brand

Developer

  • Documentation
  • API Reference
  • Developer Platform
  • Status

Connect

  • Discord
  • GitHub
  • LinkedIn
  • X
  • YouTube
  1. Home
  2. /
  3. Compare

Granite 4.2 8B vs Grok 4.7

Compare Granite 4.2 8B from ibm-granite and Grok 4.7 from SpaceXAI on key metrics including benchmarks, price, context length, and other model features. Access both models and hundreds of others through the OpenRouter API.

Granite 4.2 8B vs Grok 4.7: side-by-side summary

Granite 4.2 8B and Grok 4.7 are available through the OpenRouter API, so switching between them takes a model slug change rather than a new integration.

Granite 4.2 8B, from ibm-granite, has a 131,072-token context window and is priced at $0.06/M tokens input, $0.25/M tokens output on OpenRouter.

Grok 4.7, from SpaceXAI, has a 500,000-token context window and is priced at $1.60/M tokens input, $4.80/M tokens output on OpenRouter.

Context window
  • Granite 4.2 8B: 131,072 tokens
  • Grok 4.7: 500,000 tokens
Price
  • Granite 4.2 8B: $0.06/M tokens input, $0.25/M tokens output
  • Grok 4.7: $1.60/M tokens input, $4.80/M tokens output
Provided by
  • Granite 4.2 8B: ibm-granite
  • Grok 4.7: SpaceXAI
Favicon for ibm-granite
Granite 4.2 8B
Favicon for x-ai
Grok 4.7
Favicon for ibm-granite
Granite 4.2 8B
Favicon for x-ai
Grok 4.7

Overview

Granite 4.2 8B
Author
ibm-granite
Grok 4.7
Author
SpaceXAI
Granite 4.2 8B
Context length
131Ktokens
Grok 4.7
Context length
500Ktokens
Granite 4.2 8B
Reasoning
Grok 4.7
Reasoning
Granite 4.2 8B
Input modalities
Grok 4.7
Input modalities
Granite 4.2 8B
Output modalities
Grok 4.7
Output modalities
model details, providers and pricing
model details, providers and pricing
Granite 4.2 8B
Grok 4.7