curl --request POST \
--url https://direct.evolink.ai/v1/responses \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "MiniMax-M4",
"input": "Please introduce yourself in one sentence.",
"max_output_tokens": 4096
}
'{
"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.\n\nUse 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
}Responses API
MiniMax Responses 빠른 시작
지원 모델: MiniMax-M4, MiniMax-M3.1-Flash. 필수 필드는 model, input입니다. max_output_tokens — 출력 예산은 우선 1,024토큰 이상으로 설정하세요. 추론 단계에서 모두 소모하면 답변 본문이 없을 수 있습니다. 도구 호출, 이미지·동영상 입력, 스트리밍, 멀티턴 대화는 API 레퍼런스를 참조하세요.
POST
/
v1
/
responses
curl --request POST \
--url https://direct.evolink.ai/v1/responses \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "MiniMax-M4",
"input": "Please introduce yourself in one sentence.",
"max_output_tokens": 4096
}
'{
"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.\n\nUse 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
}BaseURL: 기본 BaseURL은
https://direct.evolink.ai이며, 텍스트 모델과 장시간 연결을 더 잘 지원합니다. https://api.evolink.ai는 멀티모달 서비스의 기본 엔드포인트이자 텍스트 모델의 대체 주소 역할을 합니다.POST /v1/responses — 지원 모델: MiniMax-M4, MiniMax-M3.1-Flash. 필수 필드는 model, input입니다. 최소 예제에서는 출력 한도도 지정합니다.
Responses는
MiniMax-M4와 MiniMax-M3.1-Flash만 지원합니다. MiniMax-M3와 MiniMax-M2.5는 Chat Completions 또는 Messages를 사용하세요.입력은 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로 파싱했다면 다음과 같이 텍스트를 추출할 수 있습니다.
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)
최대 출력(추론 토큰 포함) —
MiniMax-M4 262,144, MiniMax-M3.1-Flash 524,288. 출력 예산은 우선 1,024토큰 이상으로 설정하세요. 추론 단계에서 모두 소모하면 답변 본문이 없을 수 있습니다. status="incomplete"이고 incomplete_details.reason="max_output_tokens"이면 출력 한도를 높이세요.인증
모든 API에는 Bearer Token 인증이 필요합니다
API Key 발급:
API Key 관리 페이지에서 API Key를 발급받으세요
요청 헤더에 추가:
Authorization: Bearer YOUR_API_KEY
본문
application/json
| 모델 | 컨텍스트(토큰) | 최대 출력(토큰) |
|---|---|---|
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 또는 Messages를 사용하세요.
사용 가능한 옵션:
MiniMax-M4, MiniMax-M3.1-Flash 예시:
"MiniMax-M4"
필수 필드는 model, input입니다. 일반 문자열은 사용자 메시지 하나로 처리합니다. 멀티턴 대화, 이미지, 동영상, 도구 호출에는 입력 항목 배열을 전달하세요. 도구 호출, 이미지·동영상 입력, 스트리밍, 멀티턴 대화는 API 레퍼런스를 참조하세요.
예시:
"Explain recursion in one sentence."
응답
생성 성공
Responses API의 응답 객체입니다. 아래 필드 외에도 이번 요청의 설정인 tools, tool_choice, temperature, top_p, text, reasoning, max_output_tokens 등을 포함합니다.
생성 순서대로 정렬된 출력 항목 목록입니다:
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으로 결과를 전달해야 합니다