> ## Documentation Index
> Fetch the complete documentation index at: https://evolink.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# MiniMax Responses – Schnellstart

> Unterstützte Modelle: `MiniMax-M4`, `MiniMax-M3.1-Flash`. Pflichtfelder: `model`, `input`. `max_output_tokens` — Beginnen Sie mit einem Ausgabebudget von mindestens 1.024 Token. Verbraucht das Reasoning das gesamte Budget, kann der Antworttext fehlen. Tool-Aufrufe, Bild- und Videoeingaben, Streaming und mehrstufige Dialoge sind in der [API-Referenz](/de/api-manual/language-series/minimax/responses/responses-reference) beschrieben.

> [!NOTE]
>
> **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.

`POST /v1/responses` — Unterstützte Modelle: `MiniMax-M4`, `MiniMax-M3.1-Flash`. Pflichtfelder: `model`, `input`. Das Minimalbeispiel setzt zusätzlich ein Ausgabelimit.

> [!WARNING]
>
> Nur `MiniMax-M4` und `MiniMax-M3.1-Flash` unterstützen Responses. Nutzen Sie für `MiniMax-M3` und `MiniMax-M2.5` [Chat Completions](https://evolink.ai/docs/de/api-manual/language-series/minimax/chat-completions/chat-completions-quickstart.md) oder [Messages](https://evolink.ai/docs/de/api-manual/language-series/minimax/messages/messages-quickstart.md).
>
> Verwenden Sie `input` für die Eingabe, `max_output_tokens` für das Ausgabelimit und `reasoning.effort` für die Reasoning-Tiefe. `MiniMax-M4` und `MiniMax-M3.1-Flash` verwenden immer Reasoning. Reasoning-Stufen: `low`, `medium`, `high`, `xhigh` oder `max` (Standard). `none` führt zu HTTP 400. Höhere Stufen benötigen meist mehr Reasoning-Token und Zeit.

## Antworttext auslesen

`output` kann Reasoning, Nachrichten und Tool-Aufrufe enthalten. Lesen Sie die `output_text`-Blöcke in Einträgen mit `type="message"`. Der erste Eintrag kann Reasoning enthalten.

Wenn das Antwort-JSON bereits als `response` eingelesen wurde, lässt sich der Text so extrahieren:

```python theme={null}
text = "".join(
    part["text"]
    for item in response.get("output", [])
    if item.get("type") == "message"
    for part in item.get("content", [])
    if part.get("type") == "output_text"
)
print(text)
```

> [!NOTE]
>
> **Maximale Ausgabe (einschließlich Reasoning-Token)** — `MiniMax-M4` 262,144, `MiniMax-M3.1-Flash` 524,288. Beginnen Sie mit einem Ausgabebudget von mindestens 1.024 Token. Verbraucht das Reasoning das gesamte Budget, kann der Antworttext fehlen. Erhöhen Sie bei `status="incomplete"` und `incomplete_details.reason="max_output_tokens"` das Ausgabelimit.

Tool-Aufrufe, Bild- und Videoeingaben, Streaming und mehrstufige Dialoge sind in der [API-Referenz](https://evolink.ai/docs/de/api-manual/language-series/minimax/responses/responses-reference.md) beschrieben.


## OpenAPI

````yaml de/api-manual/language-series/minimax/responses/responses-quickstart.json POST /v1/responses
openapi: 3.1.0
info:
  title: MiniMax Responses – Schnellstart
  description: >-
    MiniMax Responses – Schnellstart (OpenAI Responses) — `MiniMax-M4`,
    `MiniMax-M3.1-Flash`.
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://direct.evolink.ai
    description: Produktion (empfohlen)
  - url: https://api.evolink.ai
    description: Alternative URL
security:
  - bearerAuth: []
tags:
  - name: Chat-Vervollständigung
    description: Endpunkte für KI-Chat-Vervollständigung
paths:
  /v1/responses:
    post:
      tags:
        - Chat-Vervollständigung
      summary: MiniMax Responses – Schnellstart
      description: >-
        Unterstützte Modelle: `MiniMax-M4`, `MiniMax-M3.1-Flash`. Pflichtfelder:
        `model`, `input`. `max_output_tokens` — Beginnen Sie mit einem
        Ausgabebudget von mindestens 1.024 Token. Verbraucht das Reasoning das
        gesamte Budget, kann der Antworttext fehlen. Tool-Aufrufe, Bild- und
        Videoeingaben, Streaming und mehrstufige Dialoge sind in der
        [API-Referenz](/de/api-manual/language-series/minimax/responses/responses-reference)
        beschrieben.
      operationId: createResponseMiniMaxQuick
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ResponsesQuickRequest'
            examples:
              simple:
                summary: Minimaler Aufruf
                value:
                  model: MiniMax-M4
                  input: Please introduce yourself in one sentence.
                  max_output_tokens: 4096
              flash:
                summary: MiniMax-M3.1-Flash aufrufen
                value:
                  model: MiniMax-M3.1-Flash
                  input: Explain HTTP in one sentence.
                  max_output_tokens: 4096
      responses:
        '200':
          description: Erfolgreich generiert
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResponsesResponse'
              examples:
                with_reasoning:
                  summary: Mit Reasoning-Inhalten
                  value:
                    id: example_ae5b7d
                    object: response
                    created_at: 1792405562
                    model: MiniMax-M3.1-Flash
                    status: completed
                    output:
                      - id: example_ae5b7d_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.


                              Use 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: EXAMPLE_ENCRYPTED_CONTENT
                      - id: example_ae5b7d_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
                function_call:
                  summary: Werkzeugaufruf auslösen
                  value:
                    id: example_2ab00b
                    object: response
                    created_at: 1792405566
                    model: MiniMax-M3.1-Flash
                    status: completed
                    output:
                      - id: example_2ab00b_msg
                        type: message
                        status: completed
                        role: assistant
                        content:
                          - type: output_text
                            text: I'll check the stock level for that product now.
                            annotations: []
                      - id: example_2ab00b_fc_0
                        type: function_call
                        status: completed
                        call_id: call_example_1
                        name: get_product_stock
                        arguments: '{"product_id": "demo-item-001"}'
                    output_text: I'll check the stock level for that product now.
                    usage:
                      input_tokens: 479
                      output_tokens: 43
                      total_tokens: 522
                      input_tokens_details:
                        cached_tokens: 174
                    error: null
                    incomplete_details: null
                incomplete:
                  summary: Ausgabelimit erreicht (status=incomplete)
                  value:
                    id: example_de610c
                    object: response
                    created_at: 1792401719
                    model: MiniMax-M3.1-Flash
                    status: incomplete
                    output:
                      - id: example_de610c_rs
                        type: reasoning
                        status: completed
                        summary: []
                        content:
                          - type: reasoning_text
                            text: I need to explain the process step by step.
                        encrypted_content: EXAMPLE_ENCRYPTED_CONTENT
                    output_text: null
                    usage:
                      input_tokens: 211
                      output_tokens: 8
                      total_tokens: 219
                      input_tokens_details:
                        cached_tokens: 195
                      output_tokens_details:
                        reasoning_tokens: 8
                    error: null
                    incomplete_details:
                      reason: max_output_tokens
        '400':
          description: Ungültige Anfrageparameter
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: invalid_prompt
                  message: Invalid request parameters
                  type: invalid_request_error
        '401':
          description: Nicht autorisiert, ungültiges oder abgelaufenes Token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: 401
                  message: Invalid authentication credentials
                  type: authentication_error
        '402':
          description: Kontingent unzureichend, Aufladung erforderlich
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: 402
                  message: Insufficient quota
                  type: insufficient_quota
        '403':
          description: Zugriff auf dieses Modell verweigert
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: 403
                  message: Model access denied
                  type: permission_error
        '404':
          description: Ressource nicht gefunden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: 404
                  message: Model not found
                  type: not_found_error
        '413':
          description: Anfragetext zu groß
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: 413
                  message: Request entity too large
                  type: invalid_request_error
        '429':
          description: Anfragelimit überschritten
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: 429
                  message: Rate limit exceeded
                  type: rate_limit_error
        '500':
          description: Interner Serverfehler
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: 500
                  message: Internal server error
                  type: server_error
        '502':
          description: Bad Gateway
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: 502
                  message: Bad gateway
                  type: server_error
        '503':
          description: Dienst vorübergehend nicht verfügbar
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: 503
                  message: Service temporarily unavailable
                  type: server_error
components:
  schemas:
    ResponsesQuickRequest:
      type: object
      required:
        - model
        - input
      properties:
        model:
          type: string
          enum:
            - MiniMax-M4
            - MiniMax-M3.1-Flash
          example: MiniMax-M4
          description: >-
            | Modell | Kontext (Token) | Maximale Ausgabe (Token) |

            | --- | --- | --- |

            | `MiniMax-M4` | 1,000,000 | 262,144 |

            | `MiniMax-M3.1-Flash` | 1,000,000 | 524,288 |


            Nur `MiniMax-M4` und `MiniMax-M3.1-Flash` unterstützen Responses.
            Nutzen Sie für `MiniMax-M3` und `MiniMax-M2.5` [Chat
            Completions](/de/api-manual/language-series/minimax/chat-completions/chat-completions-quickstart)
            oder
            [Messages](/de/api-manual/language-series/minimax/messages/messages-quickstart).
        input:
          type: string
          example: Explain recursion in one sentence.
          description: >-
            Pflichtfelder: `model`, `input`. Ein Textstring gilt als eine
            Benutzernachricht. Übergeben Sie für mehrere Dialogrunden, Bilder,
            Videos oder Tool-Aufrufe ein Array von Eingabeelementen.
            Tool-Aufrufe, Bild- und Videoeingaben, Streaming und mehrstufige
            Dialoge sind in der
            [API-Referenz](/de/api-manual/language-series/minimax/responses/responses-reference)
            beschrieben.
        max_output_tokens:
          type: integer
          minimum: 1
          example: 4096
          description: >-
            Beginnen Sie mit einem Ausgabebudget von mindestens 1.024 Token.
            Verbraucht das Reasoning das gesamte Budget, kann der Antworttext
            fehlen. **Maximale Ausgabe (einschließlich Reasoning-Token)** —
            `MiniMax-M4` 262,144, `MiniMax-M3.1-Flash` 524,288.
    ResponsesResponse:
      type: object
      description: >-
        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.).
      properties:
        id:
          type: string
          description: Eindeutige Kennung dieser Antwort
          example: resp_example
        object:
          type: string
          description: Objekttyp, stets `response`
          example: response
        created_at:
          type: integer
          description: Erstellungszeit als Unix-Zeitstempel (Sekunden)
          example: 1792401878
        status:
          type: string
          description: >-
            Antwortstatus


            - `completed`: erfolgreich abgeschlossen

            - `incomplete`: abgeschnitten; die Ursache steht in
            `incomplete_details`

            - `failed`: Generierung fehlgeschlagen; die Ursache steht in `error`
          enum:
            - completed
            - incomplete
            - failed
          example: completed
        model:
          type: string
          description: ID des Modells, das diese Antwort tatsächlich erzeugt hat
          example: MiniMax-M4
        output:
          type: array
          description: >-
            Liste der Ausgabeelemente in der Reihenfolge ihrer Generierung:


            - `reasoning`: Reasoning-Prozess, ID im Format `<id>_rs`; enthält
            `content` (Liste von `reasoning_text`-Blöcken), `summary` (leeres
            Array) und `encrypted_content`

            - `message`: endgültige Antwort, ID im Format `<id>_msg`; enthält
            `content` (Liste von `output_text`-Blöcken)

            - `function_call`: vom Modell erzeugter Funktionsaufruf, ID im
            Format `<id>_fc_<index>`; enthält `call_id`, `name` und `arguments`.
            Der Client muss die Funktion ausführen und das Ergebnis als
            `function_call_output` zurückgeben
          items:
            type: object
        output_text:
          type:
            - string
            - 'null'
          description: >-
            Hilfsfeld mit dem zusammengefügten Text aller `output_text`-Blöcke;
            `null`, wenn keine Textausgabe vorhanden ist
        error:
          type:
            - object
            - 'null'
          description: Fehlerursache; bei Erfolg `null`
        incomplete_details:
          type:
            - object
            - 'null'
          description: >-
            Ursache der Kürzung; `null`, wenn die Ausgabe nicht gekürzt wurde.
            `reason` ist `max_output_tokens` (Ausgabelimit erreicht) oder
            `content_filter` (Inhaltssicherheit)
        usage:
          $ref: '#/components/schemas/Usage'
    ErrorResponse:
      type: object
      description: Fehlerantwort
      properties:
        error:
          type: object
          properties:
            code:
              type:
                - integer
                - string
                - 'null'
              description: Fehlercode
              example: invalid_prompt
            message:
              type: string
              description: Fehlerbeschreibung
              example: Invalid request parameters
            type:
              type: string
              description: Fehlertyp
              example: invalid_request_error
    Usage:
      type: object
      description: >-
        Token-Nutzungsstatistik einschließlich Cache- und
        Reasoning-Aufschlüsselung
      properties:
        input_tokens:
          type: integer
          description: Gesamtzahl der Eingabetokens einschließlich Cache-Treffern
          example: 207
        input_tokens_details:
          type: object
          description: Detaillierte Aufschlüsselung der Eingabe-Tokens
          properties:
            cached_tokens:
              type: integer
              description: >-
                Anzahl der aus dem Cache gelesenen Eingabetokens


                Cache-Treffer werden zum Cache-Tarif abgerechnet. Nicht gecachte
                Tokens = `input_tokens - cached_tokens`; diese werden zum
                regulären Eingabetarif abgerechnet
              example: 174
        output_tokens:
          type: integer
          description: Anzahl der Ausgabetokens (einschließlich des Denkanteils)
          example: 32
        output_tokens_details:
          type: object
          description: Detaillierte Aufschlüsselung der Ausgabe-Tokens
          properties:
            reasoning_tokens:
              type: integer
              description: >-
                Anzahl der Reasoning-Tokens (bereits in `output_tokens`
                enthalten)
              example: 9
        total_tokens:
          type: integer
          description: Gesamtzahl der Tokens = input_tokens + output_tokens
          example: 239
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        Alle APIs erfordern eine Bearer-Token-Authentifizierung


        **API-Schlüssel abrufen**:


        Besuchen Sie die
        [API-Schlüsselverwaltung](https://evolink.ai/dashboard/keys), um Ihren
        API-Schlüssel abzurufen


        **Zum Anfrage-Header hinzufügen**:

        ```

        Authorization: Bearer YOUR_API_KEY

        ```

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.