{
  "workflow_info": {
    "name": "Z-Image General",
    "description": "General-purpose Z-Image-Turbo generation (portraits, scenes, objects, sacred art) that HONORS the raw prompt \u2014 no forced portrait-photograph framing. 8-step prose prompting.",
    "version": "1.0.0",
    "author": "Oshun Platform",
    "category": "flagship",
    "tags": [
      "flagship",
      "z-image",
      "general",
      "2026-sota"
    ],
    "estimated_time_seconds": 6,
    "gpu_requirement": "L40S"
  },
  "inputs": {
    "prompt": {
      "type": "string",
      "default": "a serene meditation teacher with kind eyes",
      "description": "Subject description in natural prose"
    },
    "aspect": {
      "type": "enum",
      "options": [
        "portrait_896x1152",
        "square_1024",
        "landscape_1152x896"
      ],
      "default": "portrait_896x1152",
      "description": "Output aspect preset"
    },
    "steps": {
      "type": "integer",
      "default": 8,
      "min": 4,
      "max": 12,
      "description": "Turbo-distilled sampling steps (8 is the reference)"
    },
    "seed": {
      "type": "integer",
      "default": -1,
      "description": "Random seed (-1 for random)"
    }
  },
  "nodes": {
    "1": {
      "class_type": "UNETLoader",
      "inputs": {
        "unet_name": "z_image_turbo_bf16.safetensors",
        "weight_dtype": "default"
      },
      "outputs": [
        "MODEL"
      ]
    },
    "2": {
      "class_type": "CLIPLoader",
      "inputs": {
        "clip_name": "qwen_3_4b.safetensors",
        "type": "lumina2"
      },
      "outputs": [
        "CLIP"
      ],
      "_comment": "Z-Image routes Qwen3-4B through the lumina2 CLIP type (no z_image enum)."
    },
    "3": {
      "class_type": "VAELoader",
      "inputs": {
        "vae_name": "z_image_ae.safetensors"
      },
      "outputs": [
        "VAE"
      ]
    },
    "4": {
      "class_type": "ModelSamplingAuraFlow",
      "inputs": {
        "model": [
          "1",
          0
        ],
        "shift": 3.0
      },
      "outputs": [
        "MODEL"
      ]
    },
    "5": {
      "class_type": "CLIPTextEncode",
      "inputs": {
        "text": "{{constructed_prompt}}",
        "clip": [
          "2",
          0
        ]
      },
      "outputs": [
        "CONDITIONING"
      ]
    },
    "6": {
      "class_type": "CLIPTextEncode",
      "inputs": {
        "text": "",
        "clip": [
          "2",
          0
        ]
      },
      "outputs": [
        "CONDITIONING"
      ],
      "_comment": "Turbo distillation runs cfg 1.0; negative stays empty."
    },
    "7": {
      "class_type": "EmptySD3LatentImage",
      "inputs": {
        "width": "{{aspect_map[aspect].width}}",
        "height": "{{aspect_map[aspect].height}}",
        "batch_size": 1
      },
      "outputs": [
        "LATENT"
      ]
    },
    "8": {
      "class_type": "KSampler",
      "inputs": {
        "model": [
          "4",
          0
        ],
        "positive": [
          "5",
          0
        ],
        "negative": [
          "6",
          0
        ],
        "latent_image": [
          "7",
          0
        ],
        "seed": "{{seed}}",
        "steps": "{{steps}}",
        "cfg": 1.0,
        "sampler_name": "res_multistep",
        "scheduler": "simple",
        "denoise": 1.0
      },
      "outputs": [
        "LATENT"
      ]
    },
    "9": {
      "class_type": "VAEDecode",
      "inputs": {
        "samples": [
          "8",
          0
        ],
        "vae": [
          "3",
          0
        ]
      },
      "outputs": [
        "IMAGE"
      ]
    }
  },
  "prompt_construction": {
    "template": "{base_prompt}. Highly detailed, sharp focus, high quality.",
    "variables": {
      "base_prompt": "{{prompt}}"
    }
  },
  "aspect_map": {
    "portrait_896x1152": {
      "width": 896,
      "height": 1152
    },
    "square_1024": {
      "width": 1024,
      "height": 1024
    },
    "landscape_1152x896": {
      "width": 1152,
      "height": 896
    }
  },
  "output_spec": {
    "type": "image",
    "format": "png"
  },
  "custom_nodes_required": [],
  "models_required": [
    "z_image_turbo_bf16.safetensors",
    "qwen_3_4b.safetensors",
    "z_image_ae.safetensors"
  ]
}
