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

> Anthropic Messages. 필수 필드는 `model`, `max_tokens`, `messages`입니다. `max_tokens`에는 추론과 답변이 모두 포함됩니다. `MiniMax-M4`와 `MiniMax-M3.1-Flash`는 항상 추론하며 `content`의 `thinking` 블록에 그 내용을 반환합니다. `MiniMax-M3`는 기본적으로 추론하지 않습니다. `thinking`을 `{"type": "adaptive"}`로 설정하면 추론을 수행하고 `thinking` 블록을 반환합니다. `MiniMax-M2.5`는 추론하지만 `thinking` 블록을 반환하지 않습니다. 추론 토큰은 `output_tokens`에 포함됩니다. 도구 호출, 이미지·동영상 입력, 스트리밍, 멀티턴 대화는 [API 레퍼런스](/ko/api-manual/language-series/minimax/messages/messages-reference)를 참조하세요.

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

> [!NOTE]
>
> `max_tokens`에는 추론과 답변이 모두 포함됩니다. `MiniMax-M4`와 `MiniMax-M3.1-Flash`는 항상 추론하며 `content`의 `thinking` 블록에 그 내용을 반환합니다. `MiniMax-M3`는 기본적으로 추론하지 않습니다. `thinking`을 `{"type": "adaptive"}`로 설정하면 추론을 수행하고 `thinking` 블록을 반환합니다. `MiniMax-M2.5`는 추론하지만 `thinking` 블록을 반환하지 않습니다. 추론 토큰은 `output_tokens`에 포함됩니다. 출력 예산은 우선 1,024토큰 이상으로 설정하세요. 추론 단계에서 모두 소모하면 답변 본문이 없을 수 있습니다.


## OpenAPI

````yaml ko/api-manual/language-series/minimax/messages/messages-quickstart.json POST /v1/messages
openapi: 3.1.0
info:
  title: MiniMax Messages 빠른 시작
  description: >-
    MiniMax Messages 빠른 시작 (Anthropic 호환). 필수 필드는 `model`, `max_tokens`,
    `messages`입니다. 도구 호출, 이미지·동영상 입력, 스트리밍, 멀티턴 대화는 [API
    레퍼런스](/ko/api-manual/language-series/minimax/messages/messages-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: Messages
    description: Anthropic Messages 프로토콜 인터페이스
paths:
  /v1/messages:
    post:
      tags:
        - Messages
      summary: MiniMax Messages 빠른 시작 (Anthropic 호환)
      description: >-
        Anthropic Messages. 필수 필드는 `model`, `max_tokens`, `messages`입니다.
        `max_tokens`에는 추론과 답변이 모두 포함됩니다. `MiniMax-M4`와 `MiniMax-M3.1-Flash`는 항상
        추론하며 `content`의 `thinking` 블록에 그 내용을 반환합니다. `MiniMax-M3`는 기본적으로 추론하지
        않습니다. `thinking`을 `{"type": "adaptive"}`로 설정하면 추론을 수행하고 `thinking` 블록을
        반환합니다. `MiniMax-M2.5`는 추론하지만 `thinking` 블록을 반환하지 않습니다. 추론 토큰은
        `output_tokens`에 포함됩니다. 도구 호출, 이미지·동영상 입력, 스트리밍, 멀티턴 대화는 [API
        레퍼런스](/ko/api-manual/language-series/minimax/messages/messages-reference)를
        참조하세요.
      operationId: createMessageMiniMaxQuick
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateMessageQuickRequest'
            examples:
              simple:
                summary: 최소 호출
                value:
                  model: MiniMax-M4
                  max_tokens: 4096
                  messages:
                    - role: user
                      content: Please introduce yourself in one sentence.
              flash:
                summary: MiniMax-M3.1-Flash 호출
                value:
                  model: MiniMax-M3.1-Flash
                  max_tokens: 4096
                  messages:
                    - role: user
                      content: Explain HTTP in one sentence.
              m3:
                summary: MiniMax-M3 호출
                value:
                  model: MiniMax-M3
                  max_tokens: 4096
                  messages:
                    - role: user
                      content: Explain HTTP in one sentence.
              m25:
                summary: MiniMax-M2.5 호출
                value:
                  model: MiniMax-M2.5
                  max_tokens: 4096
                  messages:
                    - role: user
                      content: Explain HTTP in one sentence.
      responses:
        '200':
          description: 메시지 객체
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MessageResponse'
              examples:
                with_thinking:
                  summary: 추론 내용이 포함된 응답 (thinking 블록)
                  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: '`MiniMax-M2.5` 응답 (`thinking` 블록 없음)'
                  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: 요청 매개변수 오류
          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: 인증 오류
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                type: error
                error:
                  type: authentication_error
                  message: Authentication error
        '402':
          description: 할당량 부족
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                type: error
                error:
                  type: billing_error
                  message: Insufficient quota
        '403':
          description: 권한 오류
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                type: error
                error:
                  type: permission_error
                  message: Permission denied
        '404':
          description: 모델 또는 리소스를 찾을 수 없음
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                type: error
                error:
                  type: not_found_error
                  message: Model not found
        '429':
          description: 속도 제한 초과
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                type: error
                error:
                  type: rate_limit_error
                  message: Rate limited
        '500':
          description: 서버 내부 오류
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '502':
          description: 게이트웨이 오류
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '503':
          description: 서비스를 일시적으로 사용할 수 없음
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    CreateMessageQuickRequest:
      type: object
      required:
        - model
        - max_tokens
        - 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
        max_tokens:
          type: integer
          minimum: 1
          example: 4096
          description: >-
            Anthropic 프로토콜에서는 필수입니다. **최대 출력(추론 토큰 포함)** — `MiniMax-M4` 262,144,
            `MiniMax-M3.1-Flash` 524,288, `MiniMax-M3` 524,288, `MiniMax-M2.5`
            32,768. 출력 예산은 우선 1,024토큰 이상으로 설정하세요. 추론 단계에서 모두 소모하면 답변 본문이 없을 수
            있습니다.
        messages:
          type: array
          description: 대화 메시지 목록으로, 시간 순서대로 배열합니다. 최소 1개의 메시지가 필요합니다.
          minItems: 1
          items:
            type: object
            required:
              - role
              - content
            properties:
              role:
                type: string
                enum:
                  - user
                  - assistant
                description: 메시지 역할
              content:
                type: string
                description: 메시지 텍스트
    MessageResponse:
      type: object
      description: Anthropic 스타일의 메시지 응답
      properties:
        id:
          type: string
          description: 메시지 고유 ID
        type:
          type: string
          enum:
            - message
          description: 응답 객체 유형
        role:
          type: string
          enum:
            - assistant
        model:
          type: string
          description: 실제 사용된 모델
          example: MiniMax-M4
        content:
          type: array
          description: >-
            응답 블록은 `thinking`(추론, 간단한 질문에서 생략될 수 있고 `MiniMax-M2.5`에서는 반환하지 않음),
            `text`(답변), `tool_use`(도구 호출)입니다.
          items:
            $ref: '#/components/schemas/OutputContentBlock'
        stop_reason:
          type: string
          description: |-
            정지 사유

            - `end_turn`: 자연스러운 종료
            - `max_tokens`: max_tokens 상한 도달
            - `tool_use`: 모델이 도구 호출을 트리거
          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: >-
                오류 유형(예: invalid_request_error / authentication_error /
                billing_error 등)
            message:
              type: string
              description: 오류 설명
        request_id:
          type: string
          description: 요청 추적 ID
    OutputContentBlock:
      type: object
      description: 응답 내의 콘텐츠 블록
      properties:
        type:
          type: string
          enum:
            - text
            - thinking
            - tool_use
        text:
          type: string
          description: type=`text`일 때의 텍스트
        thinking:
          type: string
          description: type=`thinking`일 때의 추론 과정 텍스트
        signature:
          type: string
          description: >-
            type=`thinking`일 때의 무결성 서명, 멀티턴 컨텍스트 검증에 사용됩니다. 예제의 `signature` 값은
            자리표시자입니다. 다음 요청에서는 이전 응답에 포함된 값을 그대로 보내세요.
        id:
          type: string
          description: type=`tool_use`일 때의 도구 호출 ID
        name:
          type: string
          description: type=`tool_use`일 때의 도구 이름
        input:
          type: object
          description: type=`tool_use`일 때 모델이 생성한 JSON 입력 파라미터
    AnthropicUsage:
      type: object
      description: Token 사용 통계(Anthropic 규범)
      properties:
        input_tokens:
          type: integer
          description: 캐시에 적중하지 않은 입력 토큰 수로, `cache_read_input_tokens`는 포함하지 않습니다.
          example: 55
        output_tokens:
          type: integer
          description: 출력 token 수(thinking 포함)
          example: 66
        cache_creation_input_tokens:
          type: integer
          description: 캐시 생성에 사용된 입력 토큰 수로, 자동 캐시에서는 0입니다.
          example: 0
        cache_read_input_tokens:
          type: integer
          description: >-
            캐시에 적중한 입력 토큰 수로, 캐시 적중 요금이 적용됩니다. 전체 입력 = `input_tokens +
            cache_read_input_tokens`입니다.
          example: 174
        output_tokens_details:
          type: object
          description: 출력 token 상세 내역
          properties:
            thinking_tokens:
              type: integer
              description: 추론 과정에서 생성된 토큰 수로, `output_tokens`에 이미 포함되어 있습니다.
              example: 63
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        모든 인터페이스는 Bearer Token 인증이 필요합니다


        **API Key 발급**:


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


        **요청 헤더에 추가**:

        ```

        Authorization: Bearer YOUR_API_KEY

        ```


        **참고**: EvoLink는 `/v1/messages`에 대해 Bearer Token 인증을 통일적으로 사용합니다.

````

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