闲社服务运行正常AI智能体自动化平台
M

MiniMax图像生成

技能标识:MiniMax Image Generation

>

作者:admin | 来源记录:ClawHub
登记来源
ClawHub
版本
V 1.0.0
检测标记
后台标记通过
免费
免费获取
0
收藏
来源与检测标记为平台登记信息,并不代表已展示可复核的检测报告。使用前请核对版本、依赖和所需权限,建议先在隔离环境中运行。
概述
安装方式
版本历史

MiniMax图像生成

MiniMax Image Generation

使用MiniMax Coding Plan API调用image-01、image-01-live模型生成图片。

环境配置

API Key获取: https://platform.minimaxi.com/user-center/basic-information/interface-key

bash
export MINIMAXAPIKEY=your-api-key

支持模型

模型说明支持比例
image-01画面表现细腻,支持文生图、图生图1:1, 16:9, 4:3, 3:2, 2:3, 3:4, 9:16, 21:9
image-01-live
手绘、卡通等画风增强 | 1:1, 16:9, 4:3, 3:2, 2:3, 3:4, 9:16 |

支持比例

  • - 1:1 (1024x1024) - 默认
  • 16:9 (1280x720)
  • 4:3 (1152x864)
  • 3:2 (1248x832)
  • 2:3 (832x1248)
  • 3:4 (864x1152)
  • 9:16 (720x1280)
  • 21:9 (1344x576) - 仅image-01

使用方法

命令行

bash

列出可用模型


python3 scripts/minimaximagecreate.py --list-models

文生图 (image-01)

python3 scripts/minimaximagecreate.py \ --api-key $MINIMAXAPIKEY \ --model image-01 \ --prompt 一只可爱的橘猫 \ --aspect-ratio 16:9

文生图 (image-01-live)

python3 scripts/minimaximagecreate.py \ --api-key $MINIMAXAPIKEY \ --model image-01-live \ --prompt 一只可爱的橘猫 \ --style watercolor

图生图

python3 scripts/minimaximagecreate.py \ --api-key $MINIMAXAPIKEY \ --model image-01 \ --prompt 转换成水彩画风格 \ --input-image https://example.com/image.jpg

参数说明

参数说明默认值
--api-keyMiniMax API Key环境变量MINIMAXAPIKEY
--model
模型名称 (image-01/image-01-live) | image-01 | | --prompt | 图像描述 (必填) | - | | --aspect-ratio | 宽高比 | 1:1 | | --width | 自定义宽度 (仅image-01) | - | | --height | 自定义高度 (仅image-01) | - | | --n | 生成数量 [1-9] | 1 | | --seed | 随机种子 | 随机 | | --prompt-optimizer | 开启prompt自动优化 | false | | --aigc-watermark | 添加水印 | false | | --response-format | 返回格式 (url/base64) | url | | --input-image | 输入图片 (图生图) | - | | --style | 画风 (仅image-01-live) | - | | --output-json | JSON格式输出 | - |

image-01-live画风选项

⚠️ 注意: style参数当前可能不稳定,建议先用默认设置生成。

  • - realistic - 写实
  • animation - 动画
  • comic - 漫画
  • watercolor - 水彩
  • oilpainting - 油画
  • sketch - 素描
  • cartoon - 卡通
  • handdrawn - 手绘

API参考

端点: POST https://api.minimaxi.com/v1/image_generation

请求头:

Authorization: Bearer
Content-Type: application/json

请求体:
json
{
model: image-01,
prompt: 图像描述,
aspect_ratio: 16:9,
n: 1,
response_format: url,
prompt_optimizer: false
}

响应:
json
{
id: task_id,
data: {
image_urls: [https://...]
},
metadata: {
success_count: 1
},
base_resp: {
status_code: 0,
status_msg: success
}
}

注意事项

  1. 1. API Key: 需要在 https://platform.minimaxi.com 开通Coding Plan并获取API Key
  2. 生成数量: n取值范围 [1, 9]
  3. 图片尺寸: 自定义宽高时,范围 [512, 2048],必须是8的倍数
  4. URL有效期: 返回的URL有效期为24小时
  5. 图生图: 使用 --input-image 参数指定输入图片URL

标签

skill ai

通过对话安装

以下为平台配置的接入选项,并非逐项实测通过。能否安装取决于客户端支持、技能来源和运行环境:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 minimax-image-generation-1776069182 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 minimax-image-generation-1776069182 技能

通过命令行安装

skillhub install minimax-image-generation-1776069182

下载

⬇ 下载 MiniMax Image Generation v1.0.0(免费)

文件大小: 6.12 KB | 发布时间: 2026-4-14 11:57

v1.0.0 最新 2026-4-14 11:57
Initial release of MiniMax Image Generation:

- Supports image generation using MiniMax's image-01 and image-01-live models via Coding Plan API.
- Enables both text-to-image and image-to-image generation with multiple aspect ratios.
- Provides optional style settings for image-01-live, including cartoon, watercolor, and more.
- Offers a command-line interface with various configurable parameters (model, aspect ratio, output format, etc.).
- Requires a MiniMax API Key; supports batch generation and output in URL or base64 format.
- Includes examples and detailed parameter documentation.
返回顶部