Skip to main content
Vendor: MiniMax Model ID: minimax-m2.5 Capability: 128K context · tool use · streaming · CJK-native Pricing: per-token, mid tier (live rate) MiniMax M2.5 was MiniMax’s prior production model. It earned a reputation for creative writing in Chinese — character voice consistency, dialogue, narrative flow — at a price tier where most competitors flatten tone. Still production-capable for that niche. For new general-purpose work, prefer MiniMax M2.7.

Request

curl https://llm.bytespike.ai/v1/chat/completions \
  -H "Authorization: Bearer $BYTESPIKE_API_KEY" \
  -H "content-type: application/json" \
  -d '{
    "model": "minimax-m2.5",
    "messages": [{"role": "user", "content": "续写这段对话,保持角色性格。"}]
  }'

Body parameters

FieldTypeRequiredDefaultNotes
modelstringyesminimax-m2.5
messagesarrayyesCJK accepted natively.
max_tokensintegernomodel maxMax: 8192.
temperaturenumberno1.0Creative writing benefits from 1.0–1.3.
toolsarraynoFunction calling supported.
streambooleannofalseSSE streaming.

Response

{
  "id": "chatcmpl-…",
  "object": "chat.completion",
  "model": "minimax-m2.5",
  "choices": [{"index": 0, "message": {"role": "assistant", "content": "..."}, "finish_reason": "stop"}],
  "usage": {"prompt_tokens": 287, "completion_tokens": 612, "total_tokens": 899}
}

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.5", "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

  • Existing creative-writing pipelines validated against this version.
  • For new work, prefer MiniMax M2.7.
  • For Chinese general-purpose flagship, see Kimi K2.6 or GLM-5.1.

Limits

LimitValue
Context window128K tokens
Max output8192 tokens
Supports tool useYes
Supports visionNo
Supports streamingYes
Supports prompt cachingAutomatic