> ## 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 빠른 시작

> OpenAI Chat Completions. 필수 필드는 `model`, `messages`입니다. 이 엔드포인트에서는 모든 모델이 기본적으로 추론합니다. 추론 토큰은 출력 한도에 포함되며 출력 단가로 청구됩니다. 도구 호출, 이미지·동영상 입력, 스트리밍, 멀티턴 대화는 [API 레퍼런스](/ko/api-manual/language-series/minimax/chat-completions/chat-completions-reference)를 참조하세요.

> [!NOTE]
>
> **BaseURL**: 기본 BaseURL은 `https://direct.evolink.ai`이며, 텍스트 모델과 장시간 연결을 더 잘 지원합니다. `https://api.evolink.ai`는 멀티모달 서비스의 기본 엔드포인트이자 텍스트 모델의 대체 주소 역할을 합니다.

> [!NOTE]
>
> 이 엔드포인트에서는 모든 모델이 기본적으로 추론합니다. 추론 토큰은 출력 한도에 포함되며 출력 단가로 청구됩니다. `MiniMax-M3`는 기본적으로 `content` 앞에 `<think>...</think>`를 붙입니다. `reasoning_split: true`를 지정하면 `reasoning_content`에 추론을 따로 반환합니다. 도구 호출, 이미지·동영상 입력, 스트리밍, 멀티턴 대화는 [API 레퍼런스](https://evolink.ai/docs/ko/api-manual/language-series/minimax/chat-completions/chat-completions-reference.md)를 참조하세요.


## OpenAPI

````yaml ko/api-manual/language-series/minimax/chat-completions/chat-completions-quickstart.json POST /v1/chat/completions
openapi: 3.1.0
info:
  title: MiniMax Chat Completions 빠른 시작
  description: >-
    MiniMax Chat Completions 빠른 시작 (OpenAI 호환). 필수 필드는 `model`, `messages`입니다.
    도구 호출, 이미지·동영상 입력, 스트리밍, 멀티턴 대화는 [API
    레퍼런스](/ko/api-manual/language-series/minimax/chat-completions/chat-completions-reference)를
    참조하세요.
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://direct.evolink.ai
    description: 프로덕션 (권장)
  - url: https://api.evolink.ai
    description: 대체 URL
security:
  - bearerAuth: []
tags:
  - name: 대화 생성
    description: AI 대화 생성 관련 인터페이스
paths:
  /v1/chat/completions:
    post:
      tags:
        - 대화 생성
      summary: MiniMax Chat Completions 빠른 시작
      description: >-
        OpenAI Chat Completions. 필수 필드는 `model`, `messages`입니다. 이 엔드포인트에서는 모든
        모델이 기본적으로 추론합니다. 추론 토큰은 출력 한도에 포함되며 출력 단가로 청구됩니다. 도구 호출, 이미지·동영상 입력,
        스트리밍, 멀티턴 대화는 [API
        레퍼런스](/ko/api-manual/language-series/minimax/chat-completions/chat-completions-reference)를
        참조하세요.
      operationId: createChatCompletionMiniMaxQuick
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ChatCompletionQuickRequest'
            examples:
              simple:
                summary: 최소 호출
                value:
                  model: MiniMax-M4
                  messages:
                    - role: user
                      content: Please introduce yourself in one sentence.
              flash:
                summary: MiniMax-M3.1-Flash 호출
                value:
                  model: MiniMax-M3.1-Flash
                  messages:
                    - role: user
                      content: Explain HTTP in one sentence.
              m3:
                summary: MiniMax-M3 호출
                value:
                  model: MiniMax-M3
                  messages:
                    - role: user
                      content: Explain HTTP in one sentence.
              m25:
                summary: MiniMax-M2.5 호출
                value:
                  model: MiniMax-M2.5
                  messages:
                    - role: user
                      content: Explain HTTP in one sentence.
              multi_turn:
                summary: 멀티턴 대화
                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: 대화 생성 성공
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ChatCompletionResponse'
              examples:
                with_thinking:
                  summary: 추론 내용이 포함된 응답
                  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: 직접 답변 (추론 내용 없음)
                  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: 도구 호출 트리거(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: 출력 한도 도달 (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: '`MiniMax-M3` 기본 응답(`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: '`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: 요청 매개변수 오류
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  message: Invalid request parameters
                  type: invalid_request_error
                  param: ''
                  code: null
        '401':
          description: 인증되지 않았거나 토큰이 유효하지 않거나 만료됨
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: 401
                  message: Invalid or expired token
                  type: authentication_error
        '402':
          description: 할당량 부족, 충전 필요
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: 402
                  message: Insufficient quota
                  type: insufficient_quota_error
        '403':
          description: 해당 모델에 접근 권한 없음
          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: 리소스를 찾을 수 없음
          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: 요청 본문이 너무 큼
          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: 요청 빈도 초과
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: 429
                  message: Rate limit exceeded
                  type: rate_limit_error
        '500':
          description: 서버 내부 오류
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: 500
                  message: Internal server error
                  type: internal_server_error
        '502':
          description: 게이트웨이 오류
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: 502
                  message: Bad gateway
                  type: bad_gateway_error
        '503':
          description: 서비스를 일시적으로 사용할 수 없음
          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: >-
            | 모델 | 컨텍스트(토큰) | 최대 출력(토큰) |

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

            | `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`, `MiniMax-M3`는 이미지와 동영상을 지원합니다.
            `MiniMax-M2.5`는 텍스트만 지원합니다.
          enum:
            - MiniMax-M4
            - MiniMax-M3.1-Flash
            - MiniMax-M3
            - MiniMax-M2.5
          example: MiniMax-M4
        messages:
          type: array
          description: 대화 메시지 목록으로, 시간 순서대로 배열합니다. 최소 1개의 메시지가 필요합니다.
          minItems: 1
          items:
            type: object
            required:
              - role
              - content
            properties:
              role:
                type: string
                enum:
                  - system
                  - user
                  - assistant
                description: 메시지 역할
              content:
                type: string
                description: 메시지 텍스트
    ChatCompletionResponse:
      type: object
      properties:
        id:
          type: string
          description: 대화 완료의 고유 식별자
          example: chatcmpl-example
        model:
          type: string
          description: 실제 사용된 모델 이름
          example: MiniMax-M4
        object:
          type: string
          enum:
            - chat.completion
          description: 응답 유형
          example: chat.completion
        created:
          type: integer
          description: 생성 타임스탬프(Unix 초)
          example: 1777026807
        choices:
          type: array
          description: 대화 생성 선택 목록
          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 상태 오류 코드
            message:
              type: string
              description: 오류 설명 정보
            type:
              type: string
              description: 오류 유형
            param:
              type: string
              description: 관련 매개변수 이름
    Choice:
      type: object
      properties:
        index:
          type: integer
          description: 선택의 인덱스
          example: 0
        message:
          $ref: '#/components/schemas/AssistantMessage'
        finish_reason:
          type: string
          description: |-
            완료 사유

            - `stop`: 자연스러운 종료 또는 중지 시퀀스 트리거
            - `length`: 최대 token 한도 도달
            - `content_filter`: 콘텐츠가 안전 정책에 의해 필터링됨
            - `tool_calls`: 모델이 도구를 호출함
          enum:
            - stop
            - length
            - content_filter
            - tool_calls
          example: stop
    Usage:
      type: object
      description: Token 사용 통계 정보
      properties:
        total_tokens:
          type: integer
          description: 소비된 총 token 수
          example: 1604
        total_characters:
          type: integer
          description: 소비된 총 문자 수
          example: 0
        prompt_tokens:
          type: integer
          description: 캐시 적중 부분을 포함한 전체 입력 토큰 수입니다.
          example: 1365
        completion_tokens:
          type: integer
          description: 출력 토큰 수(사고 부분 포함)
          example: 239
        completion_tokens_details:
          type: object
          description: 출력 token 상세 내역
          properties:
            reasoning_tokens:
              type: integer
              description: 추론 과정에서 생성된 토큰 수입니다.
              example: 49
        prompt_tokens_details:
          type: object
          description: 입력 token 상세 내역
          properties:
            cached_tokens:
              type: integer
              description: >-
                캐시에 적중한 입력 토큰 수입니다


                캐시 적중 부분에는 캐시 적중 요금이 적용됩니다. 캐시 미적중 부분 = `prompt_tokens -
                cached_tokens`에는 표준 입력 요금이 적용됩니다.
              example: 114
    AssistantMessage:
      type: object
      properties:
        role:
          type: string
          description: 메시지 발신자의 역할
          enum:
            - assistant
          example: assistant
        content:
          type:
            - string
            - 'null'
          description: >-
            최종 답변 텍스트입니다. 도구 호출 시 `null`일 수 있습니다. `MiniMax-M3`는 기본적으로 `content`
            앞에 `<think>...</think>`를 붙입니다. `reasoning_split: true`를 지정하면
            `reasoning_content`에 추론을 따로 반환합니다.
          example: '0.05'
        reasoning_content:
          type: string
          description: >-
            `MiniMax-M3`는 기본적으로 `content` 앞에 `<think>...</think>`를 붙입니다.
            `reasoning_split: true`를 지정하면 `reasoning_content`에 추론을 따로 반환합니다. 간단한
            질문에 추론이 생성되지 않으면 이 필드는 생략됩니다.
          example: Let the ball cost x. Then 2x + 1 = 1.10, so x = 0.05.
        name:
          type: string
          description: 발신자 이름
        tool_calls:
          type: array
          description: 도구 호출 목록(모델이 도구를 호출하기로 결정했을 때 반환)
          items:
            type: object
            properties:
              id:
                type: string
                description: 도구 호출의 고유 식별자
              type:
                type: string
                enum:
                  - function
              function:
                type: object
                properties:
                  name:
                    type: string
                    description: 호출된 함수 이름
                  arguments:
                    type: string
                    description: 함수 인자(JSON 문자열)
              index:
                type: integer
                description: 도구 호출 인덱스
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: |-
        모든 API에는 Bearer Token 인증이 필요합니다

        **API Key 발급:**

        [API Key 관리 페이지](https://evolink.ai/dashboard/keys)에서 API Key를 발급받으세요

        **요청 헤더에 추가:**
        ```
        Authorization: Bearer YOUR_API_KEY
        ```

````

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