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 Textgenerierung 1M Kontext Veröffentlicht 3. Dez. 2026 Singapore Proprietärer Endpoint Neu

Über 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 Kontext agentic coding

MiniMax M4 Spezifikationen

Modell-ID
minimax-m4
Autor
MiniMax
Kategorie
Textgenerierung
Veröffentlicht
3. Dez. 2026
Kontextfenster
1M Token
Max. Ausgabe
262.144 Token
Eingabe
TextBildVideo
Ausgabe
Text
Strukturierte Ausgabe
Nicht unterstützt
Region
Singapore
Endpoints
POST/v1/chat/completionsPOST/v1/responsesPOST/v1/messagesPOST/v1beta/models/minimax-m4:generateContent
Alternative Modell-IDs
minimax/m4minimax/minimax-m4

MiniMax M4 API-PreiseSpare bis zu 25%

Live Pay-as-you-go-Preise aus dem EmpirioLabs-Katalog. Du kannst auch einen Plan mit wöchentlichen Kontingenten wählen.

Typ
Spezifikation
Preis
Eingabe
per 1M prompt tokens
$0.80$0.60
Ausgabe
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
Auf der vollständigen Preisseite vergleichen

So rufst du die MiniMax M4 API auf

MiniMax M4 bedient die OpenAI-kompatible Chat Completions API. Richte ein beliebiges OpenAI SDK mit deinem EmpirioLabs API-Schlüssel auf https://api.empiriolabs.ai/v1 und verwende die Modell-ID minimax-m4. Hol dir einen API-Schlüssel im EmpirioLabs Dashboard.

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)
Vollständige MiniMax M4 API-Referenz

MiniMax M4 API-Parameter

Request-Parameter, die die MiniMax M4 API auf EmpirioLabs unterstützt. Standardwerte gelten, wenn ein Feld weggelassen wird.

ParameterTypStandardBereich / WerteBeschreibung
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 bis 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 bis 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.

Gut zu wissen

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.

MiniMax M4 API: häufige Fragen

Wie viel kostet die MiniMax M4 API?

Auf EmpirioLabs wird MiniMax M4 nach Verbrauch abgerechnet. Du kannst auch einen Plan mit wöchentlichen Kontingenten wählen. Die Live-Preistabelle auf dieser Seite entspricht immer dem, was die API berechnet.

Welche Eingaben und Ausgaben unterstützt MiniMax M4?

MiniMax M4 nimmt Text, Bild, Video als Eingabe an und gibt Text aus.

Wie groß ist das Kontextfenster von MiniMax M4?

MiniMax M4 unterstützt ein Kontextfenster von 1M Token mit bis zu 262.144 Ausgabe-Token pro Antwort.

Ist die MiniMax M4 API OpenAI-kompatibel?

Ja. MiniMax M4 bedient die OpenAI-kompatible Chat Completions API. Bestehende OpenAI SDKs funktionieren, indem du base_url auf https://api.empiriolabs.ai/v1 setzt und als Modell-ID minimax-m4 verwendest.

Wie lautet die Modell-ID von MiniMax M4?

Sende minimax-m4 als Modell in deinem Request. Die alternativen IDs minimax/m4, minimax/minimax-m4 funktionieren ebenfalls.

Wann wurde MiniMax M4 veröffentlicht?

MiniMax hat MiniMax M4 am 3. Dez. 2026 veröffentlicht.

Von wo wird MiniMax M4 bereitgestellt?

MiniMax M4 auf EmpirioLabs wird aus Singapore bereitgestellt.

Kann ich MiniMax M4 im Browser testen, bevor ich integriere?

Ja. Der EmpirioLabs Playground führt MiniMax M4 im Browser mit denselben Parametern aus, die die API bietet. So kannst du Prompts testen, bevor du Code schreibst.

Wie bekomme ich einen MiniMax M4 API-Schlüssel?

Erstelle ein EmpirioLabs-Konto und generiere dann einen Schlüssel unter API Keys im Dashboard. Die Abrechnung erfolgt über Pay-as-you-go-Guthaben, du zahlst also nur für deine Requests. Du kannst auch einen Plan mit wöchentlichen Kontingenten wählen.

MiniMax M4 mit anderen Modellen vergleichen

Alle Modellvergleiche

Bereit, bessere Endpunkte zu nutzen?

Schauen Sie sich unsere Preise an oder kontaktieren Sie uns, wenn Sie Ihr eigenes Modell auf unserem Stack implementieren möchten.