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.
Specifiche
- Prezzo input
- $0.80USD / 1M token
- Prezzo output
- $3.10USD / 1M token
- Lettura da cache
- $0.05USD / 1M token
- Finestra di contesto
- 1M
- Output massimo
- 512K
- Modalities
- Testo, immagineTesto
- Rilascio
- 3 dic 2026
- Nuovo
- Chat: Supportato
- Vision: Supportato
- Ragionamento: Supportato
- Output strutturato: Supportato
- Chiamata di funzione: Supportato
- Input audio: Non supportato
Prices in USD / 1M token
Avvio rapido
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())Prova il modello
Playground
Scrivi un prompt per provare questo modello. L'utilizzo viene fatturato secondo i prezzi indicati.
Prova un prompt
Aggiungi un'immagine (opzionale)
La tua risposta apparirà qui
Scegli un esempio oppure scrivi un prompt, poi fai clic su Esegui.
Inizia a costruire
Invia la tua prima richiesta
Endpoint compatibile con OpenAI con autenticazione unificata e tracciamento dell'utilizzo.
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
}'Schema di input
9 parametri · 1 obbligatori · 8 facoltativi
| Parametro | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
messages | object[] | Obbligatorio | Conversation so far, as an ordered list of messages with a role (system, user or assistant) and content. |
tools | array | Facoltativo | Functions the model may call. Each tool declares a name, description and JSON Schema parameters. |
top_p | number | Facoltativo | Nucleus sampling: only tokens within this cumulative probability are considered. · Min: 0 · Max: 1 |
stream | boolean | Facoltativo | Stream the response as server-sent events instead of returning it in one piece. · Predefinito: false |
max_tokens | integer | Facoltativo | Maximum number of tokens to generate in the response. · Max: 512000 |
temperature | number | Facoltativo | Sampling temperature. Higher values make output more random; lower values make it more focused. · Min: 0 · Max: 2 · Predefinito: 1 |
tool_choice | string | Facoltativo | Controls tool use: "auto", "none", "required", or a specific function. |
response_format | object | Facoltativo | Output format, for example { "type": "json_object" } or a JSON Schema for structured output. |
reasoning_effort | string | Facoltativo | How much the model reasons before answering (for example low, medium or high). · Opzioni: low, medium, high, xhigh, max lowmediumhighxhighmax |
Schema di output
| Campo | Tipo | Descrizione |
|---|---|---|
id | string | Identificatore univoco del completamento |
object | string | Tipo di oggetto, ad esempio "chat.completion" |
model | string | Modello usato per il completamento |
choices | array | Elenco delle alternative di completamento |
choices[].message.content | string | Contenuto di testo generato |
choices[].finish_reason | string | Motivo per cui la generazione si è interrotta |
usage.prompt_tokens | integer | Numero di token nel prompt |
usage.completion_tokens | integer | Numero di token nel completamento |
usage.total_tokens | integer | Token totali utilizzati |
Domande
FAQ
Come chiamo MiniMax M4 tramite SandBase?
Crea una chiave API SandBase, poi invia richieste con l'ID modello "minimax/minimax-m4" a Chat Completions API (/v1/chat/completions) su https://api.sandbase.ai. Gli esempi di richiesta in questa pagina mostrano il payload esatto.
Quanto costa MiniMax M4?
$0.80 per 1M token di input e $3.10 per 1M token di output, addebitati per richiesta dal tuo saldo SandBase. Gli sconti, quando disponibili, sono indicati nei prezzi di questa pagina.
Qual è la finestra di contesto di MiniMax M4?
1M token di contesto, con fino a 512K token di output per risposta.
Quali funzionalità supporta MiniMax M4?
MiniMax M4 supporta visione (input immagini), ragionamento, function calling, output strutturato. Consulta le Specifiche sopra per l'elenco completo.
Mi serve un account MiniMax separato?
No. Una sola chiave API e un solo saldo SandBase ti danno accesso a MiniMax M4 e agli altri modelli del catalogo; non è necessario registrarsi separatamente su MiniMax.
