MAI-Code-1.1-Flash

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

Microsoft coding model with native vision support, optimized for fast and efficient software development

Benchmark Pricing$0.20 / 1M in$1.20 / 1M out$0.02 cache read
Context: 256,000 tokens•Max Output: 128,000 tokens•Released: 2026-08-11

TECHNICAL SPECIFICATIONS

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

MODEL CONTEXT PROTOCOL (MCP) READINESS

✓ MAI-Code-1.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.

API CALL INVOCATION EXAMPLE

// Example: Calling MAI-Code-1.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.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.1-flash
$0.20 / $1.20$0.02 cache

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

Prompt Caching Active

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

MODEL RESOURCES