> ## 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 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](/de/api-manual/language-series/minimax/chat-completions/chat-completions-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]
>
> 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](https://evolink.ai/docs/de/api-manual/language-series/minimax/chat-completions/chat-completions-reference.md) beschrieben.


## OpenAPI

````yaml de/api-manual/language-series/minimax/chat-completions/chat-completions-quickstart.json POST /v1/chat/completions
openapi: 3.1.0
info:
  title: MiniMax Chat Completions – Schnellstart
  description: >-
    MiniMax Chat Completions – Schnellstart (OpenAI-kompatibel). Pflichtfelder:
    `model`, `messages`. Tool-Aufrufe, Bild- und Videoeingaben, Streaming und
    mehrstufige Dialoge sind in der
    [API-Referenz](/de/api-manual/language-series/minimax/chat-completions/chat-completions-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: Chat-Vervollständigung
    description: Endpunkte für KI-Chat-Vervollständigung
paths:
  /v1/chat/completions:
    post:
      tags:
        - Chat-Vervollständigung
      summary: MiniMax Chat Completions – Schnellstart
      description: >-
        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](/de/api-manual/language-series/minimax/chat-completions/chat-completions-reference)
        beschrieben.
      operationId: createChatCompletionMiniMaxQuick
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ChatCompletionQuickRequest'
            examples:
              simple:
                summary: Minimaler Aufruf
                value:
                  model: MiniMax-M4
                  messages:
                    - role: user
                      content: Please introduce yourself in one sentence.
              flash:
                summary: MiniMax-M3.1-Flash aufrufen
                value:
                  model: MiniMax-M3.1-Flash
                  messages:
                    - role: user
                      content: Explain HTTP in one sentence.
              m3:
                summary: MiniMax-M3 aufrufen
                value:
                  model: MiniMax-M3
                  messages:
                    - role: user
                      content: Explain HTTP in one sentence.
              m25:
                summary: MiniMax-M2.5 aufrufen
                value:
                  model: MiniMax-M2.5
                  messages:
                    - role: user
                      content: Explain HTTP in one sentence.
              multi_turn:
                summary: Mehrstufige Konversation
                value:
                  model: MiniMax-M4
                  messages:
                    - role: user
                      content: Recommend a programming language for beginners.
                    - role: assistant
                      content: >-
                        Python is a good choice: simple syntax and a large
                        ecosystem.
                    - role: user
                      content: How long does it take to learn?
      responses:
        '200':
          description: Chat erfolgreich generiert
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ChatCompletionResponse'
              examples:
                with_thinking:
                  summary: Mit Reasoning-Inhalten
                  value:
                    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
                direct_answer:
                  summary: Direkte Antwort (ohne Reasoning-Inhalte)
                  value:
                    id: example_c7cb0e
                    choices:
                      - finish_reason: stop
                        index: 0
                        message:
                          content: >-
                            Recursion is a technique in which a function calls
                            itself to solve smaller instances of a problem.
                          role: assistant
                          name: MiniMax AI
                    created: 1792401868
                    model: MiniMax-M3.1-Flash
                    object: chat.completion
                    usage:
                      total_tokens: 219
                      total_characters: 0
                      prompt_tokens: 208
                      completion_tokens: 11
                      prompt_tokens_details:
                        cached_tokens: 58
                tool_calls:
                  summary: Werkzeugaufruf ausgelöst (finish_reason=tool_calls)
                  value:
                    id: example_2d249e
                    choices:
                      - finish_reason: tool_calls
                        index: 0
                        message:
                          content: I'll check the stock for product demo-item-001.
                          role: assistant
                          name: MiniMax AI
                          tool_calls:
                            - id: call_example_1
                              type: function
                              function:
                                name: get_product_stock
                                arguments: '{"product_id": "demo-item-001"}'
                              index: 0
                    created: 1792401870
                    model: MiniMax-M3.1-Flash
                    object: chat.completion
                    usage:
                      total_tokens: 483
                      total_characters: 0
                      prompt_tokens: 446
                      completion_tokens: 37
                      prompt_tokens_details:
                        cached_tokens: 227
                length:
                  summary: Ausgabelimit erreicht (finish_reason=length)
                  value:
                    id: example_a5ad57
                    choices:
                      - finish_reason: length
                        index: 0
                        message:
                          content: ''
                          role: assistant
                          name: MiniMax AI
                          reasoning_content: I need to explain the process step by step.
                    created: 1792401615
                    model: MiniMax-M3.1-Flash
                    object: chat.completion
                    usage:
                      total_tokens: 219
                      total_characters: 0
                      prompt_tokens: 211
                      completion_tokens: 8
                      completion_tokens_details:
                        reasoning_tokens: 8
                      prompt_tokens_details:
                        cached_tokens: 184
                m3_inline_thinking:
                  summary: >-
                    Standardantwort von `MiniMax-M3` mit Reasoning am Anfang von
                    `content`
                  value:
                    id: example_818ad0
                    choices:
                      - finish_reason: stop
                        index: 0
                        message:
                          content: >-
                            <think>Let the ball cost x. Then 2x + 1 = 1.10, so x
                            = 0.05.</think>


                            0.05
                          role: assistant
                    created: 1796307610
                    model: MiniMax-M3
                    object: chat.completion
                    usage:
                      total_tokens: 308
                      total_characters: 0
                      prompt_tokens: 224
                      completion_tokens: 84
                      completion_tokens_details:
                        reasoning_tokens: 78
                      prompt_tokens_details:
                        cached_tokens: 193
                m25_answer:
                  summary: Antwort von `MiniMax-M2.5`
                  value:
                    id: chatcmpl-example
                    choices:
                      - finish_reason: stop
                        index: 0
                        message:
                          content: >-
                            Recursion is a technique in which a function calls
                            itself to solve smaller instances of a problem.
                          reasoning_content: >-
                            The user wants a one-sentence definition of
                            recursion.
                          role: assistant
                    created: 1796307389
                    model: MiniMax-M2.5
                    object: chat.completion
                    usage:
                      prompt_tokens: 44
                      completion_tokens: 90
                      total_tokens: 134
                      completion_tokens_details:
                        reasoning_tokens: 84
                      prompt_tokens_details:
                        cached_tokens: 0
        '400':
          description: Ungültige Anfrageparameter
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  message: Invalid request parameters
                  type: invalid_request_error
                  param: ''
                  code: null
        '401':
          description: Nicht autorisiert, ungültiges oder abgelaufenes Token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: 401
                  message: Invalid or expired token
                  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_error
        '403':
          description: Zugriff auf dieses Modell verweigert
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: 403
                  message: Access denied for this model
                  type: permission_error
                  param: model
        '404':
          description: Ressource nicht gefunden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: 404
                  message: Specified model not found
                  type: not_found_error
                  param: model
        '413':
          description: Anfragetext zu groß
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: 413
                  message: Request body too large
                  type: request_too_large_error
                  param: messages
        '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: internal_server_error
        '502':
          description: Bad Gateway
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: 502
                  message: Bad gateway
                  type: bad_gateway_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: service_unavailable_error
components:
  schemas:
    ChatCompletionQuickRequest:
      type: object
      required:
        - model
        - 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
        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:
                  - system
                  - user
                  - assistant
                description: Nachrichtenrolle
              content:
                type: string
                description: Nachrichtentext
    ChatCompletionResponse:
      type: object
      properties:
        id:
          type: string
          description: Eindeutige Kennung für die Chat-Vervollständigung
          example: chatcmpl-example
        model:
          type: string
          description: Tatsächlich verwendeter Modellname
          example: MiniMax-M4
        object:
          type: string
          enum:
            - chat.completion
          description: Antworttyp
          example: chat.completion
        created:
          type: integer
          description: Erstellungszeitstempel (Unix-Sekunden)
          example: 1777026807
        choices:
          type: array
          description: Liste der Chat-Vervollständigungsoptionen
          items:
            $ref: '#/components/schemas/Choice'
        usage:
          $ref: '#/components/schemas/Usage'
    ErrorResponse:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type:
                - integer
                - string
                - 'null'
              description: HTTP-Status-Fehlercode
            message:
              type: string
              description: Fehlerbeschreibung
            type:
              type: string
              description: Fehlertyp
            param:
              type: string
              description: Name des betroffenen Parameters
    Choice:
      type: object
      properties:
        index:
          type: integer
          description: Index der Option
          example: 0
        message:
          $ref: '#/components/schemas/AssistantMessage'
        finish_reason:
          type: string
          description: |-
            Abschlussgrund

            - `stop`: Natürlicher Abschluss oder Stoppsequenz ausgelöst
            - `length`: Maximales Token-Limit erreicht
            - `content_filter`: Inhalt durch Sicherheitsrichtlinie gefiltert
            - `tool_calls`: Modell hat ein Werkzeug aufgerufen
          enum:
            - stop
            - length
            - content_filter
            - tool_calls
          example: stop
    Usage:
      type: object
      description: Token-Nutzungsstatistik
      properties:
        total_tokens:
          type: integer
          description: Gesamtanzahl der verbrauchten Tokens
          example: 1604
        total_characters:
          type: integer
          description: Gesamtanzahl der verbrauchten Zeichen
          example: 0
        prompt_tokens:
          type: integer
          description: Gesamtzahl der Eingabetokens einschließlich Cache-Treffern
          example: 1365
        completion_tokens:
          type: integer
          description: Anzahl der Ausgabetokens (einschließlich des Denkanteils)
          example: 239
        completion_tokens_details:
          type: object
          description: Detaillierte Aufschlüsselung der Ausgabe-Tokens
          properties:
            reasoning_tokens:
              type: integer
              description: Anzahl der Reasoning-Tokens
              example: 49
        prompt_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 = `prompt_tokens - cached_tokens`; diese werden zum
                regulären Eingabetarif abgerechnet
              example: 114
    AssistantMessage:
      type: object
      properties:
        role:
          type: string
          description: Rolle des Nachrichtenabsenders
          enum:
            - assistant
          example: assistant
        content:
          type:
            - string
            - 'null'
          description: >-
            Text der endgültigen Antwort. Bei Tool-Aufrufen ist `null` möglich.
            Bei `MiniMax-M3` beginnt `content` standardmäßig mit
            `<think>...</think>`. Mit `reasoning_split: true` erhalten Sie das
            Reasoning separat in `reasoning_content`.
          example: '0.05'
        reasoning_content:
          type: string
          description: >-
            Bei `MiniMax-M3` beginnt `content` standardmäßig mit
            `<think>...</think>`. Mit `reasoning_split: true` erhalten Sie das
            Reasoning separat in `reasoning_content`. Bei einfachen Fragen kann
            das Reasoning entfallen. Dann fehlt dieses Feld.
          example: Let the ball cost x. Then 2x + 1 = 1.10, so x = 0.05.
        name:
          type: string
          description: Name des Absenders
        tool_calls:
          type: array
          description: >-
            Liste der Werkzeugaufrufe (wird zurückgegeben, wenn das Modell
            beschließt, ein Werkzeug aufzurufen)
          items:
            type: object
            properties:
              id:
                type: string
                description: Eindeutige Kennung für den Werkzeugaufruf
              type:
                type: string
                enum:
                  - function
              function:
                type: object
                properties:
                  name:
                    type: string
                    description: Name der aufgerufenen Funktion
                  arguments:
                    type: string
                    description: Funktionsargumente (JSON-Zeichenkette)
              index:
                type: integer
                description: Index des Werkzeugaufrufs
  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.