Image Generation Skill
Purpose
Generate high-quality images through structured, reproducible pipelines.
Pipeline Stages
- Concept: Purpose, style, composition, subject
- Prompt Engineering: Detailed text prompt + negative prompt
- Structure Control: ControlNet, depth, pose, canny
- Generation: Base model + sampler + steps + CFG
- Selection: Generate multiple, pick best
- Post-Processing: Upscale, inpaint, color correct
- Export: Format, resolution, color space
Generation Config
| Parameter |
Typical Value |
Notes |
| Model |
FLUX.1-dev / SDXL |
Quality vs speed tradeoff |
| Resolution |
1024x1024 |
Native resolution for most models |
| Sampler |
DPM++ 2M Karras |
Good balance quality/speed |
| Steps |
20-50 |
More steps = better quality, slower |
| CFG |
7-12 |
Higher = stricter adherence |
| Seed |
Random / fixed |
Fixed for reproducibility |
Control Methods
| Method |
Use Case |
Strength |
| ControlNet (canny) |
Edge structure |
0.8-1.0 |
| ControlNet (depth) |
Spatial depth |
0.8-1.0 |
| ControlNet (pose) |
Human pose |
0.8-1.2 |
| IP-Adapter |
Style transfer |
0.6-0.8 |
| Reference-only |
Character consistency |
0.5-0.7 |
CF-Specific
# 1. Generate with style consistency
image = await generate_image(
prompt="A cinematic shot of...",
negative_prompt="blurry, low quality, watermark",
width=1024, height=1024,
seed=42, # Fixed for reproducibility
controlnet={"type": "canny", "image": reference, "strength": 0.9},
)
# 2. Upscale
image = await upscale(image, scale=4, model="Real-ESRGAN")
# 3. Save to output_path
output_path.write_image(image, filename="scene_01.png")
Quality Checklist
Batch Processing
- Group by style/model for efficiency
- Use same seed + prompt variations for consistency
- Parallel generation (GPU memory permitting)
- Post-process batch with same settings
1---2name: ivx-cf-image-generation3description: Design and execute image generation pipelines using diffusion models. Use when generating images, optimizing image quality, or building image production workflows.4---5# Image Generation Skill67## Purpose89Generate high-quality images through structured, reproducible pipelines.1011## Pipeline Stages12131. **Concept**: Purpose, style, composition, subject142. **Prompt Engineering**: Detailed text prompt + negative prompt153. **Structure Control**: ControlNet, depth, pose, canny164. **Generation**: Base model + sampler + steps + CFG175. **Selection**: Generate multiple, pick best186. **Post-Processing**: Upscale, inpaint, color correct197. **Export**: Format, resolution, color space2021## Generation Config2223| Parameter | Typical Value | Notes |24|-----------|--------------|-------|25| Model | FLUX.1-dev / SDXL | Quality vs speed tradeoff |26| Resolution | 1024x1024 | Native resolution for most models |27| Sampler | DPM++ 2M Karras | Good balance quality/speed |28| Steps | 20-50 | More steps = better quality, slower |29| CFG | 7-12 | Higher = stricter adherence |30| Seed | Random / fixed | Fixed for reproducibility |3132## Control Methods3334| Method | Use Case | Strength |35|--------|----------|----------|36| ControlNet (canny) | Edge structure | 0.8-1.0 |37| ControlNet (depth) | Spatial depth | 0.8-1.0 |38| ControlNet (pose) | Human pose | 0.8-1.2 |39| IP-Adapter | Style transfer | 0.6-0.8 |40| Reference-only | Character consistency | 0.5-0.7 |4142## CF-Specific4344```python45# 1. Generate with style consistency46image = await generate_image(47 prompt="A cinematic shot of...",48 negative_prompt="blurry, low quality, watermark",49 width=1024, height=1024,50 seed=42, # Fixed for reproducibility51 controlnet={"type": "canny", "image": reference, "strength": 0.9},52)5354# 2. Upscale55image = await upscale(image, scale=4, model="Real-ESRGAN")5657# 3. Save to output_path58output_path.write_image(image, filename="scene_01.png")59```6061## Quality Checklist6263- [ ] Prompt adherence (subject matches request)64- [ ] No artifacts (extra limbs, distorted faces)65- [ ] Style consistency (matches references)66- [ ] Resolution meets target67- [ ] Color accuracy (if brand colors specified)68- [ ] No unintended text/watermarks6970## Batch Processing7172- Group by style/model for efficiency73- Use same seed + prompt variations for consistency74- Parallel generation (GPU memory permitting)75- Post-process batch with same settings