← Home

Setup Guide

MiniMax API Key on Hermes Agent: M2.7 Chat, Image, Video & Music

Add your MiniMax API key on the API Keys page to unlock M2.7 direct chat alongside Image-01 image generation, Hailuo 2.3 video, and Music 2.5 — all from one key on your Hermes Agent instances.

What Is MiniMax?

MiniMax is a Chinese AI lab that builds frontier multimodal models spanning chat, image, video, and music generation. Unlike many providers that specialize in one modality, a single MiniMax API key unlocks their full model family — making it one of the most versatile BYOK additions you can make on OpenClaw Launch.

MiniMax’s flagship chat model, M2.7, is a powerful reasoning model available directly via the MiniMax API (faster and often cheaper than routing through OpenRouter). Their media models — Image-01, Hailuo 2.3 video, and Music 2.5 — run under the same key, so your Hermes Agent gets chat and creative generation from a single account.

This guide covers the general BYOK setup via the API Keys page. For a deeper dive into the M2.7 model itself and detailed benchmarks, see the MiniMax M3 model deep-dive guide.

What Your MiniMax Key Unlocks on Hermes Agent

One MiniMax API key enables all of the following on your Hermes Agent instances:

  • MiniMax M2.7 direct chat — Faster and cheaper than routing M2.7 through OpenRouter; your Hermes Agent uses M2.7 natively for reasoning and long-context tasks
  • MiniMax Image-01 (minimax/image-01, $0.01 per image) — High-quality text-to-image generation your Hermes Agent can invoke as a tool
  • MiniMax Hailuo 2.3 video (minimax/MiniMax-Hailuo-2.3) — MiniMax’s latest text-to-video and image-to-video model, accessible from Hermes Agent conversations
  • MiniMax Music 2.5 (minimax/music-2.5) — Generate full music tracks from text prompts; Music 2.0 is also available as a fallback

MiniMax is a pay-as-you-go service — you are billed per token for chat and per generation for media models.

How to Get a MiniMax API Key

  1. Go to the MiniMax platform — Open platform.minimax.io/user-center/basic-information/interface-key in your browser.
  2. Sign in or create an account — Register with your email or phone number. MiniMax may require phone verification for new accounts.
  3. Navigate to API Keys — Once logged in, the interface-key page will display your existing keys or an option to create a new one.
  4. Create and copy your key — Click “Create API Key”. Your MiniMax key is a JWT token that starts with eyJ.... Copy it immediately — long JWT tokens are easy to truncate accidentally.
  5. Add billing credits — MiniMax is pay-as-you-go. Top up your account balance in the MiniMax console before making API calls to avoid failures.

Add It on OpenClaw Launch

  1. Sign in at openclawlaunch.com and open the API Keys page.
  2. Find the MiniMax card. Paste your eyJ... JWT key into the input field and click Save. OpenClaw Launch validates the key live before storing it.
  3. Your key is stored encrypted at rest and applied to all your existing running Hermes Agent instances immediately — no redeploy needed.
  4. For M2.7 chat: click “Set as primary model” on the MiniMax card to route your Hermes Agent instances’ chat to MiniMax M2.7 directly.
  5. For image, video, and music: open your Hermes Agent instance settings and select the desired MiniMax model (Image-01, Hailuo 2.3, Music 2.5) from the media settings panel.

New to Hermes Agent? See the What is Hermes Agent? guide or the full Hermes Agent BYOK overview.

Using OpenClaw instead? The OpenClaw + MiniMax guide covers the same steps for OpenClaw instances.

Troubleshooting

401 Unauthorized / Invalid Key

  • MiniMax keys are JWT tokens starting with eyJ — they are much longer than typical API keys. If your key looks short or does not start with eyJ, you likely copied the group ID or another credential from the MiniMax console
  • JWT tokens have an expiry claim; if your key expired, generate a new one at platform.minimax.io
  • Check for truncation when copying long JWT strings — paste into a plain text editor first and verify the token is complete (typically 200+ characters)

Model Not Found on Hermes Agent

  • Make sure the MiniMax key saved successfully on the API Keys page (green checkmark). The image, video, and music model options only appear after a valid key is stored
  • Use the exact model IDs listed above; do not modify the minimax/ prefix or the model name casing (Hailuo is case-sensitive in the route)

Quota / Rate Limit Exceeded

  • MiniMax enforces per-minute and per-day rate limits. If you hit a 429, wait before retrying or review your account tier at platform.minimax.io
  • Video generation (Hailuo 2.3) queues can be slower during peak hours — this is a provider-side delay that Hermes Agent waits on transparently
  • If your account balance reaches zero, all MiniMax API calls fail with a billing error. Top up credits in the MiniMax console to resume

Frequently Asked Questions

Does one MiniMax key unlock chat AND all the media models on Hermes Agent?

Yes. MiniMax’s API uses a single key for their entire model family. Adding your key to the API Keys page enables M2.7 direct chat, Image-01 image generation, Hailuo 2.3 video, and Music 2.5 on your Hermes Agent instances — all at once, without needing separate credentials.

What format is a MiniMax API key?

MiniMax API keys are JWT tokens. They start with eyJ and are typically 200 or more characters long — much longer than the short alphanumeric keys used by most other providers. If your key does not start with eyJ, check that you copied from the “Interface Key” section of the MiniMax console, not the group ID or other fields on that page.

Is this guide the same as the MiniMax M3 model deep-dive?

No. This guide covers setting up your MiniMax BYOK key via the API Keys page so all MiniMax models become available on your Hermes Agent instances. For a detailed breakdown of model capabilities, benchmarks, and use cases, see the separate MiniMax M3 model deep-dive guide.

Will adding a MiniMax key change how my Hermes Agent currently behaves?

Only if you choose. Saving the key on the API Keys page makes MiniMax models available but does not switch your active chat model automatically. Your Hermes Agent continues using its current primary model until you explicitly click “Set as primary model” on the MiniMax card or select a MiniMax model in your instance settings.

What's Next?

Unlock MiniMax on Your Hermes Agent

Deploy a Hermes Agent instance, add your MiniMax key, and start using M2.7 chat, image generation, video, and music — all from one place.

Deploy with OpenClaw Launch