# Granite 4.0 Micro vs GPT-5.1-Codex-Mini

Source: https://openrouter.ai/compare/ibm-granite/granite-4.0-h-micro/openai/gpt-5.1-codex-mini

## Overview

| Attribute | Granite 4.0 Micro | GPT-5.1-Codex-Mini |
| --- | --- | --- |
| Author | ibm-granite | OpenAI |
| Reasoning | No | Yes |
| Input modalities | Text | Image, Text |
| Output modalities | Text | Text |
| Input price | Pricing varies by provider | $0.25/M tokens |
| Output price | Pricing varies by provider | $2/M tokens |
| Context window | 8,192 tokens | 400,000 tokens |
| Openness Index | 55.6 | Not available |
| Multilingual Index | Not available | 85.0% |
| Latency (p50) | Not available | 2.74 s |
| Throughput (p50) | Not available | 57.0 tok/s |

## Granite 4.0 Micro or GPT-5.1-Codex-Mini: which should you choose?

### Choose GPT-5.1-Codex-Mini for:

- a longer context window (400,000 vs 8,192 tokens)

Granite 4.0 Micro does not lead on any comparison both models report.

## Benchmark differences

| Benchmark | Granite 4.0 Micro | GPT-5.1-Codex-Mini | Difference |
| --- | --- | --- | --- |
| Multilingual Index | Not available | 85.0% | Not available |

## Model pages

- [Granite 4.0 Micro](https://openrouter.ai/ibm-granite/granite-4.0-h-micro) ([llms.txt](https://openrouter.ai/ibm-granite/granite-4.0-h-micro/llms.txt))
- [GPT-5.1-Codex-Mini](https://openrouter.ai/openai/gpt-5.1-codex-mini) ([llms.txt](https://openrouter.ai/openai/gpt-5.1-codex-mini/llms.txt))
