This document explains how to call the model inference service provided by MiniMax through Alibaba Cloud Model Studio.
Service activation
- Go to the Model Studio console, search for MiniMax, find the MiniMax model card, and click Activate Now.
- In the pop-up dialog box, confirm the activation and authorization.
Quick start
Before you begin, ensure you have obtained an API key and configured it as an environment variable. If you call the API using an SDK, you must also install the SDK.
- OpenAI compatible
- Python
- Node.js
- HTTP
Sample code
Response
Multimodal examples
MiniMax/MiniMax-M3 supports not only text-based conversations but also powerful multimodal understanding capabilities. This section describes how to enable the model to understand image and video content.
Image understanding
The image understanding feature enables the MiniMax-M3 model to recognize and analyze image content. You can pass in one or more images.
- OpenAI compatible
thinking is not a standard OpenAI parameter. In the OpenAI Python SDK, pass it through extra_body. In the Node.js SDK, pass it as a top-level parameter.- Python
- Node.js
- HTTP
Video understanding
- OpenAI compatible
- Python
- Node.js
- HTTP
File limits
- Image files
- Video files
- Input methods: Public URLs and Base64 encoding are supported.
- Supported image formats: PNG, JPEG, WEBP, GIF
- Image size: Each image must not exceed 10 MB.
Other features
Model | |||||||
|---|---|---|---|---|---|---|---|
MiniMax/MiniMax-M3 | Supported | Supported | Supported | Not supported | Not supported | Not supported | Supported |
MiniMax/MiniMax-M2.7 | Supported | Supported | Supported | Not supported | Not supported | Not supported | Supported |
MiniMax/MiniMax-M2.5 | Supported | Supported | Supported | Not supported | Not supported | Not supported | Supported |
- The discount for cached input tokens is 20% for MiniMax/MiniMax-M3 and MiniMax/MiniMax-M2.7, and 10% for MiniMax/MiniMax-M2.5. The minimum number of cached tokens is 512, compared to 1024 for Model Studio.
- MiniMax/MiniMax-M3 does not support the
nparameter (only one completion can be generated per request), andtool_choicesupports onlynoneandauto.
Default parameter values
The following parameters cannot be modified.
Model | temperature | top_p |
|---|---|---|
MiniMax/MiniMax-M3 | 1.0 | 0.95 |
MiniMax/MiniMax-M2.7 | 1.0 | 0.9 |
MiniMax/MiniMax-M2.5 | 1.0 | 0.9 |