← 返回
内容创作 Key

minimax-image

MiniMax AI图片生成,支持 image-01 和 image-01-live 模型。 image-01: 画面表现细腻,支持文生图、图生图 image-01-live: 手绘、卡通等画风增强,支持文生图并进行画风设置 需要 MiniMax API Key (Coding Plan)。
MiniMax AI图片生成,支持 image-01 和 image-01-live 模型。 image-01: 画面表现细腻,支持文生图、图生图 image-01-live: 手绘、卡通等画风增强,支持文生图并进行画风设置 需要 MiniMax API Key (Coding Plan)。
wanycun
内容创作 clawhub v1.0.0 1 版本 99659.7 Key: 需要
★ 1
Stars
📥 2,616
下载
💾 599
安装
1
版本
#latest

概述

MiniMax Image Generation

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

环境配置

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

export MINIMAX_API_KEY="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

使用方法

命令行

# 列出可用模型
python3 scripts/minimax_image_create.py --list-models

# 文生图 (image-01)
python3 scripts/minimax_image_create.py \
  --api-key $MINIMAX_API_KEY \
  --model image-01 \
  --prompt "一只可爱的橘猫" \
  --aspect-ratio 16:9

# 文生图 (image-01-live)
python3 scripts/minimax_image_create.py \
  --api-key $MINIMAX_API_KEY \
  --model image-01-live \
  --prompt "一只可爱的橘猫" \
  --style watercolor

# 图生图
python3 scripts/minimax_image_create.py \
  --api-key $MINIMAX_API_KEY \
  --model image-01 \
  --prompt "转换成水彩画风格" \
  --input-image https://example.com/image.jpg

参数说明

参数说明默认值
--------------------
--api-keyMiniMax API Key环境变量 MINIMAX_API_KEY
--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-jsonJSON 格式输出-

image-01-live 画风选项

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

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

API 参考

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

请求头:

Authorization: Bearer <API_KEY>
Content-Type: application/json

请求体:

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

响应:

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

注意事项

  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

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-29 03:48 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

content-creation

AdMapix

fly0pants
广告情报与应用数据分析助手,支持搜索广告素材、分析应用排名、下载量、收入及市场洞察,用于广告素材和竞品分析。
★ 295 📥 136,420
content-creation

YouTube

byungkyu
使用托管OAuth集成YouTube Data API,支持搜索视频、管理播放列表、获取频道数据及评论互动,适用于用户需要时使用此技能。
★ 142 📥 41,024
content-creation

Humanizer

biostartechnology
消除AI写作痕迹,使文本更自然真实。基于维基百科"AI写作特征"指南,识别并修正夸张象征、宣传用语、肤浅-ing分析、模糊归因、破折号滥用、三项排比、AI词汇、负面平行结构及冗长连接词等模式。
★ 857 📥 199,333