Try Bifrost Enterprise free for 14 days.
Request access

mai-code-2 Cost Calculator - Github Copilot

Calculate the cost of using mai-code-2 from Github Copilot for your AI applications

Pricing data last updated:

mai-code-2 Cost Calculator

Mode: Responses

Max: 128,000 tokens

Max: 128,000 tokens

Cost Breakdown

Input Cost$0.00050000
Output Cost$0.002500
Total Cost$0.003000

Pricing Details

Input: $0.0000005000 per token
Output: $0.00000250 per token
[ WE'RE OPEN SOURCE ]

Scale with the Fastest LLM Gateway

Built for enterprise-grade reliability, governance, and scale. Deploy in seconds.

Model Specifications

Capabilities

✓Function Calling
✓Vision
✓Reasoning

Limits

Max Input Tokens128,000
Max Output Tokens128,000

About mai-code-2

mai-code-2 is a responses model from Github Copilot, one of 17 responses models they offer. It is priced at $0.50 per 1M input tokens and $2.50 per 1M output tokens, ranking 35 out of 190 responses models by cost and cheaper than 82% of models in this category. mai-code-2 supports vision, function calling, reasoning, structured output. It accepts up to 128K input tokens.

Pricing Information

Input Cost$0.50 per 1M tokens
Output Cost$2.50 per 1M tokens

Note: Use the interactive calculator above to estimate costs for your specific usage patterns.

Technical Specifications

Maximum Input Tokens128,000
Maximum Output Tokens128,000

Pro Tip

Use the maximum token limits shown above to understand the model's capacity. This model can handle up to 128,000 input tokens. The maximum output length is 128,000 tokens.

Model Capabilities

✓Function Calling - Execute custom functions and tools
✓Vision - Process and understand images
✓Advanced Reasoning - Complex problem-solving capabilities
✓Parallel Function Calling - Execute multiple functions simultaneously
✓Response Schema - Structured output formatting

How mai-code-2 Pricing Compares

At $0.50 per 1M input tokens and $2.50 per 1M output tokens, mai-code-2 ranks 35 out of 190 responses models by input cost. It is more affordable compared to the median of $2.00 for responses models, and is cheaper than 82% of models in this category.

mai-code-2 is one of 17 Github Copilot responses models, with support for vision, function calling, reasoning, structured output.

ModelProviderInput / 1M tokensOutput / 1M tokensvs mai-code-2
gpt-5.1-codex-miniAzure$0.28$2.20-45%
gpt-5.1-codex-mini-2025-11-13Azure$0.25$2.00-50%
gpt-5.1-codex-miniOpenAI$0.25$2.00-50%

Alternatives to mai-code-2

Similar responses models from other providers

Azure
gpt-5.1-codex-mini
$0.28/1M input
-45% vs mai-code-2
OpenAI
gpt-5.1-codex-mini
$0.25/1M input
-50% vs mai-code-2
Bedrock Mantle
openai.gpt-5.6-luna
$0.26/1M input
-47% vs mai-code-2
Google Gemini
antigravity-preview-09-2026
$0.75/1M input
+50% vs mai-code-2

Frequently Asked Questions

Is mai-code-2 cheaper than gpt-5.1-codex-mini?

No. mai-code-2 costs $0.50 per 1M input tokens while gpt-5.1-codex-mini costs $0.28 per 1M input tokens, making gpt-5.1-codex-mini 45% more affordable for input. However, mai-code-2 may offer different capabilities or performance characteristics that justify the price difference.

How does mai-code-2 pricing compare to the average responses model?

mai-code-2 input pricing is $0.50 per 1M tokens, which is 75% below the median of $2.00 for responses models. It ranks 35 out of 190 responses models by input cost, making it cheaper than 82% of models in this category. For output, it costs $2.50 per 1M tokens compared to the median of $11.00.

What makes mai-code-2 different from other Github Copilot models?

Among Github Copilot's 17 responses models, mai-code-2 ranks 6 by input cost.

What are the best alternatives to mai-code-2?

The most comparable responses models to mai-code-2 are: gpt-5.1-codex-mini from Azure ($0.28/1M input tokens); gpt-5.1-codex-mini-2025-11-13 from Azure ($0.25/1M input tokens); gpt-5.1-codex-mini from OpenAI ($0.25/1M input tokens); openai.gpt-5.6-luna from Bedrock Mantle ($0.26/1M input tokens). These alternatives were selected based on similar capabilities, pricing, and provider diversity. You can compare any of these models in detail using the Bifrost Model Library.

How do I calculate mai-code-2 costs?

mai-code-2 is priced based on input and output tokens. Use the interactive calculator at the top of this page to estimate costs for your specific workload. Enter your expected input and output tokens volume and the calculator will show the total cost breakdown. For reference, processing 1M input tokens costs $0.50 and generating 1M output tokens costs $2.50.