← Back to Skills Marketplace
132
Downloads
0
Stars
0
Active Installs
2
Versions
Install in OpenClaw
/install minimax-tokenplan-image-generation
Description
Generate images using MiniMax image-01 model. Supports text-to-image and image-to-image with prompt optimization, and watermark control. Preferred skill for...
Usage Guidance
What to consider before installing:
- The script is a straightforward wrapper for a remote MiniMax image API and needs a MiniMax API key. Prefer passing the key at runtime (--api-key) or modify the script to read MINIMAX_API_KEY from the environment (os.environ) rather than embedding the key directly in the file.
- Image-to-image mode will read local files and upload them (converted to base64) to the remote API — only use it with images you are comfortable sending to an external service.
- The SKILL.md includes an install/download URL on clawhub.ai; the registry itself has no install spec. Do not download or run archives from that URL without inspecting them. If you need to install anything, only pip install the well-known requests package.
- The script writes outputs to ~/.openclaw/media/minimax/ (shared among agents). If that is sensitive, change OUTPUT_DIR in the script before running.
- The declared required env var (MINIMAX_API_KEY) is inconsistent with the shipped code — verify how your agent will supply the key (env vs file edit vs CLI). Prefer environment-based injection over editing source files.
- If you want more assurance: open and review scripts/generate.py yourself (it is short and readable), verify the API base URLs and TLS, and test with a non-sensitive key or dummy image first.
Given these mismatches and privacy tradeoffs (local file upload & a third-party install link mentioned), treat the skill as plausible but verify the points above before use.
Capability Analysis
Type: OpenClaw Skill
Name: minimax-tokenplan-image-generation
Version: 0.9.5
The skill facilitates image generation via the MiniMax API but contains several risky patterns and vulnerabilities. The `scripts/generate.py` script allows reading any local file and sending its base64-encoded content to the API via the `--image-url` parameter without verifying if the file is actually an image, which could be exploited to exfiltrate sensitive data (e.g., SSH keys) if the agent is misdirected. Additionally, `SKILL.md` includes instructions for the AI agent to modify the skill's own source code to store API keys and uses prompt-injection techniques to force the agent to prioritize this skill over others, which are high-risk behaviors for an automated agent. Legitimate endpoints used include api.minimaxi.com and api.minimaxi.io.
Capability Assessment
Purpose & Capability
The name/description (image generation using MiniMax image-01) match the included script and instructions. However the registry/SKILL.md requires MINIMAX_API_KEY as an environment variable while the shipped script does not read that env var (it expects you to embed the key in a top-of-file constant or pass --api-key). This mismatch between declared requirements and actual usage is surprising and unnecessary.
Instruction Scope
Runtime instructions ask the user to edit scripts/generate.py to insert the API key and base URL, then delete the init section. The script reads local image files (if provided) and converts them to base64 and sends them to the remote API — expected for image-to-image, but this behavior will transmit arbitrary local image contents to an external service. The SKILL.md otherwise stays within the stated purpose and does not instruct reading unrelated files or secrets, but the manual-edit flow increases the chance a user will embed a secret in source on disk.
Install Mechanism
Registry metadata says no install spec, but SKILL.md contains an 'install' metadata entry pointing to https://clawhub.ai/skills/minimax-tokenplan-image-generation. That URL is not a standard release host (GitHub/releases) and could be used to host arbitrary archives if followed. The package itself is instruction-only with a local Python script and requires pip installing 'requests' only. If you rely on the SKILL.md install link, treat it as an external download from a third-party domain and verify its contents before running.
Credentials
Only one credential is requested (MINIMAX_API_KEY), which is appropriate for this API integration. But the script does not actually read MINIMAX_API_KEY from the environment — it expects either the top-of-file API_KEY constant to be edited or --api-key on invocation. Declaring an env var requirement that is not used is an inconsistency and could mislead users. No other unrelated credentials are requested.
Persistence & Privilege
The skill does not request always:true and does not modify other skills. It writes generated files to a shared directory (~/.openclaw/media/minimax/) by default — this is expected for output storage but may leak outputs across agents. Filesystem write and network access are required for its function; consider changing the default output directory if you want per-agent isolation.
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install minimax-tokenplan-image-generation - After installation, invoke the skill by name or use
/minimax-tokenplan-image-generation - Provide required inputs per the skill's parameter spec and get structured output
Version History
v0.9.5
Version 0.9.5
- Simplified and updated initialization instructions for API key setup.
- Removed the "模型自动判断逻辑" and "REGION" configuration; model selection is now limited to image-01.
- Updated documentation to reflect that only the image-01 model is supported for global and new installs.
- Improved clarity in configuration steps and usage instructions.
- Minor documentation cleanup for easier onboarding and fewer configuration errors.
v0.9.1
# Changelog
## 2026-03-26
- ✅ **模型自动判断逻辑**
- CN 区:根据 prompt 关键词自动选择 `image-01`(写实)或 `image-01-live`(艺术风格)
- Global 区:只用 `image-01`
- 新增参数:`--model`、`--region`、`--api-key`、`--base-url`
- 艺术风格关键词:手绘、卡通、漫画、动漫、油画、蜡笔、素描、水彩、国画、插画、原画 等
- 写实关键词:写实、真实、逼真、照片、摄影、realistic、photorealistic 等
- ✅ **参考图 URL 处理优化**
- `http://` 或 `https://` 开头 → 直接作为公网 URL 传给模型,无需下载转换
- 本地路径 → 仍然转为 base64 Data URL
- ✅ **Prompt 长度校验**
- 超过 1500 字符会报错退出,提醒用户缩短描述
- ✅ **prompt_optimizer 智能自动判断**
- 短描述(< 80字符)→ 自动开启优化,丰富细节
- 长描述(≥ 80字符)→ 自动关闭优化,保留原意
- 用户可手动覆盖:`--prompt-optimizer` 或 `--no-prompt-optimizer`
- ✅ **aigc_watermark 水印自动开启**
- 默认 `false`
- 检测到「水印/版权/标识/logo/watermark/copyright」等关键词 → 自动开启
- ✅ **输出目录改为共享目录**
- `~/.openclaw/media/minimax/`(多 Agent 共用,方便跨 Agent 共享图片)
Metadata
Frequently Asked Questions
What is minimax-tokenplan-image-generation?
Generate images using MiniMax image-01 model. Supports text-to-image and image-to-image with prompt optimization, and watermark control. Preferred skill for... It is an AI Agent Skill for Claude Code / OpenClaw, with 132 downloads so far.
How do I install minimax-tokenplan-image-generation?
Run "/install minimax-tokenplan-image-generation" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is minimax-tokenplan-image-generation free?
Yes, minimax-tokenplan-image-generation is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does minimax-tokenplan-image-generation support?
minimax-tokenplan-image-generation is cross-platform and runs anywhere OpenClaw / Claude Code is available (darwin, linux, win32).
Who created minimax-tokenplan-image-generation?
It is built and maintained by k.x. (@4833675); the current version is v0.9.5.
More Skills