MiniMax M4 API

Multimodal flagship for long-horizon coding and agents with 1M context, adjustable reasoning depth, image and video input, and built-in web search.

MiniMax Generación de texto 1M contexto Lanzado 3 dic 2026 Singapore Endpoint propietario Nuevo

Acerca de MiniMax M4

Multimodal flagship for long-horizon coding and agents with 1M context, adjustable reasoning depth, image and video input, and built-in web search.

Supports text, image, and video input, five reasoning effort levels with reasoning always on, function calling (tool choice auto or none), implicit prompt cache reads, and built-in web search billed per executed search. Reasoning tokens are billed as output tokens.

reasoning vision video web search function calling cache long contexto agentic coding

Especificaciones de MiniMax M4

ID del modelo
minimax-m4
Autor
MiniMax
Categoría
Generación de texto
Lanzado
3 dic 2026
Ventana de contexto
1M tokens
Salida máxima
262.144 tokens
Entrada
TextoImagenVideo
Salida
Texto
Salida estructurada
No compatible
Región
Singapore
Endpoints
POST/v1/chat/completionsPOST/v1/responsesPOST/v1/messagesPOST/v1beta/models/minimax-m4:generateContent
IDs de modelo alternativos
minimax/m4minimax/minimax-m4

Precios de la API de MiniMax M4Ahorra hasta 25%

Tarifas de pago por uso en vivo del catálogo de EmpirioLabs. También puedes elegir un plan con asignaciones semanales.

Tipo
Especificación
Tarifa
Entrada
per 1M prompt tokens
$0.80$0.60
Salida
per 1M generated tokens
$3.10$2.325
Implicit cache read
per 1M cached input tokens
$0.05$0.0375
Web search
per call when invoked
$0.01
Comparar en la página completa de precios

Cómo llamar a la API de MiniMax M4

MiniMax M4 sirve la API de Chat Completions compatible con OpenAI. Apunta cualquier SDK de OpenAI a https://api.empiriolabs.ai/v1 con tu clave de API de EmpirioLabs y usa el id de modelo minimax-m4. Consigue una clave de API en el panel de EmpirioLabs.

cURL
curl https://api.empiriolabs.ai/v1/chat/completions \
  -H "Authorization: Bearer $EMPIRIOLABS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "minimax-m4",
    "messages": [
      {"role": "user", "content": "Write a haiku about the ocean."}
    ]
  }'
Python (OpenAI SDK)
from openai import OpenAI

client = OpenAI(
    base_url="https://api.empiriolabs.ai/v1",
    api_key="YOUR_EMPIRIOLABS_API_KEY",
)

response = client.chat.completions.create(
    model="minimax-m4",
    messages=[{"role": "user", "content": "Write a haiku about the ocean."}],
)
print(response.choices[0].message.content)
Referencia completa de la API de MiniMax M4

Parámetros de la API de MiniMax M4

Parámetros de solicitud compatibles con la API de MiniMax M4 en EmpirioLabs. Los valores por defecto se aplican cuando se omite un campo.

ParámetroTipoPredeterminadoRango / valoresDescripción
reasoning_effortenummaxlow, medium, high, xhigh, maxReasoning is always on; this sets how much effort the model spends before answering. Higher effort uses more reasoning tokens.
max_completion_tokensinteger-1 a 262144Maximum generated tokens, including reasoning tokens. When omitted, the model's own default applies.
stoparray--Optional stop sequence or list of stop sequences.
tool_web_searchbooleanfalse-Search the web for real-time information. Adds $0.01 to the request cost for each invoked call.
toolsarray--OpenAI-compatible tool definitions for function calling.
tool_choiceobject--Optional OpenAI-compatible tool_choice value. This model supports auto and none.
video_fpsnumber10.2 a 5Frames per second to sample from video inputs. Higher values sample more frames and use more input tokens.
disable_formattingbooleanfalse-Return the answer without the Sources list that web search adds.

Información útil

Text, image, and video input with text output, a 1M token context, and up to 262,144 output tokens. Image and video parts accept detail (low, default, or high) and max_long_side_pixel, which set the resolution the model reads and the input tokens billed; with tool_web_search on, max_long_side_pixel applies to video only. The model always reasons: reasoning_effort sets how deeply (low, medium, high, xhigh, or max; the default is max), and the reasoning text is returned in reasoning_content. Reasoning tokens are billed as output tokens. In multi-step tool use, send each assistant turn back with its reasoning_content; it is billed as input tokens. Repeated prompt prefixes are cached automatically and billed at the cached input rate. Set tool_web_search to true to let the model search the web; each executed search is billed, and one request can run several searches. Answers that used web search end with a Sources list unless disable_formatting is true. tool_choice accepts auto or none. Structured output through response_format is not supported; ask for JSON in the prompt instead.

Per-tool billing (usage.tool_usage)

When this model invokes tools (web search, code interpreter, etc.) inside a single request, the response carries a normalized usage.tool_usage map alongside the token counts. The example below shows the shape, exact field names, units, and which tools appear can vary slightly per provider:

"usage": {
  "prompt_tokens": 123,
  "completion_tokens": 456,
  "cost_usd": 0.0042,
  "tool_usage": {"web_search": 3, "code_interpreter": 1}
}

The tool counts are already factored into cost_usd, they are surfaced for transparency so you can audit per-tool billing. The field is omitted when no tools were invoked.

API de MiniMax M4: preguntas frecuentes

¿Cuánto cuesta la API de MiniMax M4?

En EmpirioLabs, MiniMax M4 se factura por uso. También puedes elegir un plan con asignaciones semanales. La tabla de tarifas en vivo de esta página siempre coincide con lo que cobra la API.

¿Qué entradas y salidas admite MiniMax M4?

MiniMax M4 recibe Texto, Imagen, Video como entrada y devuelve Texto.

¿Cuál es la ventana de contexto de MiniMax M4?

MiniMax M4 admite una ventana de contexto de 1M tokens con hasta 262.144 tokens de salida por respuesta.

¿La API de MiniMax M4 es compatible con OpenAI?

Sí. MiniMax M4 sirve la API de Chat Completions compatible con OpenAI, así que los SDKs de OpenAI existentes funcionan apuntando base_url a https://api.empiriolabs.ai/v1 y usando el id de modelo minimax-m4.

¿Cuál es el ID de modelo de MiniMax M4?

Envía minimax-m4 como modelo en tu solicitud. Los ID alternativos minimax/m4, minimax/minimax-m4 también funcionan.

¿Cuándo se lanzó MiniMax M4?

MiniMax lanzó MiniMax M4 el 3 dic 2026.

¿Desde dónde se sirve MiniMax M4?

MiniMax M4 en EmpirioLabs se sirve desde Singapore.

¿Puedo probar MiniMax M4 en el navegador antes de integrar?

Sí. El playground de EmpirioLabs ejecuta MiniMax M4 en el navegador con los mismos parámetros que expone la API, para que pruebes prompts antes de escribir código.

¿Cómo consigo una clave de API de MiniMax M4?

Crea una cuenta de EmpirioLabs y genera una clave en API Keys en el panel. La facturación es con créditos de pago por uso, así que solo pagas por las solicitudes que haces. También puedes elegir un plan con asignaciones semanales.

Compara MiniMax M4 con otros modelos

Todas las comparativas de modelos

¿Listo para usar mejores endpoints?

Consulta nuestros precios o contacta con nosotros si quieres que tu propio modelo se implemente en nuestra pila.