{
 "schema": "aiblocks-page/1",
 "id": "stable-diffusion-image-maker",
 "type": "skill",
 "name": "Stable Diffusion image maker",
 "summary": "Get code to make or edit images with Stable Diffusion on your own machine. Keep safety checks on.",
 "headline": "Stable Diffusion image maker",
 "subhead": "Share your image task and setup. Get local code, clear steps and help with errors while safety checks stay on.",
 "job": {
  "id": "make-images",
  "name": "Make images and art"
 },
 "level": "intermediate",
 "thinking": "low",
 "tested": true,
 "updated": "2026-10-28",
 "first_published": "2026-10-20",
 "inputs": [
  {
   "type": "question",
   "required": true,
   "label": "Question",
   "what": "the problem, decision or piece of work you want help with, and what a good outcome looks like"
  }
 ],
 "outputs": [
  {
   "type": "image",
   "required": true,
   "label": "Image",
   "what": "a finished picture"
  }
 ],
 "you_give": [
  "A text description or a source image",
  "A mask for the area to change (optional)",
  "A computer with a GPU and Python. Know your GPU model and Python version before you start.",
  "A style or model preference (optional)"
 ],
 "you_get": [
  "Python code that generates images",
  "Install steps",
  "Image-to-image and inpainting setups",
  "ControlNet and style tuning options"
 ],
 "use_when": [
  "You want pictures from a text prompt on your own machine.",
  "You need to change part of a photo and keep the rest.",
  "You want to guide a picture using a pose or an outline.",
  "You are building a custom image generation pipeline."
 ],
 "skip_when": [
  "You have no graphics card or Python: use a hosted tool like DALL-E 3 or Leonardo.ai, which run in a browser or by API.",
  "You want artistic, stylized pictures with no setup: use Midjourney.",
  "You need a quick edit of one photo with no code: use a simple photo editor."
 ],
 "output_sample": {
  "input": [
   "A text description of the picture you want",
   "A source photo (optional)",
   "A mask image marking the area to change (optional)",
   "A style or model preference, such as SDXL (optional)"
  ],
  "prerequisites": [
   "A computer with a graphics card (GPU) that can run Python",
   "Python with the diffusers, transformers, accelerate and torch packages",
   "An AI that can run code, or you run the code yourself"
  ],
  "output": [
   {
    "name": "Install steps",
    "contains": "The pip commands to set up the packages, with an optional memory-saving add-on."
   },
   {
    "name": "Text-to-image code",
    "contains": "A Python script that turns your prompt into an image and saves it as output.png."
   },
   {
    "name": "SDXL version",
    "contains": "A higher quality script that makes 1024 by 1024 images and saves memory."
   },
   {
    "name": "Image-to-image and inpainting code",
    "contains": "Scripts to restyle a photo or refill a masked area."
   },
   {
    "name": "ControlNet and LoRA options",
    "contains": "Code to guide a picture by edges, pose or depth, and to add a style."
   },
   {
    "name": "Fixes for common problems",
    "contains": "Code to handle out-of-memory errors, black images and slow runs."
   }
  ]
 },
 "how_to_use": [
  "Check that you have a computer with a graphics card and Python. If not, pick a hosted tool instead.",
  "Open Claude, ChatGPT or Gemini and paste this skill. Then describe the picture you want, or attach your photo.",
  "Install the packages your AI lists, starting with the pip install line for diffusers, transformers, accelerate and torch.",
  "Run the text-to-image code your AI gives you. The image is saved as output.png in the folder where you run it.",
  "If you see an out-of-memory error, ask your AI for the memory settings in this skill and run again.",
  "Before you use an image for business, check the licence of the model you chose. Then try image-to-image, inpainting or ControlNet to refine it. Check output.png first, and make small changes to the prompt and run it again until it looks right."
 ],
 "checks": [],
 "next": [
  {
   "name": "Image maker and editor",
   "url": "https://useaiblocks.com/skills/image-maker-and-editor",
   "why": "Image maker and editor"
  }
 ],
 "source": {
  "by": "Orchestra Research",
  "repo": "orchestra-research/AI-research-SKILLs",
  "url": "https://github.com/orchestra-research/AI-research-SKILLs/tree/main/18-multimodal/stable-diffusion",
  "licence": "MIT",
  "original_name": "stable-diffusion-image-generation",
  "commit": "773a529"
 },
 "credits": [
  {
   "title": "stable-diffusion-image-generation skill",
   "by": "Orchestra Research",
   "url": "https://github.com/orchestra-research/AI-research-SKILLs/tree/main/18-multimodal/stable-diffusion",
   "used": "Copied under the MIT licence. We gave it a plain name and replaced the example that switched off the image safety checker with one that loads it, and added the safety check to the hand-written generation and step-saving examples. We added Before you start and After this sections that link to other AI Blocks steps."
  }
 ],
 "files": [
  "LICENSE",
  "references/advanced-usage.md",
  "references/troubleshooting.md"
 ],
 "links": {
  "page": "https://useaiblocks.com/skills/stable-diffusion-image-maker",
  "markdown": "https://useaiblocks.com/skills/stable-diffusion-image-maker.md",
  "json": "https://useaiblocks.com/skills/stable-diffusion-image-maker.json",
  "instructions": "https://useaiblocks.com/skills/stable-diffusion-image-maker/SKILL.md",
  "download": "https://useaiblocks.com/skills/stable-diffusion-image-maker.zip",
  "api_item": "https://useaiblocks.com/api/v1/items/stable-diffusion-image-maker",
  "api_document": "https://useaiblocks.com/api/v1/documents/skill/stable-diffusion-image-maker",
  "mcp": "https://useaiblocks.com/mcp"
 }
}
