curl --request POST \
--url https://direct.evolink.ai/v1/chat/completions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "MiniMax-M4",
"messages": [
{
"role": "user",
"content": "Please introduce yourself in one sentence."
}
]
}
'{
"id": "example_c425f5",
"choices": [
{
"finish_reason": "stop",
"index": 0,
"message": {
"content": "0.05",
"role": "assistant",
"name": "MiniMax AI",
"reasoning_content": "Let the ball cost x. Then 2x + 1 = 1.10, so x = 0.05."
}
}
],
"created": 1792401901,
"model": "MiniMax-M3.1-Flash",
"object": "chat.completion",
"usage": {
"total_tokens": 281,
"total_characters": 0,
"prompt_tokens": 229,
"completion_tokens": 52,
"completion_tokens_details": {
"reasoning_tokens": 49
},
"prompt_tokens_details": {
"cached_tokens": 187
}
}
}Chat Completions API
MiniMax Chat Completions – Schnellstart
OpenAI Chat Completions. Pflichtfelder: model, messages. An diesem Endpunkt ist Reasoning für alle Modelle standardmäßig aktiviert. Reasoning-Token zählen zum Ausgabelimit und werden zum Ausgabetarif abgerechnet. Tool-Aufrufe, Bild- und Videoeingaben, Streaming und mehrstufige Dialoge sind in der API-Referenz beschrieben.
POST
/
v1
/
chat
/
completions
curl --request POST \
--url https://direct.evolink.ai/v1/chat/completions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "MiniMax-M4",
"messages": [
{
"role": "user",
"content": "Please introduce yourself in one sentence."
}
]
}
'{
"id": "example_c425f5",
"choices": [
{
"finish_reason": "stop",
"index": 0,
"message": {
"content": "0.05",
"role": "assistant",
"name": "MiniMax AI",
"reasoning_content": "Let the ball cost x. Then 2x + 1 = 1.10, so x = 0.05."
}
}
],
"created": 1792401901,
"model": "MiniMax-M3.1-Flash",
"object": "chat.completion",
"usage": {
"total_tokens": 281,
"total_characters": 0,
"prompt_tokens": 229,
"completion_tokens": 52,
"completion_tokens_details": {
"reasoning_tokens": 49
},
"prompt_tokens_details": {
"cached_tokens": 187
}
}
}BaseURL: Die Standard-BaseURL ist
https://direct.evolink.ai, die Textmodelle und langlebige Verbindungen besser unterstützt. https://api.evolink.ai ist der primäre Endpunkt für multimodale Dienste und dient als Ausweichadresse für Textmodelle.An diesem Endpunkt ist Reasoning für alle Modelle standardmäßig aktiviert. Reasoning-Token zählen zum Ausgabelimit und werden zum Ausgabetarif abgerechnet. Bei
MiniMax-M3 beginnt content standardmäßig mit <think>...</think>. Mit reasoning_split: true erhalten Sie das Reasoning separat in reasoning_content. Tool-Aufrufe, Bild- und Videoeingaben, Streaming und mehrstufige Dialoge sind in der API-Referenz beschrieben.Autorisierungen
Alle APIs erfordern eine Bearer-Token-Authentifizierung
API-Schlüssel abrufen:
Besuchen Sie die API-Schlüsselverwaltung, um Ihren API-Schlüssel abzurufen
Zum Anfrage-Header hinzufügen:
Authorization: Bearer YOUR_API_KEY
Body
application/json
| Modell | Kontext (Token) | Maximale Ausgabe (Token) |
|---|---|---|
MiniMax-M4 | 1,000,000 | 262,144 |
MiniMax-M3.1-Flash | 1,000,000 | 524,288 |
MiniMax-M3 | 1,000,000 | 524,288 |
MiniMax-M2.5 | 204,800 | 32,768 |
MiniMax-M4, MiniMax-M3.1-Flash und MiniMax-M3 akzeptieren Bilder und Videos. MiniMax-M2.5 akzeptiert nur Text.
Verfügbare Optionen:
MiniMax-M4, MiniMax-M3.1-Flash, MiniMax-M3, MiniMax-M2.5 Beispiel:
"MiniMax-M4"
Antwort
Chat erfolgreich generiert