MiniMax M2-her Is Now Available in Puter.js
On this page
Puter.js now supports MiniMax M2-her, a dialogue-first large language model built for immersive roleplay, character-driven chat, and expressive multi-turn conversations.
What is MiniMax M2-her?
MiniMax M2-her is a specialized variant of the MiniMax M2 model family, optimized for dialogue and character interactions. It features a 32K context window and is designed to stay consistent in tone and personality across conversations.
Key strengths include:
- Roleplay & storytelling: Creates vivid, immersive narrative experiences
- Character consistency: Maintains personality and tone across long conversations
- Multi-turn conversations: Excels at natural dialogue flow
- Companion applications: Ideal for chatbots and interactive fiction
Examples
Basic Chat
puter.ai.chat("You are a wise wizard named Merlin. Greet a young apprentice.", {
model: "minimax/minimax-m2-her"
})
Character Roleplay
puter.ai.chat([
{ role: "system", content: "You are a detective in 1920s Chicago. Stay in character." },
{ role: "user", content: "What brings you to this speakeasy tonight?" }
], { model: "minimax/minimax-m2-her" })
Storytelling with Streaming
async function streamStory() {
const response = await puter.ai.chat(
"Continue this story: The ancient door creaked open, revealing...",
{ model: "minimax/minimax-m2-her", stream: true }
);
for await (const part of response) {
if (part?.text) puter.print(part.text);
}
}
streamStory();
Get Started Now
Just add one script tag to your HTML:
<script src="https://js.puter.com/v2/"></script>
No API keys needed. Start building with MiniMax M2-her immediately.
Learn more:
Free, Serverless AI and Cloud
Start creating powerful web applications with Puter.js in seconds!
Get Started Now