openclaw/extensions/minimax
liyuan97 e2e9f979ca
feat(minimax): add image generation provider and trim model catalog to M2.7 (#54487)
* feat(minimax): add image generation and TTS providers, trim TUI model list

Register MiniMax image-01 and speech-2.8 models as plugin providers for
the image_generate and TTS tools. Both resolve CN/global base URLs from
the configured model endpoint origin.

- Image generation: base64 response, aspect-ratio support, image-to-image
  via subject_reference, registered for minimax and minimax-portal
- TTS: speech-2.8-turbo (default) and speech-2.8-hd, hex-encoded audio,
  voice listing via get_voice API, telephony PCM support
- Add MiniMax to TTS auto-detection cascade (after ElevenLabs, before
  Microsoft) and TTS config section
- Remove MiniMax-VL-01, M2, M2.1, M2.5 and variants from TUI picker;
  keep M2.7 and M2.7-highspeed only (backend routing unchanged)

* feat(minimax): trim legacy model catalog to M2.7 only

Cherry-picked from temp/feat/minimax-trim-legacy-models (949ed28).
Removes MiniMax-VL-01, M2, M2.1, M2.5 and variants from the model
catalog, model order, modern model matchers, OAuth config, docs, and
tests. Keeps only M2.7 and M2.7-highspeed.

Conflicts resolved:
- provider-catalog.ts: removed MINIMAX_TUI_MODELS filter (no longer
  needed since source array is now M2.7-only)
- index.ts: kept image generation + speech provider registrations
  (added by this branch), moved media understanding registrations
  earlier (as intended by the cherry-picked commit)

* fix(minimax): update discovery contract test to reflect M2.7-only catalog

Cherry-picked from temp/feat/minimax-trim-legacy-models (2c750cb).

* feat(minimax): add web search provider and register in plugin entry

* fix(minimax): resolve OAuth credentials for TTS speech provider

* MiniMax: remove web search and TTS providers

* fix(minimax): throw on empty images array after generation failure

* feat(minimax): add image generation provider and trim catalog to M2.7 (#54487) (thanks @liyuan97)

---------

Co-authored-by: tars90percent <tars@minimaxi.com>
Co-authored-by: George Zhang <georgezhangtj97@gmail.com>
2026-03-25 09:29:35 -07:00
..
README.md feat(minimax): add image generation provider and trim model catalog to M2.7 (#54487) 2026-03-25 09:29:35 -07:00
image-generation-provider.ts feat(minimax): add image generation provider and trim model catalog to M2.7 (#54487) 2026-03-25 09:29:35 -07:00
index.ts feat(minimax): add image generation provider and trim model catalog to M2.7 (#54487) 2026-03-25 09:29:35 -07:00
media-understanding-provider.ts feat(media): route image tool through media providers 2026-03-16 22:00:39 -07:00
model-definitions.test.ts feat(minimax): add image generation provider and trim model catalog to M2.7 (#54487) 2026-03-25 09:29:35 -07:00
model-definitions.ts refactor: unify minimax model and failover live policies 2026-03-23 00:02:35 -07:00
oauth.runtime.ts fix(auth): lazy-load provider oauth helpers 2026-03-18 13:40:28 -07:00
oauth.ts fix: ensure env proxy dispatcher before MiniMax and OpenAI Codex OAuth flows (openclaw#52228) 2026-03-23 09:26:34 -05:00
onboard.ts refactor: shrink plugin sdk public surface 2026-03-18 23:31:08 +00:00
openclaw.plugin.json MiniMax: add M2.7 models and update default to M2.7 (#49691) 2026-03-18 09:24:37 -07:00
package.json build: bump version to 2026.3.22 2026-03-22 11:58:33 -07:00
provider-catalog.ts feat(minimax): add image generation provider and trim model catalog to M2.7 (#54487) 2026-03-25 09:29:35 -07:00

README.md

MiniMax (OpenClaw plugin)

Bundled MiniMax plugin for both:

  • API-key provider setup (minimax)
  • Token Plan OAuth setup (minimax-portal)

Enable

openclaw plugins enable minimax

Restart the Gateway after enabling.

openclaw gateway restart

Authenticate

OAuth:

openclaw models auth login --provider minimax-portal --set-default

API key:

openclaw setup --wizard --auth-choice minimax-global-api

Notes

  • MiniMax OAuth uses a user-code login flow.
  • OAuth currently targets the Token Plan path.