Mai Code 1.1 Flash API Pricing
- 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.
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.
| Provider | Model name in LiteLLM | Input | Output | Cache read | Context |
|---|---|---|---|---|---|
| Azure AI Foundry | azure_ai/MAI-Code-1.1-Flash | $0.20 | $1.20 | $0.02 | 256K |
| GitHub Copilot | github_copilot/mai-code-1.1-flash | $0.20 | $1.20 | $0.02 | 128K |
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.
- Function calling
- Parallel tool calls
- Structured output
- Image input
- Reasoning
- Prompt caching
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.
from litellm import completion
response = completion(
model="azure_ai/MAI-Code-1.1-Flash",
messages=[{"role": "user", "content": "Hello!"}],
)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 pagecurl 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:
- prices.azure.com/api/retail/prices?$filter=serviceName%20eq%20'Foundry%20Models'%20and%20armRegionName%20eq%20'eastus'%20and%20priceType%20eq%20'Consumption'
- raw.githubusercontent.com/github/docs/main/data/tables/copilot/models-and-pricing.yml
LiteLLM docs: Azure AI Foundry, GitHub Copilot.
Provider pages: Azure AI Foundry, GitHub Copilot.