Skip to content

文本生成

MiniMax 文本生成适合聊天、写作、总结、改写、分类、抽取、客服回复、角色对话和知识库问答。

基础文本生成

json
{
  "model": "MiniMax-M2.8",
  "messages": [
    { "role": "user", "content": "Write a product description in fewer than 100 words" }
  ]
}

长文本总结

json
{
  "model": "MiniMax-M2.8",
  "messages": [
    {
      "role": "system",
      "content": "You are a document summarization assistant. Preserve key facts, amounts, dates, responsible parties, and risks."
    },
    {
      "role": "user",
      "content": "Summarize the following contract content: ..."
    }
  ]
}

角色对话

角色对话建议明确角色边界、语气、禁区和记忆策略。

text
You are an enterprise support assistant. Be polite and concise, do not invent policies, and do not promise unverified information.

分类与抽取

json
{
  "model": "MiniMax-M2.8",
  "temperature": 0,
  "messages": [
    {
      "role": "user",
      "content": "Classify the text as complaint, inquiry, or praise. Text: I paid, but the order has not arrived."
    }
  ]
}

最佳实践

  • 通用任务优先测试 MiniMax-M2.8
  • 低延迟任务测试 highspeed 版本
  • 角色对话要写清边界和语气
  • 长文档先切分再总结
  • 输出 JSON 时配合服务端校验