MAI-Code-1-Flash

MicrosoftMCP Tool CallReasoning
microsoft/mai-code-1-flashClosed API

Microsoft coding model built for fast, efficient assistance in everyday developer workflows

Benchmark Pricing$0.75 / 1M in$4.50 / 1M out$0.07 cache read
Context: 256,000 tokens•Max Output: 128,000 tokens•Knowledge: 2025-12•Released: 2026-06-02

TECHNICAL SPECIFICATIONS

Context Window256,000256K tokens
Max Output128,000128K tokens
LicenseProprietaryCloud API only
Input Modalities
Text
Function / Tool CallingSupported (MCP Ready)
Structured OutputsGuaranteed Schema

MODEL CONTEXT PROTOCOL (MCP) READINESS

✓ MAI-Code-1-Flash natively supports OpenAI / Anthropic format tool calling and is fully compatible with MCP servers and agent loops.

MCP Context Window Recommendations

With a context capacity of 256,000 tokens, this model can handle moderately large MCP tool definitions and multi-turn conversation logs comfortably.

STANDARDIZED BENCHMARKS & EVALS

SWE-Bench Proresolve rate
51.2
SWE-Bench Verifiedresolved
71.6
Terminal-Benchsuccess rate
54.8
GPQA Diamondaccuracy
84.6

API CALL INVOCATION EXAMPLE

// Example: Calling MAI-Code-1-Flash via OpenAI SDK
import OpenAI from "openai";

const client = new OpenAI({
  apiKey: process.env.MICROSOFT_API_KEY,
});

const response = await client.chat.completions.create({
  model: "microsoft/mai-code-1-flash",
  messages: [{ role: "user", content: "Hello! Can you inspect MCP tools?" }],
});

console.log(response.choices[0].message.content);

PRICING BY PROVIDER

1 providers
GitHub Copilotmai-code-1-flash-picker
$0.75 / $4.50$0.07 cache

Rates in USD per 1M tokens. Rates synchronized from models.dev public catalog.

Prompt Caching Active

This model supports prompt caching at $0.07 / 1M tokens, saving up to 90% on repetitive MCP tool definitions and system instructions.

MODEL RESOURCES