Image Generation
When to Use
- User requests image of themselves →
generate_imagewithself_portrait: true - User requests general image →
generate_imagewithself_portrait: false - Save generated image to project →
save_generated_imagewith theimageIdfrom generate_image result
Self-Portrait Detection
Auto-detected from phrases: "selfie", "picture of me/you/yourself", "what do you look like"
Size/Aspect Parameters
- size: "small" (768px), "medium" (1024px), "large" (1536px), "x-large" (1856px)
- aspect: "portrait" (3:4), "portrait-tall" (9:16), "square" (1:1), "landscape" (16:9), "wide" (21:9)
Important
- Checkpoint switching is serialized via image generation lock to prevent race conditions
- LoRA models injected as
<lora:name:weight>in prompt - Dimensions must be divisible by 32
- Auto-detects checkpoint type from name (pony, flux, other) for CFG settings