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

> ## Agent Instructions
> Public hosts only: console https://omnimux.ai/dashboard · API https://api.omnimux.ai · docs https://docs.omnimux.ai.
> Gateway auth is Authorization: Bearer sk-… on https://api.omnimux.ai/v1 (OpenAI-compatible Chat Completions and related paths).
> Discover pages from /llms.txt; full site dump /llms-full.txt; product skill /skill.md; docs search MCP /mcp. Prefer .md page URLs for Markdown.
> Default docs locale is en; zh mirrors the same relative paths. Do not invent model ids not present on live pricing or the complete API pages.

# MiniMax · 完整参数

> MiniMax · Chat Completions 完整参数（同合同，model 枚举）

> * 协议：OpenAI Chat Completions（`POST /v1/chat/completions`）
> * 本页为 **MiniMax 共用合同**；换模型只改 body 的 `model`
> * 默认同步；`stream: true` 流式

## 可用 model

| model id       |
| -------------- |
| `minimax-m2.5` |
| `minimax-m2.7` |
| `minimax-m3`   |

Base URL：`https://api.omnimux.ai`


## OpenAPI

````yaml openapi/ops/chat/minimax.json POST /v1/chat/completions
openapi: 3.1.0
info:
  title: MiniMax · Chat Completions
  description: >-
    OpenAI-compatible Chat Completions for MiniMax models on OmniMux. Supported
    model ids: `minimax-m2.5`, `minimax-m2.7`, `minimax-m3`.
  version: 1.0.0
servers:
  - url: https://api.omnimux.ai
    description: OmniMux production gateway
security:
  - BearerAuth: []
tags:
  - name: Chat Completion
    description: OpenAI-compatible chat completions
paths:
  /v1/chat/completions:
    post:
      tags:
        - Chat Completion
      summary: MiniMax Chat Completions
      description: |-
        - Protocol: OpenAI Chat Completions
        - Path: `POST /v1/chat/completions`
        - Brand: MiniMax
        - Choose model via body `model` (enum below)
        - Same request/response schema for all ids in this brand
        - Synchronous by default; `stream: true` for SSE
      operationId: createChatCompletion_minimax
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ChatCompletionRequest'
            examples:
              simple_text:
                summary: Single-turn text
                value:
                  model: minimax-m2.5
                  messages:
                    - role: user
                      content: 介绍一下人工智能的发展历史
              system_prompt:
                summary: System + user
                value:
                  model: minimax-m2.5
                  messages:
                    - role: system
                      content: You are a concise assistant.
                    - role: user
                      content: Explain streaming in one sentence.
              streaming:
                summary: Streaming
                value:
                  model: minimax-m2.5
                  stream: true
                  messages:
                    - role: user
                      content: Say hello
      responses:
        '200':
          description: Chat completion successful
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ChatCompletionResponse'
              example:
                id: chatcmpl-example
                object: chat.completion
                created: 1741428397
                model: minimax-m2.5
                choices:
                  - index: 0
                    message:
                      role: assistant
                      content: …
                    finish_reason: stop
                usage:
                  prompt_tokens: 18
                  completion_tokens: 120
                  total_tokens: 138
        '400':
          description: Invalid request parameters
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  message: 'Invalid request: missing required field or invalid parameter'
                  type: invalid_request_error
                  code: bad_request
        '401':
          description: Unauthenticated — invalid or expired token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  message: Invalid token or authentication failed
                  type: authentication_error
                  code: unauthorized
        '402':
          description: Insufficient quota — top up required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  message: Insufficient quota. Please top up your account.
                  type: insufficient_quota
                  code: insufficient_quota
        '403':
          description: Access denied — model or token scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  message: Model not allowed for this token, or access denied
                  type: permission_error
                  code: forbidden
        '404':
          description: Resource not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  message: Not found
                  type: invalid_request_error
                  code: not_found
        '429':
          description: Rate limit exceeded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  message: Rate limit exceeded. Please retry later.
                  type: rate_limit_error
                  code: rate_limit_exceeded
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  message: Internal server error
                  type: server_error
                  code: internal_error
        '502':
          description: Upstream / bad gateway
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  message: Upstream provider error or bad gateway
                  type: server_error
                  code: bad_gateway
        '503':
          description: Service temporarily unavailable
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  message: Service temporarily unavailable
                  type: server_error
                  code: service_unavailable
components:
  schemas:
    ChatCompletionRequest:
      type: object
      required:
        - model
        - messages
      properties:
        model:
          type: string
          description: >-
            Model id for this brand on OmniMux. Same request/response shape for
            all ids below; only the `model` value changes.
          enum:
            - minimax-m2.5
            - minimax-m2.7
            - minimax-m3
          default: minimax-m2.5
          example: minimax-m2.5
        messages:
          type: array
          items:
            $ref: '#/components/schemas/Message'
          description: 对话消息列表
        temperature:
          type: number
          minimum: 0
          maximum: 2
          default: 1
          description: 采样温度
        top_p:
          type: number
          minimum: 0
          maximum: 1
          default: 1
          description: 核采样参数
        'n':
          type: integer
          minimum: 1
          default: 1
          description: 生成数量
        stream:
          type: boolean
          default: false
          description: 是否流式响应
        stream_options:
          type: object
          properties:
            include_usage:
              type: boolean
        stop:
          oneOf:
            - type: string
            - type: array
              items:
                type: string
          description: 停止序列
        max_tokens:
          type: integer
          description: 最大生成 Token 数
        max_completion_tokens:
          type: integer
          description: 最大补全 Token 数
        presence_penalty:
          type: number
          minimum: -2
          maximum: 2
          default: 0
        frequency_penalty:
          type: number
          minimum: -2
          maximum: 2
          default: 0
        logit_bias:
          type: object
          additionalProperties:
            type: number
          properties: {}
        user:
          type: string
        tools:
          type: array
          items:
            $ref: '#/components/schemas/Tool'
        tool_choice:
          oneOf:
            - type: string
              enum:
                - none
                - auto
                - required
            - type: object
              properties:
                type:
                  type: string
                function:
                  type: object
                  properties:
                    name:
                      type: string
        response_format:
          $ref: '#/components/schemas/ResponseFormat'
        seed:
          type: integer
        reasoning_effort:
          type: string
          enum:
            - low
            - medium
            - high
          description: 推理强度 (用于支持推理的模型)
        modalities:
          type: array
          items:
            type: string
            enum:
              - text
              - audio
        audio:
          type: object
          properties:
            voice:
              type: string
            format:
              type: string
    ChatCompletionResponse:
      type: object
      properties:
        id:
          type: string
        object:
          type: string
          example: chat.completion
        created:
          type: integer
        model:
          type: string
        choices:
          type: array
          items:
            type: object
            properties:
              index:
                type: integer
              message:
                $ref: '#/components/schemas/Message'
              finish_reason:
                type: string
                enum:
                  - stop
                  - length
                  - tool_calls
                  - content_filter
        usage:
          $ref: '#/components/schemas/Usage'
        system_fingerprint:
          type: string
    ErrorResponse:
      type: object
      properties:
        error:
          type: object
          properties:
            message:
              type: string
              description: 错误信息
            type:
              type: string
              description: 错误类型
            param:
              type: string
              description: 相关参数
              nullable: true
            code:
              type: string
              description: 错误代码
              nullable: true
    Message:
      type: object
      required:
        - role
        - content
      properties:
        role:
          type: string
          enum:
            - system
            - user
            - assistant
            - tool
            - developer
          description: 消息角色
        content:
          oneOf:
            - type: string
            - type: array
              items:
                $ref: '#/components/schemas/MessageContent'
          description: 消息内容
        name:
          type: string
          description: 发送者名称
        tool_calls:
          type: array
          items:
            $ref: '#/components/schemas/ToolCall'
        tool_call_id:
          type: string
          description: 工具调用 ID（用于 tool 角色消息）
        reasoning_content:
          type: string
          description: 推理内容
    Tool:
      type: object
      properties:
        type:
          type: string
          example: function
        function:
          type: object
          properties:
            name:
              type: string
            description:
              type: string
            parameters:
              type: object
              description: JSON Schema 格式的参数定义
              properties: {}
    ResponseFormat:
      type: object
      properties:
        type:
          type: string
          enum:
            - text
            - json_object
            - json_schema
        json_schema:
          type: object
          description: JSON Schema 定义
          properties: {}
    Usage:
      type: object
      properties:
        prompt_tokens:
          type: integer
          description: 提示词 Token 数
        completion_tokens:
          type: integer
          description: 补全 Token 数
        total_tokens:
          type: integer
          description: 总 Token 数
        prompt_tokens_details:
          type: object
          properties:
            cached_tokens:
              type: integer
            text_tokens:
              type: integer
            audio_tokens:
              type: integer
            image_tokens:
              type: integer
        completion_tokens_details:
          type: object
          properties:
            text_tokens:
              type: integer
            audio_tokens:
              type: integer
            reasoning_tokens:
              type: integer
    MessageContent:
      type: object
      properties:
        type:
          type: string
          enum:
            - text
            - image_url
            - input_audio
            - file
            - video_url
        text:
          type: string
        image_url:
          type: object
          properties:
            url:
              type: string
              description: 图片 URL 或 base64
            detail:
              type: string
              enum:
                - low
                - high
                - auto
        input_audio:
          type: object
          properties:
            data:
              type: string
              description: Base64 编码的音频数据
            format:
              type: string
              enum:
                - wav
                - mp3
        file:
          type: object
          properties:
            filename:
              type: string
            file_data:
              type: string
            file_id:
              type: string
        video_url:
          type: object
          properties:
            url:
              type: string
    ToolCall:
      type: object
      properties:
        id:
          type: string
        type:
          type: string
          example: function
        function:
          type: object
          properties:
            name:
              type: string
            arguments:
              type: string
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: >-
        API key auth. Header: `Authorization: Bearer sk-...` (create keys in the
        OmniMux console).

````