> ## 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 Messages – Schnellstart

> Anthropic Messages. Pflichtfelder: `model`, `max_tokens`, `messages`. `max_tokens` gilt für Reasoning und Antwort zusammen. `MiniMax-M4` und `MiniMax-M3.1-Flash` verwenden immer Reasoning und liefern es als `thinking`-Blöcke in `content`. `MiniMax-M3` verwendet standardmäßig kein Reasoning. Setzen Sie `thinking` auf `{"type": "adaptive"}`, um es zu aktivieren und einen `thinking`-Block zu erhalten. `MiniMax-M2.5` verwendet Reasoning ohne `thinking`-Block in der Antwort. Die Reasoning-Token zählen zu `output_tokens`. Tool-Aufrufe, Bild- und Videoeingaben, Streaming und mehrstufige Dialoge sind in der [API-Referenz](/de/api-manual/language-series/minimax/messages/messages-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.

> [!NOTE]
>
> `max_tokens` gilt für Reasoning und Antwort zusammen. `MiniMax-M4` und `MiniMax-M3.1-Flash` verwenden immer Reasoning und liefern es als `thinking`-Blöcke in `content`. `MiniMax-M3` verwendet standardmäßig kein Reasoning. Setzen Sie `thinking` auf `{"type": "adaptive"}`, um es zu aktivieren und einen `thinking`-Block zu erhalten. `MiniMax-M2.5` verwendet Reasoning ohne `thinking`-Block in der Antwort. Die Reasoning-Token zählen zu `output_tokens`. Beginnen Sie mit einem Ausgabebudget von mindestens 1.024 Token. Verbraucht das Reasoning das gesamte Budget, kann der Antworttext fehlen.


## OpenAPI

````yaml de/api-manual/language-series/minimax/messages/messages-quickstart.json POST /v1/messages
openapi: 3.1.0
info:
  title: MiniMax Messages – Schnellstart
  description: >-
    MiniMax Messages – Schnellstart (Anthropic-kompatibel). Pflichtfelder:
    `model`, `max_tokens`, `messages`. Tool-Aufrufe, Bild- und Videoeingaben,
    Streaming und mehrstufige Dialoge sind in der
    [API-Referenz](/de/api-manual/language-series/minimax/messages/messages-reference)
    beschrieben.
  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: Messages
    description: Endpunkte des Anthropic Messages-Protokolls
paths:
  /v1/messages:
    post:
      tags:
        - Messages
      summary: MiniMax Messages – Schnellstart (Anthropic-kompatibel)
      description: >-
        Anthropic Messages. Pflichtfelder: `model`, `max_tokens`, `messages`.
        `max_tokens` gilt für Reasoning und Antwort zusammen. `MiniMax-M4` und
        `MiniMax-M3.1-Flash` verwenden immer Reasoning und liefern es als
        `thinking`-Blöcke in `content`. `MiniMax-M3` verwendet standardmäßig
        kein Reasoning. Setzen Sie `thinking` auf `{"type": "adaptive"}`, um es
        zu aktivieren und einen `thinking`-Block zu erhalten. `MiniMax-M2.5`
        verwendet Reasoning ohne `thinking`-Block in der Antwort. Die
        Reasoning-Token zählen zu `output_tokens`. Tool-Aufrufe, Bild- und
        Videoeingaben, Streaming und mehrstufige Dialoge sind in der
        [API-Referenz](/de/api-manual/language-series/minimax/messages/messages-reference)
        beschrieben.
      operationId: createMessageMiniMaxQuick
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateMessageQuickRequest'
            examples:
              simple:
                summary: Minimaler Aufruf
                value:
                  model: MiniMax-M4
                  max_tokens: 4096
                  messages:
                    - role: user
                      content: Please introduce yourself in one sentence.
              flash:
                summary: MiniMax-M3.1-Flash aufrufen
                value:
                  model: MiniMax-M3.1-Flash
                  max_tokens: 4096
                  messages:
                    - role: user
                      content: Explain HTTP in one sentence.
              m3:
                summary: MiniMax-M3 aufrufen
                value:
                  model: MiniMax-M3
                  max_tokens: 4096
                  messages:
                    - role: user
                      content: Explain HTTP in one sentence.
              m25:
                summary: MiniMax-M2.5 aufrufen
                value:
                  model: MiniMax-M2.5
                  max_tokens: 4096
                  messages:
                    - role: user
                      content: Explain HTTP in one sentence.
      responses:
        '200':
          description: Message-Objekt
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MessageResponse'
              examples:
                with_thinking:
                  summary: Mit Reasoning-Inhalten (thinking-Block)
                  value:
                    id: example_a9e449
                    type: message
                    role: assistant
                    model: MiniMax-M3.1-Flash
                    content:
                      - thinking: Let the ball cost x. Then 2x + 1 = 1.10, so x = 0.05.
                        signature: EXAMPLE_THINKING_SIGNATURE
                        type: thinking
                      - text: '0.05'
                        type: text
                    usage:
                      input_tokens: 55
                      output_tokens: 66
                      cache_creation_input_tokens: 0
                      cache_read_input_tokens: 174
                      output_tokens_details:
                        thinking_tokens: 63
                    stop_reason: end_turn
                m25_answer:
                  summary: Antwort von `MiniMax-M2.5` (ohne `thinking`-Block)
                  value:
                    id: chatcmpl-example
                    type: message
                    role: assistant
                    content:
                      - type: text
                        text: >-
                          Recursion is a technique in which a function calls
                          itself to solve smaller instances of a problem.
                    stop_reason: end_turn
                    model: MiniMax-M2.5
                    usage:
                      input_tokens: 44
                      cache_creation_input_tokens: 0
                      cache_read_input_tokens: 0
                      output_tokens: 101
        '400':
          description: Ungültige Anfrageparameter
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                type: error
                request_id: req_xxx
                error:
                  type: invalid_request_error
                  message: Invalid request
        '401':
          description: Authentifizierungsfehler
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                type: error
                error:
                  type: authentication_error
                  message: Authentication error
        '402':
          description: Kontingent unzureichend
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                type: error
                error:
                  type: billing_error
                  message: Insufficient quota
        '403':
          description: Berechtigungsfehler
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                type: error
                error:
                  type: permission_error
                  message: Permission denied
        '404':
          description: Modell oder Ressource nicht gefunden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                type: error
                error:
                  type: not_found_error
                  message: Model not found
        '429':
          description: Anfragelimit überschritten
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                type: error
                error:
                  type: rate_limit_error
                  message: Rate limited
        '500':
          description: Interner Serverfehler
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '502':
          description: Bad Gateway
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '503':
          description: Dienst vorübergehend nicht verfügbar
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    CreateMessageQuickRequest:
      type: object
      required:
        - model
        - max_tokens
        - messages
      properties:
        model:
          type: string
          description: >-
            | 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.
          enum:
            - MiniMax-M4
            - MiniMax-M3.1-Flash
            - MiniMax-M3
            - MiniMax-M2.5
          example: MiniMax-M4
        max_tokens:
          type: integer
          minimum: 1
          example: 4096
          description: >-
            Im Anthropic-Protokoll erforderlich. **Maximale Ausgabe
            (einschließlich Reasoning-Token)** — `MiniMax-M4` 262,144,
            `MiniMax-M3.1-Flash` 524,288, `MiniMax-M3` 524,288, `MiniMax-M2.5`
            32,768. Beginnen Sie mit einem Ausgabebudget von mindestens 1.024
            Token. Verbraucht das Reasoning das gesamte Budget, kann der
            Antworttext fehlen.
        messages:
          type: array
          description: >-
            Liste der Konversationsnachrichten in chronologischer Reihenfolge.
            Mindestens eine Nachricht ist erforderlich.
          minItems: 1
          items:
            type: object
            required:
              - role
              - content
            properties:
              role:
                type: string
                enum:
                  - user
                  - assistant
                description: Nachrichtenrolle
              content:
                type: string
                description: Nachrichtentext
    MessageResponse:
      type: object
      description: Nachrichtenantwort im Anthropic-Stil
      properties:
        id:
          type: string
          description: Eindeutige Nachrichten-ID
        type:
          type: string
          enum:
            - message
          description: Typ des Antwortobjekts
        role:
          type: string
          enum:
            - assistant
        model:
          type: string
          description: Tatsächlich verwendetes Modell
          example: MiniMax-M4
        content:
          type: array
          description: >-
            Antwortblöcke: `thinking` für Reasoning (kann bei einfachen Fragen
            fehlen und entfällt bei `MiniMax-M2.5`), `text` für den Antworttext,
            `tool_use` für einen Tool-Aufruf.
          items:
            $ref: '#/components/schemas/OutputContentBlock'
        stop_reason:
          type: string
          description: |-
            Stoppgrund

            - `end_turn`: Natürlicher Abschluss
            - `max_tokens`: max_tokens-Limit erreicht
            - `tool_use`: Modell hat einen Werkzeugaufruf ausgelöst
          enum:
            - end_turn
            - max_tokens
            - tool_use
        usage:
          $ref: '#/components/schemas/AnthropicUsage'
    ErrorResponse:
      type: object
      properties:
        type:
          type: string
          enum:
            - error
        error:
          type: object
          properties:
            type:
              type: string
              description: >-
                Fehlertyp (z. B. invalid_request_error / authentication_error /
                billing_error usw.)
            message:
              type: string
              description: Fehlerbeschreibung
        request_id:
          type: string
          description: Anfrage-Tracking-ID
    OutputContentBlock:
      type: object
      description: Inhaltsblock in der Antwort
      properties:
        type:
          type: string
          enum:
            - text
            - thinking
            - tool_use
        text:
          type: string
          description: Text, wenn type=`text`
        thinking:
          type: string
          description: Reasoning-Prozesstext, wenn type=`thinking`
        signature:
          type: string
          description: >-
            Integritätssignatur, wenn type=`thinking`, wird zur Kontextprüfung
            über mehrere Runden verwendet. Das Beispiel verwendet einen
            Platzhalter für `signature`. Verwenden Sie für die nächste Anfrage
            den vollständigen Wert aus Ihrer vorherigen Antwort.
        id:
          type: string
          description: Werkzeugaufruf-ID, wenn type=`tool_use`
        name:
          type: string
          description: Werkzeugname, wenn type=`tool_use`
        input:
          type: object
          description: Vom Modell generierte JSON-Eingabeparameter, wenn type=`tool_use`
    AnthropicUsage:
      type: object
      description: Token-Nutzungsstatistik (Anthropic-Spezifikation)
      properties:
        input_tokens:
          type: integer
          description: >-
            Anzahl der nicht aus dem Cache gelesenen Eingabetokens (ohne
            `cache_read_input_tokens`)
          example: 55
        output_tokens:
          type: integer
          description: Anzahl der Ausgabe-Tokens (einschließlich Nachdenken)
          example: 66
        cache_creation_input_tokens:
          type: integer
          description: >-
            Anzahl der Eingabetokens zur Cache-Erstellung; bei automatischem
            Caching 0
          example: 0
        cache_read_input_tokens:
          type: integer
          description: >-
            Anzahl der aus dem Cache gelesenen Eingabetokens, abgerechnet zum
            Cache-Tarif. Vollständige Eingabe = `input_tokens +
            cache_read_input_tokens`
          example: 174
        output_tokens_details:
          type: object
          description: Detaillierte Aufschlüsselung der Ausgabe-Tokens
          properties:
            thinking_tokens:
              type: integer
              description: >-
                Anzahl der Reasoning-Tokens (bereits in `output_tokens`
                enthalten)
              example: 63
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        Alle APIs erfordern eine Bearer-Token-Authentifizierung


        **API-Key erhalten:**


        Besuchen Sie die
        [API-Key-Verwaltungsseite](https://evolink.ai/dashboard/keys), um Ihren
        API-Key zu erhalten


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

        ```

        Authorization: Bearer YOUR_API_KEY

        ```


        **Hinweis**: EvoLink verwendet für `/v1/messages` einheitlich die
        Bearer-Token-Authentifizierung.

````

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