curl --request POST \
--url https://direct.evolink.ai/v1/messages \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "MiniMax-M4",
"max_tokens": 4096,
"messages": [
{
"role": "user",
"content": "Please introduce yourself in one sentence."
}
]
}
'
{
"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"
}
Messages API
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 레퍼런스를 참조하세요.
POST
/
v1
/
messages
curl --request POST \
--url https://direct.evolink.ai/v1/messages \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "MiniMax-M4",
"max_tokens": 4096,
"messages": [
{
"role": "user",
"content": "Please introduce yourself in one sentence."
}
]
}
'
{
"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"
}
BaseURL: 기본 BaseURL은
https://direct.evolink.ai이며, 텍스트 모델과 장시간 연결을 더 잘 지원합니다. https://api.evolink.ai는 멀티모달 서비스의 기본 엔드포인트이자 텍스트 모델의 대체 주소 역할을 합니다.max_tokens에는 추론과 답변이 모두 포함됩니다. MiniMax-M4와 MiniMax-M3.1-Flash는 항상 추론하며 content의 thinking 블록에 그 내용을 반환합니다. MiniMax-M3는 기본적으로 추론하지 않습니다. thinking을 {"type": "adaptive"}로 설정하면 추론을 수행하고 thinking 블록을 반환합니다. MiniMax-M2.5는 추론하지만 thinking 블록을 반환하지 않습니다. 추론 토큰은 output_tokens에 포함됩니다. 출력 예산은 우선 1,024토큰 이상으로 설정하세요. 추론 단계에서 모두 소모하면 답변 본문이 없을 수 있습니다.인증
모든 인터페이스는 Bearer Token 인증이 필요합니다
API Key 발급:
API Key 관리 페이지에 방문하여 API Key를 발급받으세요
요청 헤더에 추가:
Authorization: Bearer YOUR_API_KEY
참고: EvoLink는 /v1/messages에 대해 Bearer Token 인증을 통일적으로 사용합니다.
본문
application/json
| 모델 | 컨텍스트(토큰) | 최대 출력(토큰) |
|---|---|---|
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는 텍스트만 지원합니다.
사용 가능한 옵션:
MiniMax-M4, MiniMax-M3.1-Flash, MiniMax-M3, MiniMax-M2.5 예시:
"MiniMax-M4"
응답
메시지 객체
Anthropic 스타일의 메시지 응답