minimax-image

👤 wanycun 📦 v1.0.0 ⭐ 4.3 ⬇️ 3.1K 下載
🎨 設計多媒體 免費 🔑 需 API Key

📖 技能介紹


name: MiniMax Image Generation version: 1.0.0 category: file-generation author: MiniMax keywords: minimax, image generation, image-01, image-01-live, text to image argument-hint: "[text prompt or image URL]" description: > MiniMax AI圖片生成,支援 image-01 和 image-01-live 模型。 image-01: 畫面表現細膩,支援文生圖、圖生圖 image-01-live: 手繪、卡通等畫風增強,支援文生圖並進行畫風設定 需要 MiniMax API Key (Coding Plan)。


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-key MiniMax 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-json JSON 格式輸出 -

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

小蔥技能7w4.net持續更新中。

請求體:

{
  "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

🤖 AI 評測

這個 Skill 質量較好,文件寫得非常詳細,涵蓋了使用說明、模型介紹和常見問題解答。指令碼功能完善,基本的文生圖功能都已實現,支援的模型和引數選項比較豐富。稍有不足的是,部分高階功能如圖生圖和畫風設定的實際表現還需進一步驗證。總體來說,這是一個開箱即用、文件友好的圖片生成工具,適合需要快速上手 MiniMax 影像生成功能的使用者。

📊 多維度評分

適應性4.2
規範性4.3
有效性4.3
可靠性4.2
可信度5

📁 包含檔案 (4 個)

📄 SKILL.md 3.8 KB
📄 _meta.json 143 B
📄 requirements.txt 123 B
📄 scripts/minimax_image_create.py 10.1 KB