Where each model runs
The practical difference is which product will accept a request.
- MAI Code 2: GitHub Copilot, Microsoft Foundry where you have preview access, and this API as mai-code-2.
- MAI Code 2 Flash: the faster Microsoft tier, served here as mai-code-2-flash.
- SWE-2.1: Devin Desktop and Devin CLI. Devin's docs call Devin Cloud a preview through December 22, 2026. Not served on maicode2.com.
What each company says
Microsoft positions MAI Code 2 as a low-cost coding model for everyday development and for agents that edit code over many steps. MAI Code 2 Flash is the faster, cheaper tier of that release.
Cognition describes SWE-2.1 as a major upgrade over SWE-2, trained with pure reinforcement learning on Kimi K3. In Cognition's own table, SWE-2.1 scores 50.0 on Terminal-Bench 4.1 and 41.3 on FrontierCode 2.0. Microsoft reported MAI Code 2 on a different benchmark set, so this page does not turn those figures into a head-to-head winner.
What you can call here
A call to this API can name mai-code-2 or mai-code-2-flash. It cannot name SWE-2.1. There is no playground preset and no model id on this site for SWE-2.1.
This site cannot call or host SWE-2.1. Use Devin for SWE-2.1, and use this API only for MAI Code 2 and MAI Code 2 Flash.