LLM Reference
Microsoft Foundry

Using MAI-Code-1-Flash on Microsoft Foundry

Implementation guide · MAI · Microsoft AI

Serverless

Microsoft Foundry exposes MAI-Code-1-Flash through model ID MAI-Code-1-Flash. Use the setup steps, sourced pricing, capabilities, and official provider links below to validate this route before deployment.

Last refreshed 2026-06-15. Next refresh: weekly.

Quick Start

  1. 1
    Create an account at Microsoft Foundry and generate an API key.
  2. 2
    Use the Microsoft Foundry SDK or REST API to call MAI-Code-1-Flash — see the documentation for request format.
  3. 3
    You'll be billed $0.75/1M input, $4.50/1M output tokens. See full pricing.

Code Examples

See Microsoft Foundry documentation for integration details.

Pricing on Microsoft Foundry

TypePrice (per 1M)
Input tokens$0.75
Output tokens$4.50

Capabilities

ReasoningJSON / Tool use

About MAI-Code-1-Flash

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.

Model Specs

Released2026-06-02
Context256k

Provider

Microsoft Foundry
Microsoft Foundry

Microsoft

Redmond, Washington, United States