Explore
Engineering & AI • New WI Project

Local AI Image Studio

Run high-quality image generation on an NVIDIA Windows PC, learn the best open-weight models, and send generation jobs from Webster International to your own GPU.

ComfyUISDXLFLUX SchnellSD 1.5Local-firstRailway connector

1. What to install: engine vs model

ComfyUI — preferred engine

Node-based workflow builder that loads SDXL/SD1.5/FLUX weights and exposes a local API. Powerful for batch images, styles, LoRAs, upscaling and scripts.

Official download
Forge WebUI — optional engine

Prompt-centered UI for fast Stable Diffusion generation. A good alternative, but running two inference engines is unnecessary for our first project milestone.

Source/instructions
Hosted closed tools

Midjourney, Ideogram and DALL·E are proprietary services. They cannot simply be downloaded as open-weight models and hosted on your PC.

Our model shortlist

ModelBest useLocal startLicensing
SDXL base 1.0General photography, recipes, illustration, mature LoRA ecosystem1024×1024, ~25 steps; try 5070 Ti laptop, lower VRAM settings on 3070OpenRAIL++; examine derivatives
FLUX.1 SchnellPrompt adherence, realism and quick inferenceUse a compatible quantized/offloaded ComfyUI workflow; more RAM/VRAM neededApache 2.0 commercial use
Stable Diffusion 1.5Low-VRAM fallback, style LoRAs, colouring-book experiments512×512 on 8GB RTX 3070Review checkpoint and LoRA rights

FLUX.1 Dev is not Schnell. Dev model weights are non-commercial by default; use Schnell for WI commercial work unless you obtain the appropriate Dev license. The open-source ComfyUI engine does not automatically make every model commercially licensed.

2. Check your NVIDIA workstation

Run nvidia-smi in PowerShell and record GPU name, dedicated VRAM and driver. Check free RAM/SSD space. The RTX 3070 commonly has 8 GB; verify the 5070 Ti laptop's actual VRAM. For large FLUX workflows, consider 32GB system RAM and ample disk, and use quantized weights.

Start with one image at a time, monitor GPU memory and avoid running demanding games alongside ComfyUI. If the driver resets, check Windows Event Viewer before sustained generation.

3. Official ComfyUI setup on Windows

Recommended first install: ComfyUI Desktop for beginners; NVIDIA portable for a stable scriptable folder. The portable build includes its own Python and GPU-enabled PyTorch. Our PowerShell installer uses that official portable archive and can optionally download SDXL base weights.

  1. Install/update NVIDIA drivers and 7-Zip. Review the PowerShell script before executing.
  2. Save it as Install-AI.ps1 and run .\Install-AI.ps1 -DownloadSDXL -Launch in PowerShell from the saved folder. No administrator console is required.
  3. Visit http://127.0.0.1:8188 from that Windows PC. Your first image runs locally with no Railway connection.
  4. SDXL/SD1.5 checkpoint files go under C:\AI\ComfyUI_windows_portable\ComfyUI\models\checkpoints. FLUX often requires separate diffusion model, text encoder and VAE files; use a workflow for the exact weight format.
Why not install Forge and system Python simultaneously?

Copilot's example launches Forge partway through installation, potentially blocking later steps, and mixes system Python dependency handling with another GPU environment. Start with the official ComfyUI portable CUDA/PyTorch build, then add Forge only if a prompt-centric interface would help.

4. Make your first SDXL image

  1. Launch ComfyUI and select the default text-to-image workflow; choose SDXL base in CheckpointLoaderSimple.
  2. Prompt: Professional editorial photograph of a rustic lemon tart on a wooden table, window daylight, detailed baked texture, natural colours, shallow depth of field, no text.
  3. Use 1024×1024, 25 steps, batch size 1. Click Queue Prompt, and find the output in ComfyUI's output folder.
  4. Save the workflow JSON and seed. For SD 1.5 start at 512×512. For FLUX Schnell choose a compatible official workflow at 1–4 steps.

WI creative pipelines

Recipes: set consistent camera, lighting and food styling. Colouring books: create a character sheet and use LoRA/reference-image workflows where appropriate, then manually check character consistency and print-ready outlines. Product thumbnails: generate several candidates, review licensing/accuracy, then upscale with a vetted ESRGAN/Ultimate SD Upscale workflow.

5. Connect local generation to WI

WI sends an authenticated job to its Railway staging backend. Your PC makes outbound-only HTTPS requests to claim queued jobs, runs the selected model using ComfyUI on localhost (port 8188), and uploads the output. No router changes or public ComfyUI server are required.

Current status: integration code proposed on a review branch; not yet deployed. Railway refused a separate new Function under the account's resource-provisioning limit. Our staging-only feature can instead use the existing WI Node application and its mounted storage. Configuration requires two separate private tokens; there is no browser-exposed token.

  1. After review and staging deployment, set two different 32+ character secrets on the Railway staging service: WI_IMAGE_API_KEY and WI_IMAGE_WORKER_KEY.
  2. On Windows, configure WI_IMAGE_URL (the staging site's HTTPS origin) and WI_IMAGE_WORKER_KEY for the PC's worker; never place secrets in client HTML or Git.
  3. With ComfyUI running, use python wi-local-worker.py --check, then python wi-local-worker.py. It calls local ComfyUI for SDXL and SD1.5 jobs.
  4. A trusted WI server request can submit a prompt; use the returned job ID to poll, inspect and download the private result.
POST /api/image-jobs/v1/jobs
Authorization: Bearer <WI_IMAGE_API_KEY>
Content-Type: application/json

{"model":"sdxl","prompt":"Rustic lemon tart food photograph","width":1024,"height":1024,"steps":25}

GET /api/image-jobs/v1/jobs/{id}
GET /api/image-jobs/v1/jobs/{id}/file

ComfyUI runs on the PC only; Railway stores pending metadata and completed images. Add a server-side admin UI, an approval gate and asset-library integration in a later milestone. FLUX Schnell needs a separately validated API-format workflow before accepting automation jobs.

6. Troubleshooting and sources

ComfyUI CUDA out of memory

Reduce resolution and batch size, use SD1.5 or ComfyUI low-VRAM mode, or a documented quantized FLUX workflow. Check nvidia-smi and close other demanding GPU apps.

Checkpoint missing

Check model filenames, extension .safetensors, the appropriate folder and correct loader node. Restart/refresh ComfyUI after adding models.

Job stays queued or fails

Check the PC is awake, the Python worker is connected, ComfyUI is listening locally, the checkpoint filename matches, Railway feature is actually deployed, and tokens are valid. Never infer deployment from a Git merge alone.

Software and model rights

ComfyUI software and downloaded model weights have separate licenses. Read SDXL's OpenRAIL++ model card, FLUX Schnell Apache 2.0 and any custom checkpoint/LoRA license before commercial publishing.

Primary references

Guide and source changes prepared October 28, 2026. Neither local GPU installation nor live Railway operation is asserted without testing.