stable-diffusion-image-generation

Generate images from text descriptions using Stable Diffusion models.

2|7|Updated Jun 19, 2026
One-click install
npx skills add https://github.com/humanerd-drew/opencode-drewgent --skill stable-diffusion-image-generation-humanerd-drew
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: stable-diffusion-image-generation
Source: https://github.com/humanerd-drew/opencode-drewgent/tree/main/skills/mlops/models/stable-diffusion
Command: npx skills add https://github.com/humanerd-drew/opencode-drewgent --skill stable-diffusion-image-generation-humanerd-drew

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires diffusers, transformers, accelerate, torch, and includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill solves the problem of creating images from text descriptions, making it easy to generate visual content based on textual input.

Core Features & Use Cases

  • Text-to-Image Generation: Create images directly from text descriptions.
  • Image-to-Image Translation: Transform existing images with text guidance.
  • Inpainting: Fill in missing parts of images based on text descriptions.
  • Use Case: Generate a landscape image from the text "A mountain range at sunset with a clear sky and a full moon."

Quick Start

To generate an image from a text prompt, use the following command: generate-image "A futuristic cityscape at dusk" --width 1024 --height 1024

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 AI art from text descriptions using Stable Diffusion?

To generate AI art from text descriptions using Stable Diffusion, you input a text prompt and specify parameters like width and height. The Skill leverages the HuggingFace Diffusers library to process the prompt and output a high-quality generated image.

Can I transform an existing image using text guidance?

Yes, you can transform an existing image using text guidance through the image-to-image translation feature. This allows you to modify original images by applying text descriptions to guide the Stable Diffusion generation process.

Do I need to install PyTorch and Diffusers to run Stable Diffusion text-to-image generation?

Yes, you need PyTorch, Diffusers, Transformers, and Accelerate installed to run Stable Diffusion text-to-image generation. These dependencies are required for model management and executing the image generation workflows.

What is the best way to fill in missing parts of an image with AI?

The best way to fill in missing parts of an image with AI is using the inpainting feature. It uses Stable Diffusion to reconstruct and fill missing sections of an image based on the text descriptions you provide.

How do I set image dimensions when generating a landscape from a text prompt?

You set image dimensions when generating a landscape from a text prompt by using the width and height command-line arguments. For example, use `--width 1024 --height 1024` alongside your text prompt to specify the exact output resolution.