LiteLLMLiteLLM/ MODELS

Mai Code 1.1 Flash API Pricing

2 providersazure_ai/MAI-Code-1.1-FlashCompare
Input / output
$0.20 / $1.20 per 1M tokens
Cache read
$0.02 / 1M
Context
256K tokens
Max output
64K tokens

As of November 24, 2026, Mai Code 1.1 Flash costs $0.20 per 1M input tokens and $1.20 per 1M output tokens from Azure AI Foundry, the lowest of 2 providers, with cache reads at $0.02 per 1M tokens. It has a 256,000-token context window and returns up to 64,000 tokens per response.

Prices updated Checked
Scheduled for deprecation: Azure AI Foundry lists December 9, 2026 as the deprecation date for azure_ai/MAI-Code-1.1-Flash.

Mai Code 1.1 Flash pricing by provider

2 listings across 2 providers. Token prices are in US dollars per 1M tokens. The highlighted row is the price quoted above.

Mai Code 1.1 Flash prices by provider in US dollars, token prices per 1M tokens, as of November 24, 2026. Source: LiteLLM model price file.
ProviderModel name in LiteLLMInputOutputCache readContext
Azure AI Foundryazure_ai/MAI-Code-1.1-Flash$0.20$1.20$0.02256K
GitHub Copilotgithub_copilot/mai-code-1.1-flash$0.20$1.20$0.02128K

What Mai Code 1.1 Flash costs in practice

1,000 requests with 2,000 input and 500 output tokens each

Azure AI Foundry$1.00
GitHub Copilot$1.00

100 long-document requests with 100,000 input and 2,000 output tokens each

Azure AI Foundry$2.24
GitHub Copilot$2.24

Mai Code 1.1 Flash cost calculator

At Azure AI Foundry's price ($0.20 input, $1.20 output per 1M tokens), 10,000 requests a day with 1,000 input and 500 output tokens each cost $8.00 a day, about $240 a month. Change the numbers for your workload, or compare it with other models.

Per request
$0.0008
Per day
$8.00
Per month (30 days)
$240

Mai Code 1.1 Flash features

Input: text, image. Output: text.

Use Mai Code 1.1 Flash with LiteLLM

Call Mai Code 1.1 Flash through the LiteLLM Python SDK, or put it behind the LiteLLM proxy and send OpenAI-format requests to /v1/chat/completions. LiteLLM tracks the cost of every request at these prices.

Python SDK
from litellm import completion

response = completion(
    model="azure_ai/MAI-Code-1.1-Flash",
    messages=[{"role": "user", "content": "Hello!"}],
)
Proxy config.yaml
model_list:
  - model_name: mai-code-1.1-flash
    litellm_params:
      model: azure_ai/MAI-Code-1.1-Flash
      # credentials: see the provider's LiteLLM docs page
Call the proxy
curl http://0.0.0.0:4000/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $LITELLM_API_KEY" \
  -d '{
    "model": "mai-code-1.1-flash",
    "messages": [{"role": "user", "content": "Hello!"}]
  }'

Mai Code 1.1 Flash FAQ

How much does Mai Code 1.1 Flash cost?

Mai Code 1.1 Flash costs $0.20 per 1M input tokens and $1.20 per 1M output tokens from Azure AI Foundry, the lowest of 2 providers, with cache reads at $0.02 per 1M tokens.

What is the context window of Mai Code 1.1 Flash?

Mai Code 1.1 Flash has a 256,000-token context window and returns up to 64,000 tokens per response.

Which providers offer Mai Code 1.1 Flash?

Mai Code 1.1 Flash is available from 2 providers through LiteLLM: Azure AI Foundry and GitHub Copilot.

How do I call Mai Code 1.1 Flash with an OpenAI-compatible API?

Use the LiteLLM Python SDK with model="azure_ai/MAI-Code-1.1-Flash", or add the model to the LiteLLM proxy's config.yaml and send requests to /v1/chat/completions from any OpenAI client. LiteLLM tracks the cost of every request at the prices on this page.

What features does Mai Code 1.1 Flash support?

Mai Code 1.1 Flash supports function calling, parallel tool calls, structured output, image input, reasoning and prompt caching.

Is Mai Code 1.1 Flash being deprecated?

Azure AI Foundry lists a deprecation date of December 9, 2026 for azure_ai/MAI-Code-1.1-Flash.

Sources

Prices come from LiteLLM's open-source model_prices_and_context_window.json, which LiteLLM uses to calculate the cost of every request. Maintainers update it from each provider's published pricing, and this page is usually rebuilt within 20 minutes of every change. Provider pricing pages:

LiteLLM docs: Azure AI Foundry, GitHub Copilot.

Provider pages: Azure AI Foundry, GitHub Copilot.