MCode

Comparison · SWE-2.1

MAI Code 2 vs SWE-2.1

MAI Code 2 and SWE-2.1 are both coding models, and they are not the same product. MAI Code 2 is from Microsoft AI and is the model this API serves. SWE-2.1 is from Cognition, announced on November 24, 2026, and can be used in Devin. This site cannot call or host SWE-2.1.

What is SWE-2.1?

In short

  • Different makers: Microsoft AI for MAI Code 2, Cognition for SWE-2.1.
  • This API serves mai-code-2 and mai-code-2-flash. SWE-2.1 runs in Devin, not here.
  • Cognition says SWE-2.1 was trained with pure reinforcement learning on Kimi K3. That does not make it a MAI model or a Kimi chat.
  • There is no official public API or open weights for SWE-2.1. Do not send it as a model name to this API.
  • Where numbers appear, they are that vendor's own reported scores. The two models were not scored on one shared table.

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.

Frequently asked questions

Can this API route a request to SWE-2.1?

No. maicode2.com cannot call or host SWE-2.1.

Is SWE-2.1 a version of MAI Code 2?

No. They are models from different companies, served in different products.

Where do I use SWE-2.1?

In Devin. Desktop and CLI are the current surfaces Cognition documents; Devin Cloud is a preview.

Does training on Kimi K3 mean this site runs it?

No. Cognition says the training base was Kimi K3. The shipped model is SWE-2.1 in Devin. This API serves MAI Code 2, not Kimi and not SWE-2.1.

Sources

Updated 2026-11-27. MAI Code 2 API is an independent service and is not affiliated with or endorsed by Microsoft or GitHub. MAI, MAI Code 2 and MAI Code 2 Flash are names of Microsoft models, used here only to describe them. Model output can be wrong; review generated code before you run it.