- 홈
- 플러그인
- 비전, 음성 및 멀티모달
- dsh-minimax-media
dsh-minimax-media
uhduqh/dsh-minimax-media
Generates images and videos with MiniMax models in chat, saving results to the workspace. Its HTTP routes have no DSH access check, so a web page open in your browser could call them.
설치
dsh plugin --profile web add github:uhduqh/dsh-minimax-mediaREADME
MiniMax media for DeepSeek Harness
![]()
A DeepSeek Harness (DSH) plugin that connects MiniMax image and video generation to the agent. Ask in chat; the agent calls the model and saves the result in the current workspace.
Tools
| Tool | Purpose |
|---|---|
minimax_generate_image | Text to image with MiniMax-H3-Image, MiniMax-H3-Image-Highspeed, or the legacy image-01. |
minimax_generate_video | Creates an asynchronous task on the H3 (V2) or Hailuo/T2V/I2V (V1) API, with optional first/last frame. |
minimax_video_status | Reads task progress and downloads the finished MP4 into the workspace. |
minimax_list_models | Free key check; lists the models MiniMax reports plus the media models this plugin supports. |
The settings page (Settings → MiniMax media) stores the API key and lets you pick the default image and video model from a list. A single tool call can still name another model.
Requirements
- DSH
0.2.x(tested on0.2.2-rc.5) and Node.js 20+. - A MiniMax API key with access to the models you use and a positive balance. Keys are region-bound:
platform.minimaxi.com→https://api.minimax.cn(default)platform.minimax.io→https://api.minimax.io(setbaseUrlorMINIMAX_API_BASE)
Install
Once listed in the plugin market, install it from Plugins → Discover. Other ways:
# npm, after publishing
dsh plugin --profile <profile> add dsh-minimax-media
# GitHub
dsh plugin --profile <profile> add github:<owner>/dsh-minimax-media#v1.0.0
# local checkout (edits take effect after restarting DSH)
dsh plugin --profile <profile> add link:/path/to/dsh-minimax-media
Setup
- Open Settings → MiniMax media.
- Paste a key from the matching MiniMax console and save it. Saving runs a free check against the model-list endpoint.
- Pick the default image and video models in the same page (or keep the built-in defaults,
MiniMax-H3-ImageandMiniMax-H3). - Open a chat and ask for an image or video.
The key is stored in the DSH credential store as MINIMAX_API_KEY; it is never written to plugin config, session logs, or tool output. The settings choice is saved in <DSH home>/plugin-data/dsh-minimax-media/settings.json and contains no credentials.
Precedence for the model: tool-call model argument > settings choice > config imageModel / videoModel > built-in default.
Usage
- "Draw an orange cat wearing a hat, watercolor."
- "Generate four 1:1 minimalist avatars."
- "Use this image as the first frame for a 6-second video, slow push in."
- "Which video models can my key use?"
Images are saved under <workspace>/minimax/images/ and attached to the chat. Videos are saved under <workspace>/minimax/videos/ and returned by path. Both locations follow the outputDir config field.
Models
- Images:
MiniMax-H3-Image,MiniMax-H3-Image-Highspeed,image-01 - Video (V2):
MiniMax-H3,MiniMax-H3-Highspeed,MiniMax-H3-Lite,MiniMax-H3-Max - Video (V1):
MiniMax-Hailuo-2.3,MiniMax-Hailuo-2.3-Fast,MiniMax-Hailuo-02,T2V-01,T2V-01-Director,I2V-01,I2V-01-Director,I2V-01-live
MiniMax changes its catalog; use minimax_list_models to see what the plugin can call.
Billing and limits
MiniMax bills every generated asset. Generation is not idempotent: after a timeout or network error the request may still finish and be billed, so the plugin never retries automatically. Video tasks keep running after the conversation ends. See docs/DETAIL.md for model limits, content-safety errors, and troubleshooting.
Development
Plain ESM, no dependencies, no build step.
npm test
index.js— Host half: tools, MiniMax requests, model resolution, settings route.client.js— settings page in the DSH Web UI.cordis.patch.yml— bundle row.docs/DETAIL.md/docs/DETAIL.zh.md— English and Chinese manuals.
中文说明
把 MiniMax 的图片生成和视频生成接进 DSH:在对话里说一句话,agent 会调用对应工具,把产物保存到当前工作区。
- 工具:
minimax_generate_image、minimax_generate_video、minimax_video_status、minimax_list_models。 - 配置:设置 → MiniMax 图像与视频 里保存
MINIMAX_API_KEY,并从列表里选择默认图片 / 视频模型。 - 优先级:单次调用的
model参数 > 设置页选择 > 插件配置imageModel/videoModel> 内置默认。 - 产物:图片在
<工作区>/minimax/images/,视频在<工作区>/minimax/videos/。 - 计费:MiniMax 按量计费,接口非幂等,超时也可能扣费;插件不会自动重试。
- 详细说明:docs/DETAIL.zh.md。
License
MIT