{
  "metadata": {
    "type": "ai_image_generation",
    "label": "AI图像生成",
    "icon": "fa-image",
    "color": "#8b5cf6",
    "description": "使用AI生成图像",
    "group": "AI",
    "component_type": "GenericNode"
  },
  "properties": {
    "image_tool": {
      "type": "string",
      "title": "绘画模型",
      "description": "",
      "default": "Jart",
      "enum": [
        "Jart",
        "Jart v1",
        "Flux",
        "Stable Diffusion",
        "Midjourney"
      ],
      "enumNames": [
        "Jart",
        "Jart v1",
        "Flux",
        "Stable Diffusion",
        "Midjourney"
      ]
    },
    "prompts": {
      "type": "string",
      "title": "绘画提示词",
      "description": "支持Jinja2模板语法，可以使用上游节点传递的变量，如：{{ title }}、{{ content }} 等",
      "format": "textarea",
      "rows": 6
    },
    "images_per_prompt": {
      "type": "integer",
      "title": "生成图片数量",
      "description": "",
      "default": 4,
      "condition": {
        "image_tool": {
          "not": "Midjourney"
        }
      }
    },
    "image_width": {
      "type": "integer",
      "title": "图片宽度",
      "description": "",
      "default": 1024,
      "condition": {
        "image_tool": {
          "not": "Midjourney"
        }
      }
    },
    "image_height": {
      "type": "integer",
      "title": "图片高度",
      "description": "",
      "default": 1024,
      "condition": {
        "image_tool": {
          "not": "Midjourney"
        }
      }
    },
    "hide_input_handle": {
      "type": "boolean",
      "title": "隐藏输入接口",
      "description": ""
    },
    "flux_steps": {
      "type": "integer",
      "title": "Flux 出图步数",
      "description": "",
      "default": "4"
    },
    "flux_cfg": {
      "type": "number",
      "title": "Flux CFG",
      "description": "",
      "default": "1"
    },
    "flux_sampler_name": {
      "type": "string",
      "title": "Flux 采样器",
      "description": "",
      "default": "euler"
    },
    "flux_negative_prompt": {
      "type": "string",
      "title": "Flux 负面提示词",
      "description": "描述不希望出现的内容",
      "format": "textarea",
      "rows": 3
    },
    "aspect_ratio": {
      "type": "string",
      "title": "宽高比",
      "description": "",
      "default": "1:1",
      "enum": [
        "1:1",
        "4:3",
        "7:3",
        "16:9",
        "2:3",
        "4:5",
        "4:7",
        "9:16"
      ]
    },
    "version": {
      "type": "string",
      "title": "模型版本",
      "description": "",
      "default": "7",
      "enum": [
        "7",
        "6.1",
        "6.0",
        "5.2",
        "5.1",
        "5.0"
      ]
    },
    "quality": {
      "type": "string",
      "title": "图片质量",
      "description": "",
      "default": "1",
      "enum": [
        "1",
        "2",
        "4"
      ],
      "enumNames": [
        "默认",
        "高质量",
        "超高质量"
      ]
    },
    "stylize": {
      "type": "integer",
      "title": "风格化强度",
      "description": "0-1000，数值越高风格化越强"
    },
    "chaos": {
      "type": "integer",
      "title": "混沌值",
      "description": "0-100，控制生成结果的随机性和变化程度"
    },
    "weird": {
      "type": "integer",
      "title": "怪异值",
      "description": "0-3000，生成更奇特和意想不到的结果"
    },
    "tile": {
      "type": "boolean",
      "title": "无缝图案",
      "description": "生成可无缝平铺的图像",
      "condition": {
        "image_tool": "Midjourney"
      }
    },
    "raw_mode": {
      "type": "boolean",
      "title": "原始模式",
      "description": "",
      "enumNames": [
        "默认"
      ]
    },
    "mj_seed": {
      "type": "integer",
      "title": "随机种子",
      "description": "固定种子可获得相似结果，留空自动生成"
    },
    "flux_server_address": {
      "type": "string",
      "title": "Flux 服务器地址",
      "description": ""
    },
    "flux_ckpt_name": {
      "type": "string",
      "title": "Flux 模型名称",
      "description": "",
      "default": "flux1-schnell-fp8.safetensors"
    },
    "flux_custom_suffix": {
      "type": "string",
      "title": "Flux 图片后缀",
      "description": "",
      "default": "fx"
    },
    "flux_scheduler": {
      "type": "string",
      "title": "Flux 调度器",
      "description": "",
      "default": "normal"
    },
    "flux_denoise": {
      "type": "number",
      "title": "Flux 去噪",
      "description": "",
      "default": "1"
    },
    "sd_server_address": {
      "type": "string",
      "title": "Stable Diffusion  服务器地址",
      "description": ""
    },
    "sd_ckpt_name": {
      "type": "string",
      "title": "Stable Diffusion 模型",
      "description": "",
      "default": "sd3.5_large.safetensors"
    },
    "sd_custom_suffix": {
      "type": "string",
      "title": "Stable Diffusion 图片后缀",
      "description": "",
      "default": "sd"
    },
    "clip_l_name": {
      "type": "string",
      "title": "clip_l_name",
      "description": "",
      "default": "clip_l.safetensors"
    },
    "clip_g_name": {
      "type": "string",
      "title": "clip_g_name",
      "description": "",
      "default": "clip_g.safetensors"
    },
    "t5_name": {
      "type": "string",
      "title": "t5_name",
      "description": "",
      "default": "t5xxl_fp16.safetensors"
    },
    "sd_steps": {
      "type": "integer",
      "title": "Stable Diffusion 出图步数",
      "description": "",
      "default": "30"
    },
    "sd_cfg": {
      "type": "number",
      "title": "Stable Diffusion CFG",
      "description": "",
      "default": "5.5"
    },
    "sd_sampler_name": {
      "type": "string",
      "title": "Stable Diffusion 采样器",
      "description": "",
      "default": "euler"
    },
    "sd_scheduler": {
      "type": "string",
      "title": "Stable Diffusion 调度器",
      "description": "",
      "default": "sgm_uniform"
    },
    "sd_denoise": {
      "type": "number",
      "title": "Stable Diffusion 去噪",
      "description": "",
      "default": "1"
    },
    "sd_negative_prompt": {
      "type": "string",
      "title": "Stable Diffusion 负面提示词",
      "description": "",
      "format": "textarea",
      "rows": 3
    },
    "no_text": {
      "type": "string",
      "title": "负面提示词",
      "description": "",
      "format": "textarea",
      "rows": 3
    },
    "image_weight": {
      "type": "number",
      "title": "图片权重",
      "description": "0-3",
      "condition": {
        "image_tool": "Midjourney"
      }
    },
    "style_reference": {
      "type": "string",
      "title": "风格参考",
      "description": "",
      "condition": {
        "image_tool": "Midjourney"
      },
      "format": "textarea",
      "rows": 3
    },
    "omni_reference": {
      "type": "string",
      "title": "全能参考",
      "description": "",
      "condition": {
        "image_tool": "Midjourney"
      },
      "rows": 3
    },
    "character_reference": {
      "type": "string",
      "title": "角色参考",
      "description": "",
      "condition": {
        "image_tool": "Midjourney",
        "version": {
          "not": "7"
        }
      },
      "rows": 3
    },
    "reference_image": {
      "type": "string",
      "title": "参考图片",
      "description": "",
      "condition": {
        "image_tool": "Midjourney"
      },
      "format": "textarea",
      "rows": 3
    },
    "character_weight": {
      "type": "integer",
      "title": "角色权重",
      "description": "0-100",
      "condition": {
        "image_tool": "Midjourney",
        "version": {
          "not": "7"
        }
      }
    },
    "style_weight": {
      "type": "integer",
      "title": "风格权重",
      "description": "0-1000",
      "condition": {
        "image_tool": "Midjourney"
      }
    },
    "omni_weight": {
      "type": "integer",
      "title": "全能参考权重",
      "description": "1-1000",
      "condition": {
        "image_tool": "Midjourney"
      }
    }
  },
  "required": [
    "prompts"
  ],
  "_layout": {
    "tabs": [
      {
        "id": "tab_1",
        "label": "基础配置",
        "sections": [
          {
            "id": "section_1",
            "label": "基本属性",
            "columns": [
              {
                "id": "column_1",
                "label": "",
                "fields": [
                  "image_tool",
                  "prompts"
                ]
              }
            ]
          },
          {
            "id": "section_1756567293989_k8irv6w49",
            "label": "图片",
            "columns": [
              {
                "id": "column_1756567293989_68rub0wjb",
                "label": "",
                "fields": [
                  "images_per_prompt",
                  "image_width",
                  "image_height"
                ]
              }
            ]
          },
          {
            "id": "section_1756620414019",
            "label": "图片参数",
            "columns": [
              {
                "id": "column_1756620414019",
                "fields": [
                  "reference_image",
                  "omni_reference",
                  "style_reference",
                  "character_reference",
                  "tile"
                ]
              }
            ]
          },
          {
            "id": "section_1756627538920_hiwy55mwr",
            "label": "",
            "columns": [
              {
                "id": "column_1756627538920_jbehytm3k",
                "label": "",
                "fields": [
                  "image_weight"
                ]
              },
              {
                "id": "column_1756627554978",
                "fields": [
                  "omni_weight"
                ]
              },
              {
                "id": "column_1756627576460",
                "fields": [
                  "style_weight"
                ]
              },
              {
                "id": "column_1756627583720",
                "fields": [
                  "character_weight"
                ]
              }
            ]
          }
        ]
      },
      {
        "id": "tab_3",
        "label": "Midjourney 参数",
        "sections": [
          {
            "id": "section_3",
            "label": "",
            "columns": [
              {
                "id": "column_5",
                "label": "",
                "fields": [
                  "version",
                  "aspect_ratio",
                  "quality",
                  "raw_mode"
                ]
              },
              {
                "id": "column_6",
                "label": "",
                "fields": [
                  "chaos",
                  "weird",
                  "stylize",
                  "mj_seed"
                ]
              }
            ]
          },
          {
            "id": "section_1756581115307",
            "label": "",
            "columns": [
              {
                "id": "column_1756581115307",
                "fields": [
                  "no_text"
                ]
              }
            ]
          }
        ]
      },
      {
        "id": "tab_2",
        "label": "Flux 参数",
        "sections": [
          {
            "id": "section_2",
            "label": "生成参数",
            "columns": [
              {
                "id": "column_3",
                "label": "核心参数",
                "fields": [
                  "flux_server_address",
                  "flux_ckpt_name",
                  "flux_steps",
                  "flux_cfg"
                ]
              },
              {
                "id": "column_4",
                "label": "高级设置",
                "fields": [
                  "flux_custom_suffix",
                  "flux_sampler_name",
                  "flux_scheduler",
                  "flux_denoise"
                ]
              }
            ]
          },
          {
            "id": "section_1756571458109",
            "label": "",
            "columns": [
              {
                "id": "column_1756571458109",
                "fields": [
                  "flux_negative_prompt"
                ]
              }
            ]
          }
        ]
      },
      {
        "id": "tab_1756570414016",
        "label": "Stable Diffusion 参数",
        "sections": [
          {
            "id": "section_1756570414016",
            "label": "基本属性",
            "columns": [
              {
                "id": "column_1756570414016",
                "fields": [
                  "sd_server_address",
                  "sd_ckpt_name",
                  "clip_l_name",
                  "clip_g_name",
                  "t5_name",
                  "sd_steps"
                ]
              },
              {
                "id": "column_1756573095565",
                "fields": [
                  "sd_custom_suffix",
                  "sd_cfg",
                  "sd_sampler_name",
                  "sd_scheduler",
                  "sd_denoise"
                ]
              }
            ]
          },
          {
            "id": "section_1756572537201",
            "label": "",
            "columns": [
              {
                "id": "column_1756572537201",
                "fields": [
                  "sd_negative_prompt"
                ]
              }
            ]
          }
        ]
      },
      {
        "id": "tab_1756567538481",
        "label": "节点设置",
        "sections": [
          {
            "id": "section_1756567538481",
            "label": "",
            "columns": [
              {
                "id": "column_1756567538481",
                "fields": [
                  "hide_input_handle"
                ]
              }
            ]
          }
        ]
      }
    ],
    "activeTab": "tab_3"
  }
}