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

> 지원 모델: `MiniMax-M4`, `MiniMax-M3.1-Flash`. 필수 필드는 `model`, `input`입니다. `max_output_tokens` — 출력 예산은 우선 1,024토큰 이상으로 설정하세요. 추론 단계에서 모두 소모하면 답변 본문이 없을 수 있습니다. 도구 호출, 이미지·동영상 입력, 스트리밍, 멀티턴 대화는 [API 레퍼런스](/ko/api-manual/language-series/minimax/responses/responses-reference)를 참조하세요.

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

`POST /v1/responses` — 지원 모델: `MiniMax-M4`, `MiniMax-M3.1-Flash`. 필수 필드는 `model`, `input`입니다. 최소 예제에서는 출력 한도도 지정합니다.

> [!WARNING]
>
> Responses는 `MiniMax-M4`와 `MiniMax-M3.1-Flash`만 지원합니다. `MiniMax-M3`와 `MiniMax-M2.5`는 [Chat Completions](https://evolink.ai/docs/ko/api-manual/language-series/minimax/chat-completions/chat-completions-quickstart.md) 또는 [Messages](https://evolink.ai/docs/ko/api-manual/language-series/minimax/messages/messages-quickstart.md)를 사용하세요.
>
> 입력은 `input`, 출력 예산은 `max_output_tokens`, 추론 깊이는 `reasoning.effort`로 지정합니다. `MiniMax-M4`와 `MiniMax-M3.1-Flash`는 항상 추론합니다. 추론 깊이는 `low`, `medium`, `high`, `xhigh`, `max`(기본값) 중에서 선택합니다. `none`은 HTTP 400을 반환합니다. 깊이가 높을수록 보통 추론 토큰과 응답 시간이 늘어납니다.

## 답변 본문 읽기

`output`에는 추론, 본문, 도구 호출이 섞일 수 있습니다. `type="message"`인 항목에서 `output_text` 블록을 읽으세요. 첫 항목이 추론일 수 있습니다.

응답 JSON을 `response`로 파싱했다면 다음과 같이 텍스트를 추출할 수 있습니다.

```python theme={null}
text = "".join(
    part["text"]
    for item in response.get("output", [])
    if item.get("type") == "message"
    for part in item.get("content", [])
    if part.get("type") == "output_text"
)
print(text)
```

> [!NOTE]
>
> **최대 출력(추론 토큰 포함)** — `MiniMax-M4` 262,144, `MiniMax-M3.1-Flash` 524,288. 출력 예산은 우선 1,024토큰 이상으로 설정하세요. 추론 단계에서 모두 소모하면 답변 본문이 없을 수 있습니다. `status="incomplete"`이고 `incomplete_details.reason="max_output_tokens"`이면 출력 한도를 높이세요.

도구 호출, 이미지·동영상 입력, 스트리밍, 멀티턴 대화는 [API 레퍼런스](https://evolink.ai/docs/ko/api-manual/language-series/minimax/responses/responses-reference.md)를 참조하세요.


## OpenAPI

````yaml ko/api-manual/language-series/minimax/responses/responses-quickstart.json POST /v1/responses
openapi: 3.1.0
info:
  title: MiniMax Responses 빠른 시작
  description: >-
    MiniMax Responses 빠른 시작 (OpenAI Responses) — `MiniMax-M4`,
    `MiniMax-M3.1-Flash`.
  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/responses:
    post:
      tags:
        - 대화 생성
      summary: MiniMax Responses 빠른 시작
      description: >-
        지원 모델: `MiniMax-M4`, `MiniMax-M3.1-Flash`. 필수 필드는 `model`, `input`입니다.
        `max_output_tokens` — 출력 예산은 우선 1,024토큰 이상으로 설정하세요. 추론 단계에서 모두 소모하면 답변
        본문이 없을 수 있습니다. 도구 호출, 이미지·동영상 입력, 스트리밍, 멀티턴 대화는 [API
        레퍼런스](/ko/api-manual/language-series/minimax/responses/responses-reference)를
        참조하세요.
      operationId: createResponseMiniMaxQuick
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ResponsesQuickRequest'
            examples:
              simple:
                summary: 최소 호출
                value:
                  model: MiniMax-M4
                  input: Please introduce yourself in one sentence.
                  max_output_tokens: 4096
              flash:
                summary: MiniMax-M3.1-Flash 호출
                value:
                  model: MiniMax-M3.1-Flash
                  input: Explain HTTP in one sentence.
                  max_output_tokens: 4096
      responses:
        '200':
          description: 생성 성공
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResponsesResponse'
              examples:
                with_reasoning:
                  summary: 추론 내용이 포함된 응답
                  value:
                    id: example_ae5b7d
                    object: response
                    created_at: 1792405562
                    model: MiniMax-M3.1-Flash
                    status: completed
                    output:
                      - id: example_ae5b7d_rs
                        type: reasoning
                        status: completed
                        summary: []
                        content:
                          - type: reasoning_text
                            text: >-
                              We need solve CRT. Need only n. Compute. n=3 mod7,
                              5 mod11,7 mod13. Product 1001. Let's solve.


                              Use n=3+7a. mod11: 3+7a=5 =>7a=2 mod11. inverse7=8
                              (56=1), a=16=5 mod11. a=5+11b. n=38+77b. mod13:
                              38+77b = 12+12b mod13 (77=12,38=12) equals7
                              =>12b=-5=8 mod13. inverse12=12, b=96 mod13 =5? 91
                              remainder5. n=38+385=423. Check 423 mod7 3 (420),
                              mod11 5 (418), mod13 7 (416). Smallest positive
                              423. Only n.
                        encrypted_content: EXAMPLE_ENCRYPTED_CONTENT
                      - id: example_ae5b7d_msg
                        type: message
                        status: completed
                        role: assistant
                        content:
                          - type: output_text
                            text: '423'
                            annotations: []
                    output_text: '423'
                    usage:
                      input_tokens: 239
                      output_tokens: 190
                      total_tokens: 429
                      input_tokens_details:
                        cached_tokens: 174
                      output_tokens_details:
                        reasoning_tokens: 189
                    error: null
                    incomplete_details: null
                function_call:
                  summary: 도구 호출
                  value:
                    id: example_2ab00b
                    object: response
                    created_at: 1792405566
                    model: MiniMax-M3.1-Flash
                    status: completed
                    output:
                      - id: example_2ab00b_msg
                        type: message
                        status: completed
                        role: assistant
                        content:
                          - type: output_text
                            text: I'll check the stock level for that product now.
                            annotations: []
                      - id: example_2ab00b_fc_0
                        type: function_call
                        status: completed
                        call_id: call_example_1
                        name: get_product_stock
                        arguments: '{"product_id": "demo-item-001"}'
                    output_text: I'll check the stock level for that product now.
                    usage:
                      input_tokens: 479
                      output_tokens: 43
                      total_tokens: 522
                      input_tokens_details:
                        cached_tokens: 174
                    error: null
                    incomplete_details: null
                incomplete:
                  summary: 출력 한도 도달 (status=incomplete)
                  value:
                    id: example_de610c
                    object: response
                    created_at: 1792401719
                    model: MiniMax-M3.1-Flash
                    status: incomplete
                    output:
                      - id: example_de610c_rs
                        type: reasoning
                        status: completed
                        summary: []
                        content:
                          - type: reasoning_text
                            text: I need to explain the process step by step.
                        encrypted_content: EXAMPLE_ENCRYPTED_CONTENT
                    output_text: null
                    usage:
                      input_tokens: 211
                      output_tokens: 8
                      total_tokens: 219
                      input_tokens_details:
                        cached_tokens: 195
                      output_tokens_details:
                        reasoning_tokens: 8
                    error: null
                    incomplete_details:
                      reason: max_output_tokens
        '400':
          description: 요청 매개변수 오류
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: invalid_prompt
                  message: Invalid request parameters
                  type: invalid_request_error
        '401':
          description: 인증되지 않았거나 토큰이 유효하지 않거나 만료됨
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: 401
                  message: Invalid authentication credentials
                  type: authentication_error
        '402':
          description: 할당량 부족, 충전 필요
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: 402
                  message: Insufficient quota
                  type: insufficient_quota
        '403':
          description: 해당 모델에 접근 권한 없음
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: 403
                  message: Model access denied
                  type: permission_error
        '404':
          description: 리소스를 찾을 수 없음
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: 404
                  message: Model not found
                  type: not_found_error
        '413':
          description: 요청 본문이 너무 큼
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: 413
                  message: Request entity too large
                  type: invalid_request_error
        '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: server_error
        '502':
          description: 게이트웨이 오류
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: 502
                  message: Bad gateway
                  type: server_error
        '503':
          description: 서비스를 일시적으로 사용할 수 없음
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: 503
                  message: Service temporarily unavailable
                  type: server_error
components:
  schemas:
    ResponsesQuickRequest:
      type: object
      required:
        - model
        - input
      properties:
        model:
          type: string
          enum:
            - MiniMax-M4
            - MiniMax-M3.1-Flash
          example: MiniMax-M4
          description: >-
            | 모델 | 컨텍스트(토큰) | 최대 출력(토큰) |

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

            | `MiniMax-M4` | 1,000,000 | 262,144 |

            | `MiniMax-M3.1-Flash` | 1,000,000 | 524,288 |


            Responses는 `MiniMax-M4`와 `MiniMax-M3.1-Flash`만 지원합니다. `MiniMax-M3`와
            `MiniMax-M2.5`는 [Chat
            Completions](/ko/api-manual/language-series/minimax/chat-completions/chat-completions-quickstart)
            또는
            [Messages](/ko/api-manual/language-series/minimax/messages/messages-quickstart)를
            사용하세요.
        input:
          type: string
          example: Explain recursion in one sentence.
          description: >-
            필수 필드는 `model`, `input`입니다. 일반 문자열은 사용자 메시지 하나로 처리합니다. 멀티턴 대화, 이미지,
            동영상, 도구 호출에는 입력 항목 배열을 전달하세요. 도구 호출, 이미지·동영상 입력, 스트리밍, 멀티턴 대화는 [API
            레퍼런스](/ko/api-manual/language-series/minimax/responses/responses-reference)를
            참조하세요.
        max_output_tokens:
          type: integer
          minimum: 1
          example: 4096
          description: >-
            출력 예산은 우선 1,024토큰 이상으로 설정하세요. 추론 단계에서 모두 소모하면 답변 본문이 없을 수 있습니다. **최대
            출력(추론 토큰 포함)** — `MiniMax-M4` 262,144, `MiniMax-M3.1-Flash` 524,288.
    ResponsesResponse:
      type: object
      description: >-
        Responses API의 응답 객체입니다. 아래 필드 외에도 이번 요청의 설정인 `tools`, `tool_choice`,
        `temperature`, `top_p`, `text`, `reasoning`, `max_output_tokens` 등을
        포함합니다.
      properties:
        id:
          type: string
          description: 이번 응답의 고유 식별자
          example: resp_example
        object:
          type: string
          description: 객체 유형이며 항상 `response`
          example: response
        created_at:
          type: integer
          description: 생성 시각(Unix 타임스탬프, 초)
          example: 1792401878
        status:
          type: string
          description: |-
            응답 상태입니다

            - `completed`: 정상 완료
            - `incomplete`: 출력이 잘렸으며, 원인은 `incomplete_details`에 표시됩니다
            - `failed`: 생성 실패이며, 원인은 `error`에 표시됩니다
          enum:
            - completed
            - incomplete
            - failed
          example: completed
        model:
          type: string
          description: 실제로 이번 응답을 생성한 모델 ID
          example: MiniMax-M4
        output:
          type: array
          description: >-
            생성 순서대로 정렬된 출력 항목 목록입니다:


            - `reasoning`: 추론 과정으로 ID 형식은 `<id>_rs`입니다. `content`
            (`reasoning_text` 블록 목록), `summary` (빈 배열), `encrypted_content`를
            포함합니다

            - `message`: 최종 답변으로 ID 형식은 `<id>_msg`입니다. `content` (`output_text`
            블록 목록)를 포함합니다

            - `function_call`: 모델이 시작한 함수 호출로 ID 형식은 `<id>_fc_<index>`입니다.
            `call_id`, `name`, `arguments`를 포함하며 클라이언트가 실행한 뒤
            `function_call_output`으로 결과를 전달해야 합니다
          items:
            type: object
        output_text:
          type:
            - string
            - 'null'
          description: 모든 `output_text` 텍스트를 연결한 편의 필드입니다. 텍스트 출력이 없으면 `null`입니다.
        error:
          type:
            - object
            - 'null'
          description: 실패 원인이며 성공 시에는 `null`
        incomplete_details:
          type:
            - object
            - 'null'
          description: >-
            출력이 잘린 원인으로, 잘리지 않았으면 `null`입니다. `reason`은 `max_output_tokens` (출력
            한도 도달) 또는 `content_filter` (콘텐츠 안전)입니다.
        usage:
          $ref: '#/components/schemas/Usage'
    ErrorResponse:
      type: object
      description: 오류 응답
      properties:
        error:
          type: object
          properties:
            code:
              type:
                - integer
                - string
                - 'null'
              description: 오류 코드
              example: invalid_prompt
            message:
              type: string
              description: 오류 설명
              example: Invalid request parameters
            type:
              type: string
              description: 오류 유형
              example: invalid_request_error
    Usage:
      type: object
      description: 캐시 및 추론 세부 내역을 포함한 토큰 사용 통계입니다.
      properties:
        input_tokens:
          type: integer
          description: 캐시 적중 부분을 포함한 전체 입력 토큰 수입니다.
          example: 207
        input_tokens_details:
          type: object
          description: 입력 token 상세 내역
          properties:
            cached_tokens:
              type: integer
              description: >-
                캐시에 적중한 입력 토큰 수입니다


                캐시 적중 부분에는 캐시 적중 요금이 적용됩니다. 캐시 미적중 부분 = `input_tokens -
                cached_tokens`에는 표준 입력 요금이 적용됩니다.
              example: 174
        output_tokens:
          type: integer
          description: 출력 토큰 수(사고 부분 포함)
          example: 32
        output_tokens_details:
          type: object
          description: 출력 token 상세 내역
          properties:
            reasoning_tokens:
              type: integer
              description: 추론 과정에서 생성된 토큰 수로, `output_tokens`에 이미 포함되어 있습니다.
              example: 9
        total_tokens:
          type: integer
          description: 총 토큰 수 = input_tokens + output_tokens
          example: 239
  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.