{
 "slug": "sdxl",
 "name": "Stable Diffusion XL base 1.0",
 "author": "Stability AI",
 "density": "full",
 "status": "active",
 "status_note": null,
 "alternatives_page": null,
 "one_liner": "Stability AI's open text-to-image latent diffusion model; works alone or with the SDXL refiner for final detail.",
 "category": {
  "slug": "ai-images",
  "name": "AI image generators"
 },
 "tags": [
  "Open source"
 ],
 "styles": [],
 "logo_url": "https://agentgid.com/media/avatars/stability-ai.png",
 "logo_letter": "S",
 "links": {
  "repo": "https://github.com/Stability-AI/generative-models",
  "website": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0",
  "api_docs": null
 },
 "preview": null,
 "verdicts": [
  {
   "key": "price",
   "label": "Price",
   "value": "Free",
   "status": "yes",
   "sub": "No paid plan",
   "quote": null,
   "note": "Open weights, free to download.",
   "source": {
    "label": "huggingface.co",
    "url": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0"
   },
   "n": 1
  },
  {
   "key": "commercial",
   "label": "Commercial use",
   "value": "With conditions",
   "status": "cond",
   "sub": "CreativeML Open RAIL++-M",
   "quote": "Therefore You cannot use the Model and the Derivatives of the Model for the specified restricted uses.",
   "note": "Allowed, as long as the app avoids the restricted uses in Attachment A and binds its users to them.",
   "source": {
    "label": "huggingface.co",
    "url": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/blob/main/LICENSE.md"
   },
   "n": 2
  },
  {
   "key": "credit",
   "label": "Credit the author",
   "value": "Not needed",
   "status": "yes",
   "sub": null,
   "quote": "You must give any Third Party recipients of the Model or Derivatives of the Model a copy of this License",
   "note": null,
   "source": {
    "label": "huggingface.co",
    "url": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/blob/main/LICENSE.md"
   },
   "n": 3
  },
  {
   "key": "agent_access",
   "label": "Agent access",
   "value": "Download",
   "status": "info",
   "sub": "Files by hand",
   "quote": null,
   "note": "There is no package or API. Files are downloaded by hand from the official site.",
   "source": {
    "label": "github.com/Stability-AI/generative-models",
    "url": "https://github.com/Stability-AI/generative-models"
   },
   "n": 4
  }
 ],
 "license": {
  "name": "CreativeML Open RAIL++-M",
  "url": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/blob/main/LICENSE.md",
  "summary": "You may use it, host it for others and share it, also commercially, under CreativeML Open RAIL++-M. A list of harmful uses is forbidden, and you must pass that list on to your users.",
  "pages_read": 1,
  "rules": [
   "Follow the use-based restrictions in Attachment A of the license.",
   "Pass those restrictions on to your users if you host or redistribute the model.",
   "Ship a copy of the license with any redistributed weights or derivatives."
  ],
  "rows": [
   {
    "label": "Commercial use",
    "value": "With conditions",
    "status": "cond",
    "quote": "Therefore You cannot use the Model and the Derivatives of the Model for the specified restricted uses.",
    "source": {
     "label": "huggingface.co",
     "url": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/blob/main/LICENSE.md"
    },
    "note": null
   },
   {
    "label": "Credit",
    "value": "Not needed",
    "status": "yes",
    "quote": "You must give any Third Party recipients of the Model or Derivatives of the Model a copy of this License",
    "source": {
     "label": "huggingface.co",
     "url": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/blob/main/LICENSE.md"
    },
    "note": null
   },
   {
    "label": "Inside your app or game",
    "value": "With conditions",
    "status": "cond",
    "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",
    "source": {
     "label": "huggingface.co",
     "url": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/blob/main/LICENSE.md"
    },
    "note": null
   },
   {
    "label": "Pass the files on to your users",
    "value": "With conditions",
    "status": "cond",
    "quote": "You must cause any modified files to carry prominent notices stating that You changed the files",
    "source": {
     "label": "huggingface.co",
     "url": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/blob/main/LICENSE.md"
    },
    "note": "Copies must carry the license, kept notices and marked changes, with the use restrictions passed on."
   },
   {
    "label": "Monetized YouTube",
    "value": "With conditions",
    "status": "cond",
    "quote": "Licensor claims no rights in the Output You generate using the Model.",
    "source": {
     "label": "huggingface.co",
     "url": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/blob/main/LICENSE.md"
    },
    "note": null
   },
   {
    "label": "AI training",
    "value": "Not stated",
    "status": "unknown",
    "quote": null,
    "source": null,
    "note": null
   },
   {
    "label": "Bots and bulk downloads",
    "value": "Not stated",
    "status": "unknown",
    "quote": null,
    "source": null,
    "note": null
   }
  ],
  "checked_at": "2026-10-25",
  "commercial_use_page": "https://agentgid.com/assets/sdxl/commercial-use/"
 },
 "overview": {
  "heading": "SDXL base 1.0: open model that draws pictures from text",
  "body": "Stable Diffusion XL is a free, open image model from Stability AI that turns a written description into a picture. You download it and run it on a computer with a strong graphics card, or inside an app that runs it for you. Its license allows commercial use, but forbids a list of harmful uses that you must pass on to your own users."
 },
 "uses": [
  {
   "title": "Artwork for design work",
   "text": "Make illustrations, mood boards or background art from a short description while you design a page, a poster or a game.",
   "idea": false,
   "image": null
  },
  {
   "title": "A picture feature in a learning app",
   "text": "Let students or users of a creative app turn their own words into a picture, with the model running on your server.",
   "idea": false,
   "image": null
  },
  {
   "title": "Restyle a sketch or photo",
   "text": "Start from an existing picture and a description, and get a new version that keeps the layout, for example a rough sketch turned into a finished scene.",
   "idea": false,
   "image": null
  },
  {
   "title": "Replace one part of an image",
   "text": "Mark an area with a mask and describe what should be there, for example swapping the person in a stock-style scene for a diver.",
   "idea": false,
   "image": null
  },
  {
   "title": "Extra detail with the refiner",
   "text": "Run a second, companion model after the base one to add fine detail to the final picture, at the cost of more time and memory.",
   "idea": false,
   "image": null
  },
  {
   "title": "Placeholder art for a prototype",
   "text": "Fill a game or app prototype with quick concept pictures so testers see a finished look before an artist draws the real ones.",
   "idea": true,
   "image": null
  }
 ],
 "start": {
  "prompt": "Generate 1024x1024 images with stabilityai/stable-diffusion-xl-base-1.0 through diffusers (pinned version, 0.19 or newer) in float16 with the fp16 variant, use enable_model_cpu_offload if memory is short, and keep the CreativeML Open RAIL++-M license with any copy of the weights.",
  "install": "pip install invisible_watermark transformers accelerate safetensors",
  "install_note": null,
  "code": [
   {
    "tab": "Step 1",
    "intro": "Load the base model in half precision and generate an image from a prompt on an Nvidia card.",
    "source": "pipe = DiffusionPipeline.from_pretrained(\"stabilityai/stable-diffusion-xl-base-1.0\", torch_dtype=torch.float16, use_safetensors=True, variant=\"fp16\")"
   },
   {
    "tab": "Step 2",
    "intro": "With little graphics memory, move parts to the main memory instead of putting the whole model on the card.",
    "source": "pipe.enable_model_cpu_offload()"
   }
  ]
 },
 "mistakes": [
  {
   "dont": "Generating at 512x512 or smaller to save time",
   "fix": "Keep the default 1024x1024, or 768x768 at the least",
   "why": "The model was built for 1024 pixels and small sizes break down.",
   "dont_code": false,
   "fix_code": false
  },
  {
   "dont": "pipe.to(\"cuda\") on a card with too little memory",
   "fix": "pipe.enable_model_cpu_offload() instead of .to(\"cuda\")",
   "why": "Offloading moves idle parts to main memory so the model fits.",
   "dont_code": false,
   "fix_code": false
  },
  {
   "dont": "Prompting for a logo or a banner with exact words in it",
   "fix": "Generate the picture without text and add the words later in your design tool or page",
   "why": "The model cannot draw readable text.",
   "dont_code": false,
   "fix_code": false
  },
  {
   "dont": "Hosting SDXL for users with no mention of the license restrictions",
   "fix": "Put the Attachment A use restrictions into your terms and tell users the model is subject to them",
   "why": "The license requires the restrictions to be enforceable on everyone you serve.",
   "dont_code": false,
   "fix_code": false
  }
 ],
 "agent": {
  "self_serve": false,
  "self_serve_text": null,
  "install": null,
  "repo": "https://github.com/Stability-AI/generative-models",
  "api_docs": null,
  "api_account": "Not needed. Everything runs on your side.",
  "get_files": null,
  "formats": [],
  "limits": null,
  "mcp": null,
  "mcp_url": null,
  "credit_line": null,
  "rules_text": "- Stable Diffusion XL base 1.0 (AI image generators). Stability AI's open text-to-image latent diffusion model; works alone or with the SDXL refiner for final detail. Price: free; commercial use with conditions; no credit needed; ship inside your app with conditions.\n  Connect: download from https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0 (no API).\n  Rule: Follow the use-based restrictions in Attachment A of the license.\n  Rule: Pass those restrictions on to your users if you host or redistribute the model.\n  Rule: Ship a copy of the license with any redistributed weights or derivatives.\n  License: https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/blob/main/LICENSE.md (checked 2026-10-25; details: https://agentgid.com/assets/sdxl/)",
  "agent_md": "https://agentgid.com/assets/sdxl/agent.md",
  "card_json": "https://agentgid.com/assets/sdxl/card.json"
 },
 "popularity": {
  "gid_score": 44,
  "stars": 27345,
  "downloads_7d": null,
  "downloads_7d_label": null,
  "downloads_change_4w_pct": null,
  "eco": null,
  "package": null,
  "repo": "Stability-AI/generative-models",
  "agent_projects": null,
  "agent_projects_total": null,
  "downloads_unconfirmed": false,
  "series": {
   "downloads_weekly": [],
   "stars": [
    [
     "2026-11-07",
     27334
    ],
    [
     "2026-11-08",
     27334
    ],
    [
     "2026-11-09",
     27336
    ],
    [
     "2026-11-10",
     27340
    ],
    [
     "2026-11-11",
     27343
    ],
    [
     "2026-11-12",
     27342
    ],
    [
     "2026-11-13",
     27345
    ],
    [
     "2026-11-14",
     27344
    ],
    [
     "2026-11-15",
     27340
    ],
    [
     "2026-11-16",
     27341
    ],
    [
     "2026-11-17",
     27344
    ],
    [
     "2026-11-18",
     27343
    ],
    [
     "2026-11-19",
     27345
    ]
   ]
  },
  "stars_flat_since": null,
  "updated_at": "2026-11-19"
 },
 "alternatives": [
  {
   "slug": "sdxl",
   "name": "Stable Diffusion XL base 1.0",
   "why": null,
   "current": true,
   "price": "Free",
   "commercial": {
    "value": "With conditions",
    "status": "cond"
   },
   "access": "Download"
  },
  {
   "slug": "invokeai",
   "name": "InvokeAI",
   "why": "Pick InvokeAI when you want a ready app with a canvas and workflows that runs SDXL and other models for you.",
   "current": false,
   "price": "Free",
   "commercial": {
    "value": "Commercial OK",
    "status": "yes"
   },
   "access": "Download"
  },
  {
   "slug": "flux-1-dev",
   "name": "FLUX.1 [dev]",
   "why": "Pick FLUX.1 [dev] for a newer open-weight model for non-commercial work; commercial use needs a paid license.",
   "current": false,
   "price": "Free",
   "commercial": {
    "value": "Non-commercial",
    "status": "no"
   },
   "access": "Download"
  },
  {
   "slug": "openai-gpt-image",
   "name": "OpenAI GPT Image",
   "why": "Pick OpenAI GPT Image when you have no graphics card and prefer paying per image through an online service.",
   "current": false,
   "price": "Paid",
   "commercial": {
    "value": "Commercial OK",
    "status": "yes"
   },
   "access": "API, npm, PyPI"
  },
  {
   "slug": "z-image-turbo",
   "name": "Z-Image-Turbo",
   "why": "Efficient open-weights image generation model built on a single-stream diffusion transformer.",
   "current": false,
   "price": "Free",
   "commercial": {
    "value": "Commercial OK",
    "status": "yes"
   },
   "access": "Download"
  },
  {
   "slug": "hunyuandit",
   "name": "HunyuanDiT",
   "why": "Tencent's diffusion-transformer text-to-image model with fine-grained Chinese and English prompt understanding.",
   "current": false,
   "price": "Free",
   "commercial": {
    "value": "With conditions",
    "status": "cond"
   },
   "access": "Download"
  }
 ],
 "faq": [
  {
   "q": "Can I sell images I make with SDXL?",
   "a": "The license claims no rights in your output, but the use restrictions still apply to how you use it."
  },
  {
   "q": "Can I offer SDXL to my users as an online service?",
   "a": "Yes, hosting for others is allowed if your terms include the use restrictions and you give users notice of them."
  },
  {
   "q": "Do I need the refiner model?",
   "a": "No. The base model works alone; the refiner is an optional second step for fine detail."
  },
  {
   "q": "Are my images marked as AI-made?",
   "a": "Diffusers adds an invisible watermark by default when the invisible-watermark package is installed."
  }
 ],
 "at_a_glance": {
  "latest_version": "0.42.1",
  "last_release": "2023-07-27",
  "last_commit": "2025-12-16",
  "runtime": "Diffusers 0.19.0+ with transformers, accelerate and safetensors; Python 3.11+ for the current release (0.42.1, latest checked); an Nvidia card for the float16 examples. No demo was run.",
  "key_needed": false
 },
 "good_to_know": [
  "The model page itself says it is meant for research, while the license allows wider use with limits. Read both before a commercial launch.",
  "It cannot write readable words inside pictures, and faces or people may come out wrong.",
  "Forbidden uses include harming minors, harassment, false information meant to harm, medical advice and automated decisions that hurt people's rights.",
  "Pictures come out best at 1024 by 1024; sizes below 512 by 512 are unlikely to work.",
  "The download is large; the single-file version of the base model alone is about 6.9 GB."
 ],
 "stack_snippets": [],
 "claims": [
  "torch.compile can make generation 20-30% faster with a recent PyTorch"
 ],
 "checked": {
  "license_read": "2026-10-25",
  "overview_checked": "2026-11-10",
  "numbers_updated": "2026-11-19",
  "sources": [
   {
    "label": "huggingface.co",
    "url": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0"
   },
   {
    "label": "huggingface.co",
    "url": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/raw/main/README.md"
   },
   {
    "label": "huggingface.co",
    "url": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/blob/main/LICENSE.md"
   },
   {
    "label": "huggingface.co",
    "url": "https://huggingface.co/api/models/stabilityai/stable-diffusion-xl-base-1.0/tree/main"
   },
   {
    "label": "huggingface.co",
    "url": "https://huggingface.co/docs/diffusers/main/en/using-diffusers/sdxl"
   },
   {
    "label": "huggingface.co",
    "url": "https://huggingface.co/docs/diffusers/api/pipelines/stable_diffusion/stable_diffusion_xl"
   },
   {
    "label": "github.com/Stability-AI/generative-models",
    "url": "https://github.com/Stability-AI/generative-models"
   },
   {
    "label": "pypi.org/pypi/diffusers/json",
    "url": "https://pypi.org/pypi/diffusers/json"
   },
   {
    "label": "huggingface.co",
    "url": "https://huggingface.co/api/models/stabilityai/stable-diffusion-xl-base-1.0"
   }
  ],
  "unverified": null
 },
 "user_reports": null,
 "url": "https://agentgid.com/assets/sdxl/",
 "note": "Written by AgentGid from the official pages in checked.sources; quotes are copied from those pages. status: yes | cond | no | unknown | info. Prices and vendor claims are as reported on the checked date. Not legal advice."
}
