AI & Compute
Image Generation
Using AI diffusion models (like Stable Diffusion) to create images from text prompts or modify existing images. This GPU-intensive workload is a popular use case on the OpenGPU Network.
How AI image generation works
Most current image generators are diffusion models. During training, the model learns to remove noise from images step by step, guided by text descriptions. To generate, it starts from random noise and runs a series of denoising steps, commonly 20 to 50 with standard samplers and fewer with distilled models, steered by a representation of the prompt from a text encoder. Latent diffusion models such as Stable Diffusion run this process in a compressed latent space and decode the result into pixels at the end, which greatly reduces compute.
The same models handle image-to-image editing, inpainting (regenerating part of an image) and upscaling, and they can be customized for a style or subject with fine-tuning methods such as LoRA. Generation time grows with resolution, step count and the number of images per batch, and memory needs grow with model size and resolution.
Image generation on OpenGPU
Image generation is one of the AI inference workloads OpenGPU supports, and providers on the network earn from image generation jobs. Through Relay, diffusion workloads are managed automatically across providers. Demand patterns vary: an interactive design tool needs fast single images, so routing places latency-sensitive jobs on fast nodes, while a run of thousands of product or training images is bursty batch work that routing spreads across providers to scale horizontally. Requirements such as GPU type and VRAM are set with each job, so larger models only land on GPUs that can hold them. The AI workloads page covers generative media in more detail.
How much VRAM do you need for Stable Diffusion?
It depends on the model version, resolution and settings. Stable Diffusion 1.5, which generates at 512×512, runs well on GPUs with 8 GB of VRAM and, with memory-saving options, on as little as 4 GB. SDXL, which targets 1024×1024, is comfortable with 12 GB or more, although memory-saving options let it run on 8 GB at lower speed. Newer models with roughly 12 billion parameters need 24 GB or more at 16-bit precision, or less with quantization. Higher resolutions, larger batches and add-ons such as ControlNet raise the requirement, while half precision, attention optimizations and CPU offloading lower it at some cost in speed.