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

# miniMax-M2.7-highspeed

> Call the MiniMax OpenAI-compatible chat model via the baze platform. The currently stable model is `MiniMax-M2.7-highspeed`.



## OpenAPI

````yaml api-reference/en/zmodelChat/minimax/miniMax-M2.7-highspeed.json POST /v1/chat/completions
openapi: 3.0.1
info:
  title: MiniMax-M2.7-highspeed
  version: 1.0.0
  description: >-
    MiniMax (`type=35`) channel Chat Completions capability documentation. The
    unified API endpoint is `/v1/chat/completions`. The platform gateway
    forwards requests to the upstream provider `POST
    /v1/text/chatcompletion_v2`, using an OpenAI Chat Completions-compatible
    request and response structure.


    This document describes only the field subset that the platform gateway
    reliably passes through and that is consistent with MiniMax
    OpenAI-compatible capabilities: `model`, `messages`, `temperature`, `top_p`,
    `max_tokens`, `stream`, `stop`.
servers:
  - url: https://api.powertokens.ai
    description: Baze API server endpoint
security: []
tags:
  - name: MiniMax Chat
    description: MiniMax OpenAI-compatible Chat Completions capability
paths:
  /v1/chat/completions:
    post:
      tags:
        - MiniMax Chat
      summary: MiniMax-M2.7-highspeed
      description: >-
        Call the MiniMax OpenAI-compatible chat model via the baze platform. The
        currently stable model is `MiniMax-M2.7-highspeed`.
      operationId: minimaxChatCompletions
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ChatCompletionRequest'
            examples:
              basic:
                summary: Non-streaming chat
                value:
                  model: MiniMax-M2.7-highspeed
                  messages:
                    - role: system
                      content: You are a concise assistant.
                    - role: user
                      content: Describe Paris in one sentence.
                  temperature: 0.3
              stream:
                summary: Streaming chat
                value:
                  model: MiniMax-M2.7-highspeed
                  messages:
                    - role: user
                      content: Count from one to five.
                  stream: true
      responses:
        '200':
          description: >-
            Success. Non-streaming returns OpenAI-compatible JSON; streaming
            returns an OpenAI-compatible SSE event stream.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ChatCompletionResponse'
            text/event-stream:
              schema:
                type: string
                description: >-
                  SSE data stream. Each `data:` event can be parsed as an OpenAI
                  Chat Completions Chunk; the stream typically ends with `data:
                  [DONE]`.
        '400':
          description: Invalid request parameters.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - BearerAuth: []
components:
  schemas:
    ChatCompletionRequest:
      type: object
      required:
        - model
        - messages
      properties:
        model:
          type: string
          enum:
            - MiniMax-M2.7-highspeed
        messages:
          type: array
          items:
            $ref: '#/components/schemas/ChatMessage'
        temperature:
          type: number
          maximum: 1
          minimum: 0
          default: 0.7
        top_p:
          type: number
          maximum: 1
          minimum: 0
          default: 0.95
        max_tokens:
          type: integer
          maximum: 2048
          minimum: 1
        stream:
          type: boolean
          default: true
        stop:
          oneOf:
            - type: string
            - type: array
              items:
                type: string
    ChatCompletionResponse:
      type: object
      properties:
        id:
          type: string
        object:
          type: string
        created:
          type: integer
        model:
          type: string
        choices:
          type: array
          items:
            type: object
        usage:
          type: object
    ErrorResponse:
      type: object
      required:
        - error
      properties:
        error:
          $ref: '#/components/schemas/ErrorObject'
    ChatMessage:
      type: object
      required:
        - role
        - content
      properties:
        role:
          type: string
          enum:
            - system
            - user
            - assistant
            - user_system
            - group
            - sample_message_user
            - sample_message_ai
          description: |-
            Role of the message sender
            system: Set the model's role and behavior
            user: User input
            assistant: Model's historical replies
            user_system: Set the user's role and persona
            group: Name of the conversation
            sample_message_user: Example user input
            sample_message_ai: Example model output
        content:
          type: string
          description: Message content. M2.7-highspeed supports text-only input.
    ErrorObject:
      type: object
      required:
        - message
        - type
        - param
        - code
      properties:
        message:
          type: string
        type:
          type: string
        param:
          type: string
        code:
          type: string
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API Token
      description: 'Pass `Authorization: Bearer <token>` in the request header.'

````