MAI 2 Code is Microsoft's language model with a 128K context window, starting at $0.5 / 1M input and $2.50 / 1M output. Microsoft AI coding-focused language model served through the responses API.
Capabilities
Input1/5
Text·
Image✓
Audio·
Video·
PDF·
Output1/5
Text✓
Image·
Audio·
Video·
Embedding·
Capabilities4/13
Reasoning✓
Adaptive Reasoning·
Function Calling✓
Parallel Function Calling✓
Structured Outputs✓
Native JSON Schema·
Web Search·
URL Context·
Computer Use·
Code Execution·
File Search·
Prompt Caching·
Assistant Prefill·
Pricing by Provider
US Dollar ($)
Per 1M tokens
| Provider | Standard | ||
|---|---|---|---|
| Input $ / 1M | Output $ / 1M | Cache Read $ / 1M | |
| $0.5 | $2.50 | $0.025 | |
Cost Calculator
US Dollar ($)
Preset:
Versions
| Version | Released | Context | Input / 1M | Output / 1M | Status |
|---|---|---|---|---|---|
| MAI 2.7 Flash Image | — | $1.75 | $10.00 | Available | |
| MAI 2.7 Image | — | $5.00 | $34.00 | Available | |
| MAI Image 2.6 | 32K | $5.00 | $38.00 | Deprecating | |
| MAI Image 2.6 Flash | 32K | $1.75 | $19.00 | Deprecating | |
| MAI Transcribe 2 Streaming | — | — | — | Available | |
| MAI Voice 2.1 | — | $22.00 | — | Available | |
| MAI Voice 2.1 Flash | — | $15.00 | — | Available | |
| MAI Transcribe 2 | — | — | — | Available | |
| MAI Voice 2 Flash | — | $15.00 | — | Available | |
| MAI Voice 2 | — | $22.00 | — | Available | |
| MAI 2 Code | — | 128K | $0.500 | $2.50 | Current |