MAI-Code-1-Flash
MAI-Code-1-Flash is worth evaluating for coding, rag, and agents when its provider route and context window match the workload.
Use it for
- Teams evaluating coding, rag, and agents
- Workloads that can use a 256k context window
- Buyers comparing 1 tracked provider route
Do not use it for
- Vision or document-understanding workloads
- Family
- MAI
- Released
- 2026-06-02
- Context
- 256k
- Specialization
- code
- Openness
- Proprietary
- License
- ProprietaryCommercial use: conditional
- Weights
- Not released
- Code
- Unknown
- Training
- Fine-tuned
Cheapest of 1 route · Microsoft Foundry · cache read $0.075
About
MAI-Code-1-Flash is Microsoft AI's lightweight agentic coding model built directly inside GitHub Copilot's production harness. It is designed for fast everyday developer workflows, adaptive thinking by task complexity, multi-turn instruction following, and token-efficient coding. Microsoft reports 51.2% on SWE-bench Pro versus 35.2% for Claude Haiku 4.5 in the same Copilot harness, plus stronger results on SWE-bench Verified, SWE-bench Multilingual, and Terminal-Bench 2.0 without publishing exact scores for those secondary benchmarks.
MAI-Code-1-Flash is a proprietary model in the MAI family. The structured metadata tracks a 256k-token context window, reasoning, and tool use. This page tracks provider routes through Microsoft Foundry, with the cheapest tracked route listed at $0.75 input and $4.5 output per 1M tokens. Headline tracked benchmarks include SWE-bench Pro 51.2, Google-Proof Q&A 84.6, and SWE-bench Verified 71.6.
Top use-case fit: coding, agents, and build tasks
Coding
Q/$ D2 relevant benchmarks in the decision map.
RAG
Included by capability and metadata signals in the decision map.
Agents
Q/$ C1 relevant benchmark in the decision map.
Provider price ladder
Compare API pricing across 1 providers for input and output tokens, batch, and cached reads when available.
| Provider | Input / 1M | Output / 1M | Cache | Route |
|---|---|---|---|---|
| Microsoft Foundry | $0.750 | $4.50 | read $0.075 | Serverless |
Available via routers & gateways(5)
LiteLLM
GatewayOpen-source Python SDK and proxy server that unifies 100+ LLM APIs behind a single OpenAI-compatible interface, with load balancing, cost tracking, and configurable failover.
Portkey
GatewayProduction AI gateway routing to 1,600+ LLMs with failover, load balancing, semantic caching, and guardrails; Apache 2.0 core is fully self-hostable with the complete feature set.
Azure AI Foundry Model Router
RouterMicrosoft Azure AI Foundry's native model router that uses a trained ML model to route each prompt in real time to the optimal Azure-hosted model, with Balanced/Cost/Quality mode selection and automatic failover.
Helicone
GatewayObservability-first AI gateway with routing, caching, rate limiting, and request tracing; Apache 2.0 open-source core with a managed hosted tier for logging and analytics.
Kong AI Gateway
GatewayMulti-LLM AI gateway built on Kong Gateway 3.x, adding semantic routing, load balancing, guardrails, and MCP traffic analytics as plugins over Kong's existing API management platform.
Capabilities
Benchmark peer barsfor Coding
Benchmark scores(4)
| Benchmark | Score | Version | Source |
|---|---|---|---|
| SWE-bench Pro | 51.2 | GitHub Copilot production harness | https://microsoft.ai/news/introducingmai-code-1-flash/ |
| Google-Proof Q&A | 84.6 | GPQA Diamond (accuracy) | https://llm-stats.com/benchmarks/gpqa |
| SWE-bench Verified | 71.6 | SWE-bench Verified (resolved) | https://llm-stats.com/benchmarks/swe-bench-verified |
| Terminal-Bench 2.0 | 54.8 | Terminal-Bench 2.0 (accuracy%) | https://llm-stats.com/benchmarks/terminal-bench-2 |
Migration checks
No linked migration route is available for this model yet.
Rankings & picks(1)
Comparison and alternatives
Browse all comparisons →Frequently asked questions
What is the context window of MAI-Code-1-Flash?
MAI-Code-1-Flash has a context window of 256k tokens.
How much does MAI-Code-1-Flash cost?
MAI-Code-1-Flash is available at $0.75/1M input tokens through Microsoft Foundry.
When was MAI-Code-1-Flash released?
MAI-Code-1-Flash was released on 2026-06-02.
Which providers offer MAI-Code-1-Flash?
MAI-Code-1-Flash is available from 1 provider: Microsoft Foundry.
What benchmarks has MAI-Code-1-Flash been tested on?
MAI-Code-1-Flash has been evaluated on 4 benchmarks, including SWE-bench Pro, Google-Proof Q&A, SWE-bench Verified, Terminal-Bench 2.0.
Cheapest of 1 route · Microsoft Foundry · cache read $0.075