Local-first .NET 10 Blazor app for AI image generation. Supports SD 1.5, SDXL, and Flux with model management, img2img, inpainting, and NSFW safety.
C#
3
314 commits
updated Oct 4, 2026
The best .NET-native local AI image studio Create, organize, and generate AI images with the control and privacy of running models on your own machine.
Stable Diffusion Studio is a local-first, web-based image generation application built on .NET 10. It provides a polished, fast, and highly configurable user experience for discovering models, organizing projects, composing prompts, generating images, and iterating on creative workflows — without requiring third-party GUI servers like Automatic1111 or ComfyUI.
| Backend | Status | Models |
|---|---|---|
| CUDA 12 (NVIDIA) | Bundled via NuGet | SD 1.5, SDXL |
| Vulkan (NVIDIA/AMD) | Bundled via NuGet | SD 1.5, SDXL, Flux |
| CPU (AVX2) | Bundled via NuGet | All (slow) |
CUDA is auto-selected for NVIDIA GPUs. Vulkan is the fallback for universal GPU support. CPU offloading is automatically disabled on CUDA to prevent AVX512 crashes on hybrid Intel CPUs.
dotnet workload install aspiregit clone https://github.com/JerrettDavis/StableDiffusionStudio.git
cd StableDiffusionStudio
# Direct launch (recommended — fastest startup, most stable)
dotnet run --project src/StableDiffusionStudio.Web
# Open http://localhost:5190
# Or with Aspire dashboard (adds OpenTelemetry monitoring)
dotnet run --project src/StableDiffusionStudio.AppHost
G:\sd.webui\webui\models\Stable-diffusion)# Unit and integration tests (819+)
dotnet test --filter "FullyQualifiedName!~E2E"
# E2E BDD tests (Playwright + Reqnroll)
pwsh tests/StableDiffusionStudio.E2E.Tests/bin/Debug/net10.0/playwright.ps1 install chromium
dotnet test tests/StableDiffusionStudio.E2E.Tests
Built as a modular monolith with strict layer boundaries:
Presentation (Blazor Server + MudBlazor + SignalR)
↓
Application (Services, Commands, DTOs, Validation)
↓
Domain (Entities, Value Objects, Domain Services)
↑
Infrastructure (EF Core + SQLite, StableDiffusion.NET, NsfwSpy, File I/O)
See docs/architecture/README.md for the full architecture overview.
| Project | Purpose |
|---|---|
StableDiffusionStudio.Domain | Entities, value objects, enums, domain services |
StableDiffusionStudio.Application | Use-case orchestration, interfaces, validation |
StableDiffusionStudio.Infrastructure | EF Core, inference backends, model providers, background jobs |
StableDiffusionStudio.Web | Blazor Server UI with MudBlazor, SignalR hubs |
StableDiffusionStudio.AppHost | .NET Aspire orchestration |
StableDiffusionStudio.ServiceDefaults | OpenTelemetry, health checks |
Contributions are welcome! Please see our Contributing Guide for details.
git checkout -b feat/amazing-feature)git push origin feat/amazing-feature)This project is licensed under the MIT License — see the LICENSE file for details.
Built with .NET, MudBlazor, .NET Aspire, StableDiffusion.NET, and NsfwSpy.
Local-first .NET 10 Blazor app for AI image generation. Supports SD 1.5, SDXL, and Flux with model management, img2img, inpainting, and NSFW safety.
C#
3
314 commits
updated Oct 4, 2026
The best .NET-native local AI image studio Create, organize, and generate AI images with the control and privacy of running models on your own machine.
Stable Diffusion Studio is a local-first, web-based image generation application built on .NET 10. It provides a polished, fast, and highly configurable user experience for discovering models, organizing projects, composing prompts, generating images, and iterating on creative workflows — without requiring third-party GUI servers like Automatic1111 or ComfyUI.
| Backend | Status | Models |
|---|---|---|
| CUDA 12 (NVIDIA) | Bundled via NuGet | SD 1.5, SDXL |
| Vulkan (NVIDIA/AMD) | Bundled via NuGet | SD 1.5, SDXL, Flux |
| CPU (AVX2) | Bundled via NuGet | All (slow) |
CUDA is auto-selected for NVIDIA GPUs. Vulkan is the fallback for universal GPU support. CPU offloading is automatically disabled on CUDA to prevent AVX512 crashes on hybrid Intel CPUs.
dotnet workload install aspiregit clone https://github.com/JerrettDavis/StableDiffusionStudio.git
cd StableDiffusionStudio
# Direct launch (recommended — fastest startup, most stable)
dotnet run --project src/StableDiffusionStudio.Web
# Open http://localhost:5190
# Or with Aspire dashboard (adds OpenTelemetry monitoring)
dotnet run --project src/StableDiffusionStudio.AppHost
G:\sd.webui\webui\models\Stable-diffusion)# Unit and integration tests (819+)
dotnet test --filter "FullyQualifiedName!~E2E"
# E2E BDD tests (Playwright + Reqnroll)
pwsh tests/StableDiffusionStudio.E2E.Tests/bin/Debug/net10.0/playwright.ps1 install chromium
dotnet test tests/StableDiffusionStudio.E2E.Tests
Built as a modular monolith with strict layer boundaries:
Presentation (Blazor Server + MudBlazor + SignalR)
↓
Application (Services, Commands, DTOs, Validation)
↓
Domain (Entities, Value Objects, Domain Services)
↑
Infrastructure (EF Core + SQLite, StableDiffusion.NET, NsfwSpy, File I/O)
See docs/architecture/README.md for the full architecture overview.
| Project | Purpose |
|---|---|
StableDiffusionStudio.Domain | Entities, value objects, enums, domain services |
StableDiffusionStudio.Application | Use-case orchestration, interfaces, validation |
StableDiffusionStudio.Infrastructure | EF Core, inference backends, model providers, background jobs |
StableDiffusionStudio.Web | Blazor Server UI with MudBlazor, SignalR hubs |
StableDiffusionStudio.AppHost | .NET Aspire orchestration |
StableDiffusionStudio.ServiceDefaults | OpenTelemetry, health checks |
Contributions are welcome! Please see our Contributing Guide for details.
git checkout -b feat/amazing-feature)git push origin feat/amazing-feature)This project is licensed under the MIT License — see the LICENSE file for details.
Built with .NET, MudBlazor, .NET Aspire, StableDiffusion.NET, and NsfwSpy.