# o4-mini Usage, Cost & Rank | OpenCode Data

> o4-mini costs $1.10 per 1M input tokens and $4.40 per 1M output tokens.

Fast o-series model for compact reasoning, coding, and tool use

- Page: https://opencode.ai/data/openai/o4-mini
- JSON: https://opencode.ai/data/openai/o4-mini.json
- Model ID: openai/o4-mini
- Lab: OpenAI

## Model facts

| Fact | Value |
| --- | --- |
| Context window | 200K |
| Max output | 100K |
| Knowledge cutoff | 2024-05 |
| Release date | 2025-04-16 |
| Input modalities | text, image |
| Output modalities | text |
| Reasoning | Yes |
| Tool calling | Yes |
| Open weights | No |

## Pricing: USD per 1M tokens

| Input | Output | Cached input | Cache write |
| --- | --- | --- | --- |
| $1.10 | $4.40 | $0.28 | - |

## Benchmarks

| Benchmark | Score | Metric | Source |
| --- | --- | --- | --- |
| Aider Polyglot | 72 | percent correct | https://aider.chat/docs/leaderboards/ |

## Methodology

- Updates: Aggregated every hour. Days and weeks use UTC.
- Tokens: Input, output, reasoning, and cached tokens for each request.
- Users and sessions: Approximate counts of distinct users and OpenCode sessions.
- Cost: Session cost is the average cost per OpenCode session. Token prices are list prices from the OpenCode model catalog.
- Retention: The share of a model's users in one week who use it again the next week.
- Citation: Cite OpenCode Data (opencode.ai/data) with the update time shown at the top of the page.
