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.0 Micro vs GPT-5.1-Codex

Compare Granite 4.0 Micro from ibm-granite and GPT-5.1-Codex from OpenAI on key metrics including benchmarks, price, context length, and other model features. Access both models and hundreds of others through the OpenRouter API.

Favicon for ibm-granite
Granite 4.0 Micro
Favicon for openai
GPT-5.1-Codex
Favicon for ibm-granite
Granite 4.0 Micro
Favicon for openai
GPT-5.1-Codex

Overview

Granite 4.0 Micro
Author
ibm-granite
GPT-5.1-Codex
Author
OpenAI
Granite 4.0 Micro
Context length
131Ktokens
GPT-5.1-Codex
Context length
400Ktokens
Granite 4.0 Micro
Reasoning
GPT-5.1-Codex
Reasoning
Granite 4.0 Micro
Input modalities
GPT-5.1-Codex
Input modalities
Granite 4.0 Micro
Output modalities
GPT-5.1-Codex
Output modalities

Granite 4.0 Micro vs GPT-5.1-Codex: side-by-side summary

Granite 4.0 Micro and GPT-5.1-Codex are available through the OpenRouter API, so switching between them takes a model slug change rather than a new integration.

Granite 4.0 Micro, from ibm-granite, has a 131,000-token context window and is priced at $0.017/M tokens input, $0.112/M tokens output on OpenRouter.

GPT-5.1-Codex, from OpenAI, has a 400,000-token context window and is priced at $1.25/M tokens input, $10/M tokens output on OpenRouter.

Context window
  • Granite 4.0 Micro: 131,000 tokens
  • GPT-5.1-Codex: 400,000 tokens
Price
  • Granite 4.0 Micro: $0.017/M tokens input, $0.112/M tokens output
  • GPT-5.1-Codex: $1.25/M tokens input, $10/M tokens output
Provided by
  • Granite 4.0 Micro: ibm-granite
  • GPT-5.1-Codex: OpenAI
  • model details, providers and pricing
Granite 4.0 Micro
model details, providers and pricing
GPT-5.1-Codex