stable-diffusion-image-generation

Generate images from text prompts using Stable Diffusion models.

Updated Apr 9, 2026
One-click install
npx skills add https://github.com/MarbleSodas/Mavis --skill stable-diffusion-image-generation-marblesodas
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: stable-diffusion-image-generation
Source: https://github.com/MarbleSodas/Mavis/tree/main/optional-skills/mlops/stable-diffusion
Command: npx skills add https://github.com/MarbleSodas/Mavis --skill stable-diffusion-image-generation-marblesodas

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Stable Diffusion image generation solves the problem of turning text (and optionally reference images) into visual artwork without needing to train bespoke models for every new concept.

Core Features & Use Cases

  • Text-to-Image Generation: Create images directly from detailed prompts, tuned with parameters like guidance scale and inference steps.
  • Image-to-Image, Inpainting, and Outpainting: Transform existing images using text guidance, fill masked regions, or extend beyond original boundaries.
  • Control and Style Conditioning: Use ControlNet (edges/pose/depth/line art), LoRA adapters, and IP-Adapter to control composition and style.
  • Use Case: Create a cohesive set of promotional visuals by generating multiple variations from a prompt, then refining selected images with img2img or inpainting.

Quick Start

Use the stable-diffusion-image-generation skill to generate an image from the text prompt "A futuristic city with flying cars, cinematic lighting" at 1024x1024.

Frequently Asked Questions about stable-diffusion-image-generation

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate images from text prompts using Stable Diffusion?

Stable Diffusion generates images from text prompts using HuggingFace Diffusers by configuring pipeline selection, schedulers, and generation parameters such as guidance_scale, num_inference_steps, and output resolution. You provide detailed text prompts to create visual artwork directly.

Can I use ControlNet and LoRA for image-to-image generation?

ControlNet and LoRA are fully supported for image-to-image generation alongside inpainting workflows. ControlNet provides spatial guidance using edges, pose, depth, or line art, while LoRA adapters and IP-Adapter apply specific styling controls to transform existing images using text guidance.

Do I need HuggingFace Diffusers and PyTorch to run text-to-image generation?

Yes, compatible diffusers, transformers, and torch runtime environments are required to run Stable Diffusion text-to-image generation. These dependencies enable configurable pipeline selection, schedulers, and generation parameters such as guidance_scale, num_inference_steps, and output resolution.

What is the best way to control composition in Stable Diffusion image generation?

Control composition in Stable Diffusion by using ControlNet for spatial guidance through edges, pose, depth, or line art conditioning. LoRA adapters and IP-Adapter further control style, while parameters like guidance_scale and num_inference_steps tune overall generation quality.

Does Stable Diffusion support inpainting and outpainting to extend image boundaries?

Stable Diffusion supports inpainting to fill masked regions and outpainting to extend images beyond original boundaries. These optional conditioning workflows use text guidance to transform existing images, complementing core text-to-image generation capabilities.

Why does my Stable Diffusion generation require configurable schedulers and pipelines?

Configurable schedulers and pipeline selection in Stable Diffusion allow you to optimize text-to-image generation quality across different use cases. Adjusting parameters like guidance_scale, num_inference_steps, and output resolution ensures proper diffusion model performance across creative and multimodal production workflows.