Unlock exclusive introductory pricing for the newly launched Gemini 3.5 Flash.
M

minimax-m2

Entrada:$0.24/M
Saída:$0.96/M
Lançado:Oct 1, 2025

minimax-m2 é um modelo de linguagem de grande porte compacto e eficiente, otimizado para programação de ponta a ponta e fluxos de trabalho de agentes, com 10 bilhões de parâmetros ativos (230 bilhões de parâmetros totais), apresentando desempenho próximo ao estado da arte em inferência geral, uso de ferramentas e execução de tarefas em múltiplas etapas, ao mesmo tempo mantendo baixa latência e alta eficiência de implantação. O modelo se destaca em geração de código, edição de múltiplos arquivos, ciclos de compilar-executar-corrigir e correção de defeitos na verificação de testes, obtendo excelentes resultados em benchmarks como SWE-Bench Verified, Multi-SWE-Bench e Terminal-Bench, e demonstrando competitividade em planejamento de tarefas de longo ciclo, recuperação de informações e recuperação de erros de execução em avaliações de agentes como BrowseComp e GAIA. Avaliado pela Artificial Analysis, o MiniMax-M2 está no nível superior dos modelos de código aberto em áreas de inteligência abrangente, como matemática, inferência científica e seguimento de instruções. Seu pequeno número de parâmetros ativos possibilita inferência rápida, alta concorrência e melhor economia unitária, tornando-o ideal para implantação de agentes em larga escala, ferramentas auxiliares para desenvolvedores e aplicações orientadas por inferência que exigem velocidade de resposta e eficiência de custos.

Novo
Uso comercial

Playground para minimax-m2

Explore o Playground do minimax-m2 — um ambiente interativo para testar modelos e executar consultas em tempo real. Experimente prompts, ajuste parâmetros e itere instantaneamente para acelerar o desenvolvimento e validar casos de uso.

Technical Specifications of minimax-m2

SpecificationDetails
Model IDminimax-m2
ProviderMiniMax
Model typeLarge language model
Core positioningCompact, efficient model for programming and agent workflows
Active parameters10 billion
Total parameters230 billion
Primary strengthsCode generation, multi-file editing, compile-run-fix loops, defect repair, tool use, multi-step task execution
Performance profileNear state-of-the-art in general inference, tool use, and agent-style execution with low latency
Benchmark highlightsSWE-Bench Verified, Multi-SWE-Bench, Terminal-Bench, BrowseComp, GAIA
Deployment advantagesFast inference, high concurrency, strong unit economics, scalable deployment efficiency
Best-fit use casesLarge-scale agents, developer assistants, inference-driven applications, cost-sensitive production systems

What is minimax-m2?

minimax-m2 is a compact and efficient large language model designed for end-to-end programming tasks and agent-oriented workflows. It uses 10 billion active parameters out of 230 billion total parameters, giving it a strong balance between capability, latency, and deployment efficiency.

The model is built to perform well across code-heavy and execution-based scenarios, especially where systems need to reason through multiple steps, use tools effectively, and recover from errors during longer task chains. It is particularly well suited for environments that require code generation, repository-level changes, iterative debugging, and test-driven repair.

minimax-m2 also stands out for combining strong general intelligence with practical operational efficiency. It has shown competitive results in benchmarks covering software engineering, terminal execution, browsing-based problem solving, and agent planning, while its relatively small active parameter footprint makes it attractive for high-throughput and cost-efficient deployment.

Main features of minimax-m2

  • Compact active architecture: With 10 billion active parameters and 230 billion total parameters, minimax-m2 is optimized to deliver strong capability while keeping inference fast and efficient.
  • Programming-focused performance: The model excels in code generation, multi-file editing, compile-run-fix loops, and defect repair, making it highly effective for software engineering workflows.
  • Agent workflow optimization: minimax-m2 is designed for tool use, multi-step execution, and long-horizon task handling, which makes it suitable for autonomous and semi-autonomous agent systems.
  • Strong benchmark competitiveness: It performs well on evaluations such as SWE-Bench Verified, Multi-SWE-Bench, Terminal-Bench, BrowseComp, and GAIA, indicating broad utility across coding and agent tasks.
  • General reasoning capability: Beyond coding, the model is rated in the top tier of open-source systems in areas such as mathematics, scientific inference, and instruction following.
  • Low-latency deployment: Its efficient active parameter count supports faster response times, better concurrency, and improved production economics.
  • Scalable for production use: minimax-m2 is a strong fit for large-scale agent deployment, developer support tools, and applications that need both responsiveness and cost control.

How to access and integrate minimax-m2

Step 1: Sign Up for API Key

To get started, sign up on the CometAPI platform and generate your API key from the dashboard. Once you have your API credentials, you can use them to authenticate requests to the minimax-m2 model.

Step 2: Send Requests to minimax-m2 API

After obtaining your API key, send requests to CometAPI’s compatible chat completions endpoint and specify minimax-m2 as the model name.

curl https://api.cometapi.com/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $COMETAPI_API_KEY" \
  -d '{
    "model": "minimax-m2",
    "messages": [
      {
        "role": "user",
        "content": "Write a Python function that checks whether a string is a palindrome."
      }
    ]
  }'
from openai import OpenAI

client = OpenAI(
    api_key="YOUR_COMETAPI_API_KEY",
    base_url="https://api.cometapi.com/v1"
)

response = client.chat.completions.create(
    model="minimax-m2",
    messages=[
        {"role": "user", "content": "Write a Python function that checks whether a string is a palindrome."}
    ]
)

print(response.choices[0].message.content)

Step 3: Retrieve and Verify Results

Once the API returns a response, extract the generated content from the response object and validate it for your application. For production workflows, you may also want to add logging, schema validation, retries, guardrails, and automated evaluation to verify that minimax-m2 is producing consistent and reliable outputs.

Preços para minimax-m2

Explore preços competitivos para minimax-m2, projetado para atender diversos orçamentos e necessidades de uso. Nossos planos flexíveis garantem que você pague apenas pelo que usar, facilitando o dimensionamento conforme suas necessidades crescem. Descubra como minimax-m2 pode aprimorar seus projetos mantendo os custos gerenciáveis.

Comet Price (USD / M Tokens)Official Price (USD / M Tokens)Discount
Entrada:$0.24/M
Saída:$0.96/M
Entrada:$0.3/M
Saída:$1.2/M
-20%

Código de exemplo e API para minimax-m2

Acesse código de exemplo abrangente e recursos de API para minimax-m2 para otimizar seu processo de integração. Nossa documentação detalhada fornece orientação passo a passo, ajudando você a aproveitar todo o potencial do minimax-m2 em seus projetos.