Blog

GPT-6 Luna vs MAI Code 2 Flash: we tested them with our code

We gave the same feature to GPT-6 Luna and MAI Code 2 Flash. It was a serious task in a Laravel, PHP, and TypeScript repository with a highly custom architecture. Flash finished first, followed the project rules, and did not get stuck in loops. This is not a benchmark: it is what happened during a normal workday.

Francisco Gaona

Francisco Gaona

Founder and technical lead

This is not a benchmark. We did not build a laboratory or run hundreds of tasks through five models. We did what every team does when a new model appears: give it real work and see whether it makes life easier or harder.

Until now, we used GPT-6 Luna in GitHub Copilot for daily work. It is inexpensive and it gets the job done. But Microsoft released MAI Code 2 Flash, which competes in the same price range, and we put it to work.

For now, Flash is the one staying.

First, what they cost

These are the GitHub Copilot prices in dollars per million tokens:

Model Input Cached input Output
GPT-6 Luna $0.10 $0.01 $0.50
MAI Code 2 Flash (promotion) $0.05 $0.005 $0.25
MAI Code 2 Flash (final price) $0.10 $0.01 $0.50
MAI Code 2 (promotion) $0.50 $0.025 $2.50
MAI Code 2 (final price) $1.00 $0.05 $5.00

The MAI promotion lasts until May 17, 2027. (docs.github.com)

In short, Flash costs half as much as Luna per token right now. When the promotion ends, they cost the same. MAI Code 2 is in another league: at the final price, input and output cost ten times more than Luna.

The test: a substantial feature

The project

We have an internal Instagram carousel generator built with Laravel, PHP, and TypeScript. Other AI models use it through MCP: they request a carousel, the generator builds it, and returns the result.

We do not use a conventional architecture. This is not a textbook Laravel app with controllers, models, and services that let the framework lead the way. We use vertical slices and a project-specific core, with our own conventions and rules.

That changes a lot for an AI model. In a textbook Laravel project, it can rely on patterns it has seen thousands of times on GitHub. In ours, it has to read the code, understand how the system is organized, and follow the project rules. You notice immediately if it does not.

The task

The model using the generator worked blind: it requested a carousel, received a result, and had no clear way to know what came out. It could not review or correct anything.

The feature we requested was exactly this: teach the generator to show the model what it is doing so that the model can review the result and iterate.

This was not a button-style change. It required changes to the generator logic, the MCP layer, and the format of the returned information, while respecting an architecture the model had not seen before.

Configuration

We gave both models the same task, in the same repository, with the same project rules:

  • GPT-6 Luna with High reasoning.
  • MAI Code 2 Flash with Max reasoning.

What happened

Flash finished first, despite using Max

Flash had maximum reasoning and Luna had High. On paper, Flash should have been slower. It was not: it finished before Luna. Not because it wrote faster, but because it did not go around in circles. It read what it needed, changed what needed changing, and stopped.

It followed the architecture

This was the biggest difference. Flash followed the project rules more closely and stayed within the way we organize slices and the core.

A model that ignores your rules saves five minutes on implementation and costs twenty minutes in review. With a custom architecture, the cost is higher because every shortcut “the usual Laravel way” breaks project consistency.

Luna got stuck in loops

Luna tried something, found that it did not fit, changed something, tried again, reversed it, and tried once more. We watched the screen wondering whether to stop it or give it more time.

Every loop consumes tokens and time. A cheap model per token is still expensive if it needs three times as many loops to reach the same result.

Does the stack matter?

In our test, Flash handled Laravel, PHP, and TypeScript well. Was that due to the stack, the architecture, or the model? We do not know. One task cannot establish that, and we are not going to sell it as a conclusion.

If you work with Laravel, PHP, or TypeScript, especially on a project that does not follow textbook structure, it is worth running the same test.

What Microsoft says

What we saw matches the results Microsoft published at launch: MAI Code 2 Flash solved an average of 61.0% of tasks, compared with 55.1% for GPT-6 Luna, with a lower average cost per task during the promotion.

The fine print:

  • These are Microsoft’s tests, run on its platform with GitHub Copilot CLI. Broad independent validation is not available yet.
  • When the promotion ends, Flash will cost the same per token as Luna. After that, the advantage will depend on how many tokens each model consumes to finish the work. If Flash keeps solving tasks without loops, it will pay off. (docs.github.com)

Next test: MAI Code 2 for specs and planning

Flash is for daily work. Microsoft has also released MAI Code 2, the larger model, and we already know where we will test it: writing specs and planning features before touching code.

It makes sense. Paying ten times more per token for implementation does not pay off. But thinking a feature through, identifying the system parts it touches, and leaving a clear plan for Flash to execute could be worthwhile. A good plan prevents many loops later.

Microsoft compares it directly with large models such as Claude Opus 5.5 and GPT-6.1 Sol. We will see how it handles our code and cover the result in the next post.

Microsoft is moving in the right direction

What we like most is not the model itself but the approach. Microsoft has released models for programming: Flash for day-to-day work and MAI Code 2 for demanding work. It also measures resolved tasks and cost per task, which matters to those of us paying the bill.

Microsoft has not disclosed the size of these models, so we are not going to call them small. The direction is clear: models focused on a specific kind of work, instead of a massive model that does everything and charges for everything. Adding a feature to a Laravel project does not require a model that can also write poetry.

We believe the future is moving this way: specialized models for specific jobs and the larger model only when it is really necessary.

Our conclusion for now

For our daily work, MAI Code 2 Flash replaces GPT-6 Luna. It is faster, follows a nonstandard architecture better, and does not get lost in loops.

This was one day, one project, and one feature. We will keep using it and report any change here.

Want to test it yourself? No need to build a benchmark. Take one real task you have pending, give it to both models, and watch three things: which one finishes it, how many loops it takes, and how much you have to fix in the PR. You will know after an afternoon.

If this interests you, it is worth getting to know us

We help teams and companies improve how they develop: AI agents, architecture, and workflows that do not send the bill through the roof. If you would rather not handle it yourself, we do it.

Talk to us

Contact form

The form is ready when you are.

Load the Microsoft form and tell us what you need.

Prefer email? Write to us directly.

Email us

Privacy preferences

We use essential technologies and, with your permission, functional services such as the contact form.