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 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 格式輸出 | - |
⚠️ 注意: style 引數當前可能不穩定,建議先用預設設定生成。
realistic - 寫實animation - 動畫comic - 漫畫watercolor - 水彩oil_painting - 油畫sketch - 素描cartoon - 卡通hand_drawn - 手繪端點: 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"
}
}
7w4.net收錄了海量優質技能外掛。
--input-image 引數指定輸入圖片 URL這個 Skill 質量較好,文件寫得非常詳細,涵蓋了使用說明、模型介紹和常見問題解答。指令碼功能完善,基本的文生圖功能都已實現,支援的模型和引數選項比較豐富。稍有不足的是,部分高階功能如圖生圖和畫風設定的實際表現還需進一步驗證。總體來說,這是一個開箱即用、文件友好的圖片生成工具,適合需要快速上手 MiniMax 影像生成功能的使用者。