# Devstral Medium Usage, Cost & Rank | OpenCode Data

> Devstral Medium costs $0.40 per 1M input tokens and $2.00 per 1M output tokens.

Mistral coding agent model for repository tasks and software engineering workflows

- Page: https://opencode.ai/data/mistral/devstral-medium-2507
- JSON: https://opencode.ai/data/mistral/devstral-medium-2507.json
- Model ID: mistral/devstral-medium-2507
- Lab: Mistral

## Model facts

| Fact | Value |
| --- | --- |
| Context window | 128K |
| Max output | 128K |
| Knowledge cutoff | 2025-05 |
| Release date | 2025-07-10 |
| Input modalities | text |
| Output modalities | text |
| Reasoning | No |
| Tool calling | Yes |
| Open weights | No |

## Pricing: USD per 1M tokens

| Input | Output | Cached input | Cache write |
| --- | --- | --- | --- |
| $0.40 | $2.00 | - | - |

## Benchmarks

| Benchmark | Score | Metric | Source |
| --- | --- | --- | --- |
| SWE-Bench Verified | 61.6 | resolved | https://mistral.ai/news/devstral-2507 |

## 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.
