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.

MiniMax टेक्स्ट जनरेशन 1M कॉन्टेक्स्ट रिलीज 3 दिस॰ 2026 Singapore स्वामित्व वाला एंडपॉइंट नया

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 कॉन्टेक्स्ट agentic coding

MiniMax M4 की विशेषताएं

मॉडल ID
minimax-m4
निर्माता
MiniMax
श्रेणी
टेक्स्ट जनरेशन
रिलीज
3 दिस॰ 2026
कॉन्टेक्स्ट विंडो
1M टोकन
अधिकतम आउटपुट
2,62,144 टोकन
इनपुट
टेक्स्टइमेजवीडियो
आउटपुट
टेक्स्ट
संरचित आउटपुट
समर्थित नहीं
रीजन
Singapore
एंडपॉइंट
POST/v1/chat/completionsPOST/v1/responsesPOST/v1/messagesPOST/v1beta/models/minimax-m4:generateContent
वैकल्पिक मॉडल ID
minimax/m4minimax/minimax-m4

MiniMax M4 API की कीमतें25% तक बचाएं

EmpirioLabs कैटलॉग से लाइव pay-as-you-go दरें। आप साप्ताहिक उपयोग सीमा वाला प्लान भी चुन सकते हैं।

प्रकार
स्पेक
दर
इनपुट
per 1M prompt tokens
$0.80$0.60
आउटपुट
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
पूरे कीमत पेज पर तुलना करें

MiniMax M4 API को कैसे कॉल करें

MiniMax M4 OpenAI-संगत Chat Completions API देता है। किसी भी OpenAI SDK को अपनी EmpirioLabs API key के साथ https://api.empiriolabs.ai/v1 पर सेट करें और model id minimax-m4 उपयोग करें। EmpirioLabs डैशबोर्ड से API key प्राप्त करें।

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)
MiniMax M4 API का पूरा संदर्भ

MiniMax M4 API के पैरामीटर

EmpirioLabs पर MiniMax M4 API द्वारा समर्थित request पैरामीटर। फ़ील्ड छोड़ने पर डिफ़ॉल्ट मान लागू होते हैं।

पैरामीटरप्रकारडिफॉल्टरेंज / मानविवरण
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 से 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 से 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.

जानने योग्य

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: आम सवाल

MiniMax M4 API की कीमत कितनी है?

EmpirioLabs पर MiniMax M4 का बिल उपयोग के अनुसार बनता है। आप साप्ताहिक उपयोग सीमा वाला प्लान भी चुन सकते हैं। इस पेज की लाइव दर तालिका हमेशा API की वास्तविक बिलिंग से मेल खाती है।

MiniMax M4 कौन से inputs और outputs सपोर्ट करता है?

MiniMax M4 input के रूप में टेक्स्ट, इमेज, वीडियो लेता है और टेक्स्ट लौटाता है।

MiniMax M4 की context window कितनी है?

MiniMax M4 1M टोकन की context window समर्थित करता है, प्रति उत्तर अधिकतम 2,62,144 आउटपुट टोकन के साथ।

क्या MiniMax M4 API OpenAI-संगत है?

हां। MiniMax M4 OpenAI-संगत Chat Completions API देता है, इसलिए मौजूदा OpenAI SDKs base_url को https://api.empiriolabs.ai/v1 पर सेट करके और model id minimax-m4 रखकर काम करते हैं।

MiniMax M4 का model ID क्या है?

अपनी request में model के रूप में minimax-m4 भेजें। वैकल्पिक IDs minimax/m4, minimax/minimax-m4 भी काम करते हैं।

MiniMax M4 कब रिलीज़ हुआ?

MiniMax ने MiniMax M4 को 3 दिस॰ 2026 को रिलीज़ किया।

MiniMax M4 कहां से सर्व किया जाता है?

EmpirioLabs पर MiniMax M4 Singapore से सर्व किया जाता है।

क्या मैं इंटीग्रेट करने से पहले ब्राउज़र में MiniMax M4 आज़मा सकता हूं?

हां। EmpirioLabs playground ब्राउज़र में MiniMax M4 को उन्हीं पैरामीटरों के साथ चलाता है जो API देता है, ताकि आप कोड लिखने से पहले prompt आज़मा सकें।

MiniMax M4 की API key कैसे मिलेगी?

EmpirioLabs खाता बनाएं, फिर डैशबोर्ड में API Keys में key जनरेट करें। बिलिंग pay-as-you-go क्रेडिट से होती है, इसलिए आप सिर्फ अपनी requests का भुगतान करते हैं। आप साप्ताहिक उपयोग सीमा वाला प्लान भी चुन सकते हैं।

MiniMax M4 की दूसरे मॉडलों से तुलना करें

सभी मॉडल तुलनाएं

बेहतर समापन बिंदुओं का उपयोग करने के लिए तैयार हैं?

हमारे मूल्य निर्धारण की जाँच करें या यदि आप चाहते हैं कि आपका अपना मॉडल हमारे स्टैक पर तैनात किया जाए, तो पहुंचें।