curl --request POST \
--url https://direct.evolink.ai/v1/responses \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "MiniMax-M3.1-Flash",
"input": "Explain recursion in one sentence.",
"max_output_tokens": 131072
}
'{
"id": "0725233a85e23431681447327cbcd9d2",
"object": "response",
"created_at": 1792405562,
"model": "MiniMax-M3.1-Flash",
"status": "completed",
"output": [
{
"id": "0725233a85e23431681447327cbcd9d2_rs",
"type": "reasoning",
"status": "completed",
"summary": [],
"content": [
{
"type": "reasoning_text",
"text": "We need solve CRT. Need only n. Compute. n=3 mod7, 5 mod11,7 mod13. Product 1001. Let's solve.\n\nUse n=3+7a. mod11: 3+7a=5 =>7a=2 mod11. inverse7=8 (56=1), a=16=5 mod11. a=5+11b. n=38+77b. mod13: 38+77b = 12+12b mod13 (77=12,38=12) equals7 =>12b=-5=8 mod13. inverse12=12, b=96 mod13 =5? 91 remainder5. n=38+385=423. Check 423 mod7 3 (420), mod11 5 (418), mod13 7 (416). Smallest positive 423. Only n."
}
],
"encrypted_content": "Ahlub3JtYWwtcmVhc29uaW5nLTIwMjYxMDExjehfvIf2rUinmic9ZiAutly0DD3lHqWEni9ENDziUw0nX-F6VPZLM7x1NbRWbytJNcLH9XQIa-KLYgd-it6XmXzYLvck3xOPOG9wtDdxUnjdBhuuj9dkWrkx0kbK8MFT5UreZ7EcxoRZybrs3oELf2BK_WtDUFOm_FbZXKwNbg76pTCFDoRke0Er0GMWjmi5L8GE7hGnvvBQjHXrwQ88G0L2p6STay-n1FJ5prqz6Q4LEF-xu7FqGjDmh9haliI638ivcQ9XGo9_DLUrtKMh1K4UYN87j2H7vbjbJPJaw6oJ61ZF8Ngk1FSuHUvLB540QKwBJKnClMcvw-ih3CdKRdSTPRfIYlsYOkNCwEWrLwHarLTHG5HzeakMO_5usxOAvzXVDUKRIX7W62x9xKCnVl_Gp0E91dLtlU3U8j_ZZvYCj9pMvd_n_Ba82OUpFxvoXv2R2H1H8bfzztGg5E88fH6OMwoMS5OYa45nCoRFA11Bw7G8OEVqBiPzS48EY1JPjPTC5lBco0CUoeUAHPXeD7jmO-D3LhIL1-3erJ_mxP0ZeiCWUckYaFE2EliolooAHqkoVBmy5Q"
},
{
"id": "0725233a85e23431681447327cbcd9d2_msg",
"type": "message",
"status": "completed",
"role": "assistant",
"content": [
{
"type": "output_text",
"text": "423",
"annotations": []
}
]
}
],
"output_text": "423",
"usage": {
"input_tokens": 239,
"output_tokens": 190,
"total_tokens": 429,
"input_tokens_details": {
"cached_tokens": 174
},
"output_tokens_details": {
"reasoning_tokens": 189
}
},
"error": null,
"incomplete_details": null,
"instructions": null,
"metadata": {},
"tools": null,
"tool_choice": "auto",
"temperature": 1,
"top_p": 0.95,
"text": {
"format": {
"type": "text"
}
},
"reasoning": {
"effort": "medium",
"summary": null
},
"max_output_tokens": 2048,
"max_tool_calls": null,
"parallel_tool_calls": true,
"previous_response_id": null,
"conversation": null,
"store": false,
"service_tier": null,
"safety_identifier": null,
"truncation": "disabled"
}MiniMax-M3.1-Flash - Responses API
- Ruft das Modell MiniMax-M3.1-Flash über das OpenAI Responses-Protokoll auf
- Eingabeformate:
inputkann reiner Text oder ein Array von Eingabeelementen sein (Nachrichten, Funktionsaufrufe und Funktionsergebnisse) - Multimodale Eingabe:
input_text-,input_image- undinput_video-Blöcke können imcontenteiner Nachricht kombiniert werden - Systemanweisungen: werden über
instructionsübergeben, entsprechend einer vorangestellten system-Nachricht - Reasoning: immer aktiviert;
reasoning.effortsteuert die Tiefe. Reasoning-Inhalte werden alsreasoning-Ausgabeelemente zurückgegeben - Streaming-Ausgabe: semantische SSE-Ereignisse, beendet durch
response.completed;[DONE]wird nicht gesendet - Werkzeugaufrufe: unterstützt Function Calling
- Kontext-Cache: identische Präfixe werden automatisch aus dem Cache gelesen; Treffer werden unter
usage.input_tokens_details.cached_tokenserfasst
Zustandslos: Antworten werden nicht gespeichert; previous_response_id wird nicht unterstützt. Bei jeder weiteren Runde alle Elemente aus der vorherigen output in ursprünglicher Reihenfolge und mit sämtlichen Feldern an input anhängen. Dazu gehören content, summary und encrypted_content in Reasoning-Elementen. Nach der Werkzeugausführung ein function_call_output-Element mit derselben call_id wie der Funktionsaufruf anhängen.
Streaming-Ereignisse: response.created, response.in_progress, response.output_item.added, response.content_part.added, response.reasoning_text.delta / response.reasoning_text.done, response.output_text.delta / response.output_text.done, response.content_part.done, response.output_item.done. Das abschließende Ereignis ist response.completed. Jedes Ereignis enthält eine sequence_number für die Sortierung.
curl --request POST \
--url https://direct.evolink.ai/v1/responses \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "MiniMax-M3.1-Flash",
"input": "Explain recursion in one sentence.",
"max_output_tokens": 131072
}
'{
"id": "0725233a85e23431681447327cbcd9d2",
"object": "response",
"created_at": 1792405562,
"model": "MiniMax-M3.1-Flash",
"status": "completed",
"output": [
{
"id": "0725233a85e23431681447327cbcd9d2_rs",
"type": "reasoning",
"status": "completed",
"summary": [],
"content": [
{
"type": "reasoning_text",
"text": "We need solve CRT. Need only n. Compute. n=3 mod7, 5 mod11,7 mod13. Product 1001. Let's solve.\n\nUse n=3+7a. mod11: 3+7a=5 =>7a=2 mod11. inverse7=8 (56=1), a=16=5 mod11. a=5+11b. n=38+77b. mod13: 38+77b = 12+12b mod13 (77=12,38=12) equals7 =>12b=-5=8 mod13. inverse12=12, b=96 mod13 =5? 91 remainder5. n=38+385=423. Check 423 mod7 3 (420), mod11 5 (418), mod13 7 (416). Smallest positive 423. Only n."
}
],
"encrypted_content": "Ahlub3JtYWwtcmVhc29uaW5nLTIwMjYxMDExjehfvIf2rUinmic9ZiAutly0DD3lHqWEni9ENDziUw0nX-F6VPZLM7x1NbRWbytJNcLH9XQIa-KLYgd-it6XmXzYLvck3xOPOG9wtDdxUnjdBhuuj9dkWrkx0kbK8MFT5UreZ7EcxoRZybrs3oELf2BK_WtDUFOm_FbZXKwNbg76pTCFDoRke0Er0GMWjmi5L8GE7hGnvvBQjHXrwQ88G0L2p6STay-n1FJ5prqz6Q4LEF-xu7FqGjDmh9haliI638ivcQ9XGo9_DLUrtKMh1K4UYN87j2H7vbjbJPJaw6oJ61ZF8Ngk1FSuHUvLB540QKwBJKnClMcvw-ih3CdKRdSTPRfIYlsYOkNCwEWrLwHarLTHG5HzeakMO_5usxOAvzXVDUKRIX7W62x9xKCnVl_Gp0E91dLtlU3U8j_ZZvYCj9pMvd_n_Ba82OUpFxvoXv2R2H1H8bfzztGg5E88fH6OMwoMS5OYa45nCoRFA11Bw7G8OEVqBiPzS48EY1JPjPTC5lBco0CUoeUAHPXeD7jmO-D3LhIL1-3erJ_mxP0ZeiCWUckYaFE2EliolooAHqkoVBmy5Q"
},
{
"id": "0725233a85e23431681447327cbcd9d2_msg",
"type": "message",
"status": "completed",
"role": "assistant",
"content": [
{
"type": "output_text",
"text": "423",
"annotations": []
}
]
}
],
"output_text": "423",
"usage": {
"input_tokens": 239,
"output_tokens": 190,
"total_tokens": 429,
"input_tokens_details": {
"cached_tokens": 174
},
"output_tokens_details": {
"reasoning_tokens": 189
}
},
"error": null,
"incomplete_details": null,
"instructions": null,
"metadata": {},
"tools": null,
"tool_choice": "auto",
"temperature": 1,
"top_p": 0.95,
"text": {
"format": {
"type": "text"
}
},
"reasoning": {
"effort": "medium",
"summary": null
},
"max_output_tokens": 2048,
"max_tool_calls": null,
"parallel_tool_calls": true,
"previous_response_id": null,
"conversation": null,
"store": false,
"service_tier": null,
"safety_identifier": null,
"truncation": "disabled"
}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.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
Modell-ID
MiniMax-M3.1-Flash "MiniMax-M3.1-Flash"
Modelleingabe
- Zeichenkette: Der gesamte Text wird als eine
user-Nachricht behandelt - Array: Liste von Eingabeelementen; unterstützt
message,function_call,function_call_outputundreasoning
Multimodal: Kombinieren Sie input_text-, input_image- und input_video-Blöcke im content-Array eines message-Elements.
Konversationen mit mehreren Runden: Die API ist zustandslos. Um eine Konversation fortzusetzen, muss das Array den vollständigen Verlauf enthalten.
"Explain recursion in one sentence."
Anweisungen auf Systemebene, gleichbedeutend mit einer ganz vorne eingefügten system-Nachricht; dient zum Festlegen von Rolle, Tonfall und Ausgabevorgaben.
"You are a technical documentation assistant. Keep your answers concise."
Legt fest, ob die Antwort gestreamt wird
false(Standard): gibt das vollständige Antwortobjekt auf einmal zurücktrue: liefert semantische SSE-Ereignisse; das abschließende Ereignis istresponse.completed.[DONE]wird nicht gesendet
false
Maximale Anzahl der Ausgabetokens für diese Generierung, einschließlich Reasoning und Antwort
- Empfohlen: 131,072 (128K), Maximum: 524,288 (512K)
- Bei einem zu niedrigen Wert kann das Limit bereits während des Reasonings erreicht werden. In diesem Fall wird
status: "incomplete"ohnemessage-Ausgabeelement zurückgegeben
1 <= x <= 524288131072
Reasoning-Konfiguration. MiniMax-M3.1-Flash verwendet immer Reasoning. Die Inhalte werden als reasoning-Ausgabeelemente zurückgegeben; ihre Tokens zählen zur Ausgabe und werden zum Ausgabetarif abgerechnet.
Show child attributes
Show child attributes
Sampling-Temperatur, fest auf 1 gesetzt
1 1
Schwellenwert für Nucleus Sampling, Standardwert: 0.95.
0 <= x <= 10.95
Liste der vom Modell aufrufbaren Werkzeuge. Derzeit wird nur der Typ function unterstützt. Funktionen werden vom Client ausgeführt; ihre Ergebnisse werden als function_call_output-Eingabeelemente zurückgegeben.
Show child attributes
Show child attributes
Strategie zur Werkzeugauswahl. Nur auto wird unterstützt; das Modell entscheidet, ob ein Werkzeug aufgerufen wird
auto "auto"
Konfiguration des Textausgabeformats. Für format.type wird nur text unterstützt
Show child attributes
Show child attributes
Anfrage-Metadaten mit Zeichenketten als Schlüssel und Werte
Show child attributes
Show child attributes
Antwort
Erfolgreich generiert
Antwortobjekt der Responses API. Zusätzlich zu den folgenden Feldern enthält die Antwort die Konfiguration der Anfrage (tools, tool_choice, temperature, top_p, text, reasoning, max_output_tokens usw.).
Eindeutige Kennung dieser Antwort
"072514d63605b7a0c83f1672230c398c"
Objekttyp, stets response
"response"
Erstellungszeit als Unix-Zeitstempel (Sekunden)
1792401878
Antwortstatus
completed: erfolgreich abgeschlossenincomplete: abgeschnitten; die Ursache steht inincomplete_detailsfailed: Generierung fehlgeschlagen; die Ursache steht inerror
completed, incomplete, failed "completed"
ID des Modells, das diese Antwort tatsächlich erzeugt hat
"MiniMax-M3.1-Flash"
Liste der Ausgabeelemente in der Reihenfolge ihrer Generierung:
reasoning: Reasoning-Prozess, ID im Format<id>_rs; enthältcontent(Liste vonreasoning_text-Blöcken),summary(leeres Array) undencrypted_contentmessage: endgültige Antwort, ID im Format<id>_msg; enthältcontent(Liste vonoutput_text-Blöcken)function_call: vom Modell erzeugter Funktionsaufruf, ID im Format<id>_fc_<index>; enthältcall_id,nameundarguments. Der Client muss die Funktion ausführen und das Ergebnis alsfunction_call_outputzurückgeben
Hilfsfeld mit dem zusammengefügten Text aller output_text-Blöcke; null, wenn keine Textausgabe vorhanden ist
Fehlerursache; bei Erfolg null
Ursache der Kürzung; null, wenn die Ausgabe nicht gekürzt wurde. reason ist max_output_tokens (Ausgabelimit erreicht) oder content_filter (Inhaltssicherheit)
Token-Nutzungsstatistik einschließlich Cache- und Reasoning-Aufschlüsselung
Show child attributes
Show child attributes