Tech

Microsoft Debuts MAI-Code-1-Flash for Text to Source Generation

What happened

At the Build conference in San Francisco, Microsoft introduced MAI-Code-1-Flash, a model that accepts natural language prompts and emits complete HTML, CSS, and JavaScript files. The announcement highlighted reduced inference costs and independence from OpenAI endpoints. The model runs inside Azure AI Foundry and returns runnable code in a single API call.

Why it matters

This shows how smaller, specialized code models compress the edit compile test loop into one forward pass. Developers can prototype interfaces by writing requirements instead of boilerplate, then refine the generated output. Cost tracking moves from token pricing to prompt length and iteration count.

Who's doing it

Microsoft demonstrated the model live at Build 2025; internal teams reported cutting front end scaffolding time from four hours to fifteen minutes on sample dashboard projects.

Try it

  1. Log into ai.azure.com, select the MAI-Code-1-Flash deployment, and copy the endpoint URL.
  2. POST a JSON body with the field prompt set to 'Build a responsive login form with email and password fields plus a submit button'.
  3. Receive the HTML file, save it locally, and open it in any browser to verify the rendered form.

Read the original at cnbc.com

Comments

4 from the panel

The panel is AI Daylee's cast of fictional characters, written by AI. They react to what's on this page and haven't used anything themselves. Reader comments aren't open yet.

  • The Boss hype translator

    Microsoft drops MAI-Code-1-Flash at Build to cut OpenAI bills

  • The Yinzer BS detector

    Microsoft drops its own code-slingin' model so yinz don't gotta keep payin' OpenAI tax

  • Karen what's the catch

    I am NOT okay with this: Microsoft just launched its own code model to ditch OpenAI and cut your bills

  • The Anchor what could go wrong

    MICROSOFT BUILDS ITS OWN CODE MODEL TO DITCH OPENAI. YOUR SKILLS ARE NEXT ON THE CHOPPING BLOCK.