Skip to main content
Vendor: MiniMax Model ID: minimax-m2.7 Capability: 200K context · vision · tool use · streaming · structured output · CJK-native Pricing: per-token, mid tier (live rate) MiniMax M2.7 is the current production flagship — strong creative-writing quality with general-purpose reasoning lifted to compete with Kimi K2.6 and GLM-5.1. The 200K context window plus native vision make it the right MiniMax choice for any new work.

Request

curl https://llm.bytespike.ai/v1/chat/completions \
  -H "Authorization: Bearer $BYTESPIKE_API_KEY" \
  -H "content-type: application/json" \
  -d '{
    "model": "minimax-m2.7",
    "messages": [{"role": "user", "content": "为这款产品写一份小红书风格的种草文案。"}]
  }'

Body parameters

FieldTypeRequiredDefaultNotes
modelstringyesminimax-m2.7
messagesarrayyesCJK accepted natively. Vision via image_url blocks.
max_tokensintegernomodel maxMax: 16384.
toolsarraynoFunction calling supported (parallel).
response_formatobjectnoJSON / structured output.
streambooleannofalseSSE streaming.

Response

{
  "id": "chatcmpl-…",
  "object": "chat.completion",
  "model": "minimax-m2.7",
  "choices": [{"index": 0, "message": {"role": "assistant", "content": "..."}, "finish_reason": "stop"}],
  "usage": {"prompt_tokens": 142, "completion_tokens": 487, "total_tokens": 629}
}

Code examples

curl https://llm.bytespike.ai/v1/chat/completions \
  -H "Authorization: Bearer $BYTESPIKE_API_KEY" \
  -H "content-type: application/json" \
  -d '{"model": "minimax-m2.7", "messages": [{"role": "user", "content": "种草文案"}]}'

Streaming + caching

"stream": true for SSE. Automatic prompt caching.

Errors

CodeTriggerBilled?
400 / 401 / 402 / 422 / 429StandardNo
5xxUpstreamNo (auto-retry)

When to use

  • Default MiniMax for new work — Chinese-market creative writing, marketing copy, character-voice dialogue.
  • Long-document summarisation in Chinese (200K window).
  • For Chinese general-purpose alternatives, see Kimi K2.6, GLM-5.1.

Limits

LimitValue
Context window200K tokens
Max output16384 tokens
Supports tool useYes (parallel)
Supports visionYes
Supports streamingYes
Supports prompt cachingAutomatic