{
 "kind": "model",
 "slug": "stabilityai-stable-diffusion-xl-base-1-0",
 "path": "models/open/stabilityai-stable-diffusion-xl-base-1-0/",
 "name": "Stable Diffusion XL base 1.0",
 "maker": "Stability AI",
 "density": "full",
 "crumbs": [
  [
   "Models",
   "models/"
  ],
  [
   "Open models",
   "models/open/"
  ]
 ],
 "lead": "Make and edit pictures from text.",
 "chips": [
  {
   "label": "Image",
   "path": "models/open/?task=image"
  },
  {
   "label": "Runs on 16 GB"
  }
 ],
 "primary": {
  "label": "Copy model id",
  "copy": "stabilityai/stable-diffusion-xl-base-1.0"
 },
 "links": [
  {
   "label": "Hugging Face",
   "href": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0"
  },
  {
   "label": "Demos",
   "href": "https://huggingface.co/spaces?search=Stable Diffusion XL base 1.0"
  }
 ],
 "track": "New versions, price and license changes on your dashboard",
 "verdicts": [
  {
   "key": "license",
   "label": "Commercial use",
   "value": "With conditions",
   "status": "cond",
   "sub": "openrail++",
   "quote": "You may host for Third Party remote access purposes (e.g. software-as-a-service), reproduce and distribute copies of the Model or Derivatives of the Model thereof in any medium, with or without modifications",
   "note": "Allowed, including as a hosted service, if your terms bind users to the license's banned-use list; the model card itself calls the model research-only.",
   "src": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/raw/main/LICENSE.md"
  },
  {
   "key": "local",
   "label": "On your machine",
   "status": "info",
   "value": "~1.5 GB, weights only",
   "sub": "2.6B parameters",
   "note": "Rough: the weights at 4-bit; generating images, video or audio needs more memory on top.",
   "src": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0"
  },
  {
   "key": "api",
   "label": "Through an API",
   "status": "yes",
   "value": "1 provider",
   "sub": "fal-ai",
   "note": "Hugging Face Inference Providers that serve it live.",
   "src": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0"
  },
  {
   "key": "rising",
   "label": "Momentum",
   "status": "info",
   "value": "8,510 likes",
   "sub": "Hugging Face trending score 12",
   "note": "Likes and the trending score are Hugging Face's own figures; attention, not quality.",
   "src": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0"
  }
 ],
 "vfoot": "Checked against its official pages on Nov 23, 2026.",
 "blocks": [
  {
   "id": "overview",
   "nav": "Overview",
   "h2": "What Stable Diffusion XL base 1.0 does",
   "parts": [
    {
     "t": "prose",
     "text": "Stable Diffusion XL base 1.0 is an open image model by Stability AI that makes and changes pictures from a text description. The model files are on Hugging Face with no sign-in. The CreativeML Open RAIL++-M license allows use, sharing and paid services, but bans a list of harmful uses that you must pass on to your users."
    },
    {
     "t": "h3",
     "text": "What people use it for"
    },
    {
     "t": "uses",
     "items": [
      {
       "title": "Artwork and design drafts",
       "text": "Make pictures for art and design work from a short prompt, on your own graphics card.",
       "idea": false
      },
      {
       "title": "Sharper results with the refiner",
       "text": "Run the base model first and then the separate refiner model for the last steps; the maker reports the pair gives the best results.",
       "idea": false
      },
      {
       "title": "Run it without PyTorch",
       "text": "Load the model through Optimum to run it with the ONNX or OpenVINO tools instead of the usual PyTorch setup.",
       "idea": false
      },
      {
       "title": "Picture tools for teaching and creativity",
       "text": "Build an educational or creative app where people type a prompt and get a picture, with the license rules passed on to them.",
       "idea": false
      },
      {
       "title": "Smaller graphics cards",
       "text": "If your graphics card runs out of memory, the model card shows a one-line switch that moves parts of the model to the main processor while it waits.",
       "idea": false
      }
     ]
    }
   ]
  },
  {
   "id": "popularity",
   "nav": "Popularity",
   "h2": "Stable Diffusion XL base 1.0 popularity",
   "parts": [
    {
     "t": "stats",
     "items": [
      {
       "n": "8,510",
       "l": "likes on Hugging Face"
      },
      {
       "n": "4.8M",
       "l": "downloads, last 30 days"
      },
      {
       "n": "12",
       "l": "Hugging Face trending score"
      }
     ]
    },
    {
     "t": "small",
     "text": "As reported by Hugging Face, checked Nov 26, 2026. Downloads include automated ones; some repositories report none."
    }
   ]
  },
  {
   "id": "run",
   "nav": "Run it",
   "h2": "Where to run Stable Diffusion XL base 1.0",
   "parts": [
    {
     "t": "h3",
     "text": "Through an API"
    },
    {
     "t": "list",
     "items": [
      "fal-ai (Hugging Face Inference Providers)"
     ]
    },
    {
     "t": "h3",
     "text": "On your machine"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "Parameters",
       "v": "2.6B"
      },
      {
       "l": "Memory at 4-bit",
       "v": "about 1.5 GB, weights only",
       "sub": "Rough: generating images, video or audio needs more on top."
      }
     ]
    }
   ]
  },
  {
   "id": "license",
   "nav": "License",
   "h2": "Stable Diffusion XL base 1.0 license",
   "parts": [
    {
     "t": "prose",
     "text": "You may use, share and even host it as a paid service under the CreativeML Open RAIL++-M license. You must not use it for the banned uses listed in the license, and your own terms must pass those bans on to your users."
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "In a paid product",
       "v": "With conditions",
       "status": "cond",
       "sub": "Allowed, including as a hosted service, if your terms bind users to the license's banned-use list; the model card itself calls the model research-only.",
       "quote": "You may host for Third Party remote access purposes (e.g. software-as-a-service), reproduce and distribute copies of the Model or Derivatives of the Model thereof in any medium, with or without modifications",
       "src": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/raw/main/LICENSE.md"
      },
      {
       "l": "Ship the weights to users",
       "v": "With conditions",
       "status": "cond",
       "sub": "Give recipients a copy of the license, mark changed files and keep the notices.",
       "quote": "You must give any Third Party recipients of the Model or Derivatives of the Model a copy of this License",
       "src": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/raw/main/LICENSE.md"
      },
      {
       "l": "Train other models on its outputs",
       "v": "With conditions",
       "status": "cond",
       "sub": "A model trained on SDXL outputs to behave like it counts as a derivative, so it must carry the same use restrictions.",
       "quote": "methods based on the generation of synthetic data by the Model for training the other model.",
       "src": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/raw/main/LICENSE.md"
      },
      {
       "l": "Work for clients",
       "v": "With conditions",
       "status": "cond",
       "sub": "Licensor claims no rights in your outputs, but no use of them may break the license's restrictions.",
       "quote": "Except as set forth herein, Licensor claims no rights in the Output You generate using the Model.",
       "src": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/raw/main/LICENSE.md"
      }
     ]
    }
   ]
  },
  {
   "id": "alternatives",
   "nav": "Alternatives",
   "h2": "Alternatives",
   "parts": [
    {
     "t": "alts",
     "items": [
      {
       "name": "Stable Diffusion XL base 1.0",
       "me": true,
       "facts": [
        "8,510 likes",
        "openrail++"
       ]
      },
      {
       "name": "FLUX.1-dev",
       "path": "models/open/black-forest-labs-flux-1-dev/",
       "why": "black-forest-labs · text-to-image",
       "facts": [
        "16.3K likes",
        "Custom license"
       ]
      },
      {
       "name": "stable-diffusion-v1-4",
       "path": "models/open/compvis-stable-diffusion-v1-4/",
       "why": "CompVis · text-to-image",
       "facts": [
        "7,151 likes",
        "creativeml-openrail-m"
       ]
      },
      {
       "name": "FLUX.1-schnell",
       "path": "models/open/black-forest-labs-flux-1-schnell/",
       "why": "black-forest-labs · text-to-image",
       "facts": [
        "6,983 likes",
        "Apache 2.0"
       ]
      },
      {
       "name": "Z-Image-Turbo",
       "path": "models/open/tongyi-mai-z-image-turbo/",
       "why": "Tongyi-MAI · text-to-image",
       "facts": [
        "5,659 likes",
        "Apache 2.0"
       ]
      }
     ],
     "more": "All image models",
     "more_path": "models/open/?task=image"
    }
   ]
  },
  {
   "id": "start",
   "nav": "Get started",
   "h2": "Get started",
   "parts": [
    {
     "t": "prompt",
     "text": "Write a Python script that loads stabilityai/stable-diffusion-xl-base-1.0 with diffusers DiffusionPipeline (float16, variant fp16, use_safetensors=True), uses enable_model_cpu_offload if GPU memory is short, and saves one PNG per line of prompts.txt."
    },
    {
     "t": "steps",
     "items": [
      {
       "text": "Install a recent diffusers (0.19.0 or newer).",
       "code": "pip install diffusers --upgrade",
       "src": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/raw/main/README.md"
      },
      {
       "text": "Install the other libraries the model card lists, including the invisible watermark package.",
       "code": "pip install invisible_watermark transformers accelerate safetensors",
       "src": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/raw/main/README.md"
      },
      {
       "text": "Load the base model in float16 and make a picture from a prompt (see the first recipe).",
       "code": "pipe = DiffusionPipeline.from_pretrained(\"stabilityai/stable-diffusion-xl-base-1.0\", torch_dtype=torch.float16, use_safetensors=True, variant=\"fp16\")\n",
       "src": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/raw/main/README.md"
      }
     ]
    },
    {
     "t": "h3",
     "text": "Mistakes to avoid"
    },
    {
     "t": "mistakes",
     "items": [
      {
       "dont": "Loading SDXL with an old diffusers version or the Stable Diffusion 1.5 pipeline class",
       "fix": "Upgrade diffusers to 0.19.0 or newer and load it with DiffusionPipeline (or StableDiffusionXLPipeline)",
       "why": "The model card requires diffusers 0.19.0 or newer."
      },
      {
       "dont": "Skipping the invisible watermark package",
       "fix": "pip install invisible_watermark transformers accelerate safetensors before loading",
       "why": "The model card lists these packages as needed next to diffusers."
      },
      {
       "dont": "Calling pipe.to(\"cuda\") on a small graphics card and crashing out of memory",
       "fix": "Replace pipe.to(\"cuda\") with pipe.enable_model_cpu_offload()",
       "why": "The model card gives this switch for limited graphics memory."
      },
      {
       "dont": "Using SDXL for posters, logos or labels that need readable words",
       "fix": "Add the text afterwards in a design tool, or pick a model whose card claims text rendering",
       "why": "The model card says it cannot render legible text."
      },
      {
       "dont": "Offering SDXL to users without terms that repeat the license's banned uses",
       "fix": "Put the Attachment A use restrictions into your terms of service and tell users they apply",
       "why": "The license makes this a condition of sharing or hosting the model."
      }
     ]
    }
   ]
  },
  {
   "id": "faq",
   "nav": "Questions",
   "h2": "Questions",
   "parts": [
    {
     "t": "faq",
     "items": [
      {
       "q": "Can I use SDXL in a paid app?",
       "a": "The license lets you host it as a service and share copies, if your terms pass on its list of banned uses. The model card still describes the intended use as research.",
       "evidence": {
        "url": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/raw/main/LICENSE.md",
        "quote": "You may host for Third Party remote access purposes (e.g. software-as-a-service), reproduce and distribute copies of the Model or Derivatives of the Model thereof in any medium, with or without modifications"
       }
      },
      {
       "q": "Who owns the pictures I make?",
       "a": "Stability AI claims no rights in them, but you are responsible for how you use them.",
       "evidence": {
        "url": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/raw/main/LICENSE.md",
        "quote": "You are accountable for the Output you generate and its subsequent uses."
       }
      },
      {
       "q": "Do I need the refiner model?",
       "a": "No, the base model works alone. The refiner is a second model for the final steps that the maker reports gives the best results.",
       "evidence": {
        "url": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/raw/main/README.md",
        "quote": "Note that the base model can be used as a standalone module."
       }
      },
      {
       "q": "Can it write words on a sign or poster?",
       "a": "Not reliably; the model card says it cannot render legible text.",
       "evidence": {
        "url": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/raw/main/README.md",
        "quote": "The model cannot render legible text"
       }
      }
     ]
    }
   ]
  }
 ],
 "glance": [
  [
   "Maker",
   "Stability AI"
  ],
  [
   "Task",
   "Image"
  ],
  [
   "Pipeline",
   "text-to-image"
  ],
  [
   "On Hugging Face since",
   "Jul 25, 2023"
  ],
  [
   "License",
   "openrail++"
  ],
  [
   "Parameters",
   "2.6B"
  ],
  [
   "Hugging Face",
   "stabilityai/stable-diffusion-xl-base-1.0"
  ]
 ],
 "good": [
  "The model card describes its intended use as research, while the license itself grants rights to use, share and host it; read both before a business launch.",
  "It cannot write readable text inside pictures, and faces and people may come out wrong.",
  "It struggles with prompts that place several objects in exact positions, and it does not reach perfect photo realism."
 ],
 "checked_line": "Hand-checked from 4 official pages on Nov 23, 2026; numbers refresh daily.",
 "logo": null
}