MiniMax M4
minimax/minimax-m4MiniMax M4 is the latest generation of MiniMax models. It accepts text, image and video input, always reasons before answering with adjustable reasoning depth, supports function calling and JSON output, and handles up to a 1M-token context.
Spesifikasi
- Harga input
- $0.80USD / 1M token
- Harga output
- $3.10USD / 1M token
- Pembacaan cache
- $0.05USD / 1M token
- Jendela konteks
- 1M
- Output maks
- 512K
- Modalities
- Teks, gambarTeks
- Rilis
- 3 Des 2026
- Baru
- Chat: Didukung
- Vision: Didukung
- Penalaran: Didukung
- Output terstruktur: Didukung
- Pemanggilan fungsi: Didukung
- Input audio: Tidak didukung
Prices in USD / 1M token
Mulai cepat
import os
import requests
headers = {"Authorization": f"Bearer {os.environ['SANDBASE_API_KEY']}"}
payload = {
"model": "minimax/minimax-m4",
"messages": [
{
"role": "user",
"content": "Hello",
},
],
"max_tokens": 2048,
}
response = requests.post(
"https://api.sandbase.ai/v1/chat/completions",
headers=headers,
json=payload,
)
response.raise_for_status()
print(response.json())Coba model ini
Playground
Tulis prompt untuk mencoba model ini. Penggunaan ditagihkan sesuai harga yang ditampilkan.
Coba prompt
Tambahkan gambar (opsional)
Respons Anda akan muncul di sini
Pilih contoh atau tulis prompt, lalu klik Jalankan.
Mulai membangun
Kirim permintaan pertama Anda
Endpoint yang kompatibel dengan OpenAI dengan autentikasi dan pelacakan penggunaan terpadu.
curl -X POST "https://api.sandbase.ai/v1/chat/completions" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "minimax/minimax-m4",
"messages": [
{
"role": "user",
"content": "Hello"
}
],
"max_tokens": 2048
}'Skema Input
9 parameter · 1 wajib · 8 opsional
| Parameter | Tipe | Wajib | Deskripsi |
|---|---|---|---|
messages | object[] | Wajib | Conversation so far, as an ordered list of messages with a role (system, user or assistant) and content. |
tools | array | Opsional | Functions the model may call. Each tool declares a name, description and JSON Schema parameters. |
top_p | number | Opsional | Nucleus sampling: only tokens within this cumulative probability are considered. · Min: 0 · Maks: 1 |
stream | boolean | Opsional | Stream the response as server-sent events instead of returning it in one piece. · Bawaan: false |
max_tokens | integer | Opsional | Maximum number of tokens to generate in the response. · Maks: 512000 |
temperature | number | Opsional | Sampling temperature. Higher values make output more random; lower values make it more focused. · Min: 0 · Maks: 2 · Bawaan: 1 |
tool_choice | string | Opsional | Controls tool use: "auto", "none", "required", or a specific function. |
response_format | object | Opsional | Output format, for example { "type": "json_object" } or a JSON Schema for structured output. |
reasoning_effort | string | Opsional | How much the model reasons before answering (for example low, medium or high). · Opsi: low, medium, high, xhigh, max lowmediumhighxhighmax |
Skema Output
| Field | Tipe | Deskripsi |
|---|---|---|
id | string | Pengidentifikasi unik untuk completion |
object | string | Jenis objek, mis. "chat.completion" |
model | string | Model yang digunakan untuk completion |
choices | array | Daftar pilihan completion |
choices[].message.content | string | Konten teks yang dihasilkan |
choices[].finish_reason | string | Alasan generasi berhenti |
usage.prompt_tokens | integer | Jumlah token dalam prompt |
usage.completion_tokens | integer | Jumlah token dalam completion |
usage.total_tokens | integer | Total token yang digunakan |
Pertanyaan
FAQ
Bagaimana cara memanggil MiniMax M4 melalui SandBase?
Buat kunci API SandBase, lalu kirim permintaan dengan model ID "minimax/minimax-m4" ke Chat Completions API (/v1/chat/completions) di https://api.sandbase.ai. Contoh permintaan di halaman ini menunjukkan payload yang tepat.
Berapa biaya MiniMax M4?
$0.80 per 1 juta token input dan $3.10 per 1 juta token output, ditagihkan per permintaan dari saldo SandBase Anda. Diskon, jika tersedia, ditampilkan pada harga di halaman ini.
Berapa jendela konteks MiniMax M4?
1M token konteks, dengan hingga 512K token output per respons.
Fitur apa saja yang didukung MiniMax M4?
MiniMax M4 mendukung vision (input gambar), penalaran, function calling, output terstruktur. Lihat Specifications di atas untuk daftar lengkap.
Apakah saya memerlukan akun MiniMax terpisah?
Tidak. Satu kunci API dan saldo SandBase memberi Anda akses ke MiniMax M4 dan model lain di katalog; Anda tidak perlu mendaftar ke MiniMax secara terpisah.
