# Devstral 2 123B

> Mistral Devstral 2 123B model for coding and software engineering agent tasks.

Agent resources: the index of everything machine-readable is https://www.ohmygpt.com/llms.txt; the integration skill (endpoints, auth, SDK and coding-tool setup) is https://www.ohmygpt.com/skill.md.

- Model ID: `mistral/devstral-2-123b`
- Status: available
- Released: 2024-12-01
- Context: 256K tokens
- Max output: 8K tokens
- Input: text; output: text

## Prices (USD)

| Item | Price | Unit |
| --- | --- | --- |
| Input | $0.44 | per 1M tokens |
| Output | $2.20 | per 1M tokens |

## Providers

Without a prefix each request goes to the best-priced healthy provider. To pin one, send the model as `<provider>:mistral/devstral-2-123b`.

| Provider | Pinned model ID | Location | Input | Output | Trains on your data |
| --- | --- | --- | --- | --- | --- |
| Amazon Bedrock | `bedrock:mistral/devstral-2-123b` | United States | $0.44 | $2.20 | no |

## Endpoints

| API | Request | model |
| --- | --- | --- |
| OpenAI Chat | POST https://api.ohmygpt.com/v1/chat/completions | `mistral/devstral-2-123b` |
| OpenAI Responses | POST https://api.ohmygpt.com/v1/responses | `mistral/devstral-2-123b` |
| Anthropic Messages | POST https://api.ohmygpt.com/v1/messages | `mistral/devstral-2-123b` |
| Google Gemini | POST https://api.ohmygpt.com/v1/models/mistral/devstral-2-123b:generateContent | `mistral/devstral-2-123b` |

## Example

```bash
curl https://api.ohmygpt.com/v1/chat/completions \
  -H "Authorization: Bearer $OHMYGPT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "mistral/devstral-2-123b",
    "messages": [
      {
        "role": "user",
        "content": "Hello"
      }
    ]
  }'
```

Web page: https://www.ohmygpt.com/models/mistral/devstral-2-123b
