模型參數
OC編輯器
用文字指令修改角色圖(服裝、姿勢、背景、表情),角色保持不變。
POST
/api/go/b2b/tasks/createtask_type: OC_EDIT
參數說明
| 欄位 | 類型 | 必填 | 說明 |
|---|---|---|---|
watermark | boolean | 必填 否 | 是否加浮水印,預設 false。 |
model_type | string | 必填 否 | dream = Kusa-Mix; dream_flash = Kusa-Mix-Flash; dream_pro = Kusa-Mix-Pro; standard = Kusa-Flash; pro = Kusa-Flash Pro |
user_prompt | string | 必填 是 | 要改什麼,用一般的話寫,例如「把衣服換成冬季大衣」。 |
reference_image | string | 必填 否 | 要修改的角色圖,公開 HTTPS 網址。不給就依文字設計新角色。 |
modifications | array | 必填 否 | 按分類追加的修改(可選,最多 7 項):{"category": "clothing", "type": "tag", "value": "red scarf"},或 {"category": "clothing", "type": "image", "image": "<物件圖片網址>"}。 |
dimensions | object | 必填 否 | 比例提示,例如直式用 {"width": 832, "height": 1216},預設 1024×1024。 |
使用說明
- modifications 最多 7 項,圖片連參考圖共最多 8 張。dimensions 是比例的提示,不是確切的輸出尺寸。
請求示例
params · JSON
{
"model_type": "dream",
"reference_image": "https://cdn.kusa.pics/generated/gb9g1YvV8ac41vwLQg91XTygdQh2/original/2026/10/24/e1cb910c-b5f0-484a-8eec-b8ec7e190f8b.png",
"user_prompt": "Change her outfit to a cozy winter coat and a red scarf",
"watermark": false
}