# Make AI images on a rented GPU: Stable Diffusion, FLUX.3, Qwen-Image and Z-Image

> Make pictures from a sentence in one click with ComfyUI and Z-Image, or run SDXL, FLUX.3 or Qwen-Image yourself: which GPU, notebooks, keeping your pictures.

Source: https://rentgpupower.com/guides/make-ai-images-on-a-rented-gpu — updated 2026-11-12 — RentGPUPower

Image models such as FLUX.3, Qwen-Image, Z-Image and Stable Diffusion XL want a graphics card with plenty of memory. Renting one at an hourly price, billed by the second, lets you generate at full quality without buying a card, and you stop paying when you stop. The quickest way is one click: **Create images from text** opens ComfyUI with Z-Image Turbo ready — type a sentence, get a picture. Two more ways give you full control: a notebook with the diffusers library, or your own ComfyUI or Forge.

## The quickest way: one click

Open [One-click AI → Create images](https://rentgpupower.com/apps?goal=Create%20images) and press **Create images from text** (**ComfyUI + Z-Image Turbo** in Pro mode). RentGPUPower picks an NVIDIA card that fits, rents it from your balance — you pay only for the time you use — and opens ComfyUI in your browser with the picture recipe already loaded: write what you want to see in the prompt box and press **Run**.

- **The model:** Z-Image Turbo, free to use commercially (Apache 2.0), in a smaller build (int8) that runs on an 8 GB card: a 1024 × 1024 picture in 8 steps, in seconds.
- **The first start** downloads ComfyUI and the model, about 12 GB: usually 5 to 15 minutes. If the app never comes up, that time is not charged. Switch on **Keep my files after this rental**, and your next rental on that computer starts in about a minute.
- **Your pictures** are saved in /workspace/ComfyUI/output: download them from the rental's **Files** panel.
- **It is the whole of ComfyUI:** add any checkpoint, LoRA or custom node, as in Way 2 below.

## Which GPU to rent

With the one-click app, a card that fits is picked for you. For the other ways, memory (VRAM) decides what runs. The newest models first, with the memory each needs as its makers state it on its model page (read on 7 November 2026):

| Model | Memory it needs | Licence |
|---|---|---|
| [FLUX.3 image klein](https://huggingface.co/black-forest-labs/flux-3-image-klein) (5.6B, October 2026) | 25 GB (NVFP4) to 31 GB (BF16) — and about 28 GB more for the prompt upsampler its makers say always to run: an 80 GB card | FLUX Kommunity: non-commercial, its pictures usable commercially below $5M a year in revenue; gated |
| [Qwen-Image 2.1](https://huggingface.co/Qwen/Qwen-Image-2.1) (7B, September 2026) — makes and edits pictures, up to 10 references | no figure given; its example moves parts to the processor | Qwen research |
| [Ideogram 4](https://huggingface.co/ideogram-ai/ideogram-4-nf4) (9.3B in 4 bits, June 2026) | no figure given | Ideogram non-commercial, gated |
| [Z-Image-Turbo](https://huggingface.co/Tongyi-MAI/Z-Image-Turbo) (6B) | fits in 16 GB | Apache 2.0 |
| [FLUX.2 klein 4B](https://huggingface.co/black-forest-labs/FLUX.2-klein-4B) | about 13 GB — a 16 GB card and up | Apache 2.0 |
| [GLM-Image](https://huggingface.co/zai-org/GLM-Image) | about 23 GB, with part of it on the processor | MIT |
| [FLUX.2 klein 9B](https://huggingface.co/black-forest-labs/FLUX.2-klein-9B) | about 29 GB | FLUX non-commercial |
| [FLUX.2 dev](https://huggingface.co/black-forest-labs/FLUX.2-dev) (32B) | more than one 24 GB card: its makers point RTX 4090 and 5090 owners to a 4-bit version | FLUX non-commercial |
| [Stable Diffusion 3.5 Large](https://huggingface.co/stabilityai/stable-diffusion-3.5-large) (8B) | no figure given; it suggests quantizing to fit smaller cards | Stability AI community |

Some of these licences forbid commercial use of the model itself, and some models ask you to accept their terms on Hugging Face before you download them. Read the licence on the model's page before you use one for work.

The older generation is still everywhere, with thousands of community add-ons — checkpoints and LoRAs — made for it:

| Model | Comfortable | Minimum |
|---|---|---|
| Stable Diffusion 1.5 | 8 GB | 4 GB |
| SDXL | 12 GB | 8 GB |
| Flux.1 (dev or schnell) | 24 GB | 12 GB with FP8 |

A 24 GB card runs most of these: an RTX 4090 at about $0.49 an hour, or an RTX 3090 at about $0.31 — a little slower, and plenty for most work. The bigger FLUX.2 models want a 32 GB RTX 5090; FLUX.3 image klein with its prompt upsampler wants an 80 GB card such as an A100 or H100. For SDXL alone, a 12 GB card is enough. Filter the [marketplace](https://rentgpupower.com/market) by memory; more numbers are in [How much GPU memory do I need?](https://rentgpupower.com/guides/how-much-gpu-memory)

### And video?

| Model | Memory it needs | Licence |
|---|---|---|
| [HunyuanVideo 1.5](https://huggingface.co/tencent/HunyuanVideo-1.5) (8.3B) | at least 14 GB, with offloading | Tencent Hunyuan community |
| [Wan2.2 TI2V-5B](https://huggingface.co/Wan-AI/Wan2.2-TI2V-5B) | at least 24 GB — an RTX 4090 — for 720p | Apache 2.0 |
| [Wan2.2 T2V-A14B](https://huggingface.co/Wan-AI/Wan2.2-T2V-A14B) | at least 80 GB on one card | Apache 2.0 |

Every open model with a text side, size by size, is in [the open-model list](https://rentgpupower.com/open-models).

## Way 1: a notebook with diffusers

Rent a card with the **PyTorch + JupyterLab** environment (you pick it at checkout). When the rental starts, press **Open JupyterLab**, the big button on the rental page, create a notebook and run:

```python
%pip install -q -U diffusers transformers accelerate

import torch
from diffusers import Flux2KleinPipeline

pipe = Flux2KleinPipeline.from_pretrained(
    "black-forest-labs/FLUX.2-klein-4B", torch_dtype=torch.bfloat16,
).to("cuda")

image = pipe("a lighthouse on a cliff at sunset, oil painting",
             height=1024, width=1024,
             guidance_scale=1.0, num_inference_steps=4).images[0]
image.save("/workspace/lighthouse.png")
```

Rent a card with at least 16 GB for it. The first run downloads the model, about 16 GB; after that, each picture takes seconds. Change the prompt and run the last four lines again. On a card with less memory, call `pipe.enable_model_cpu_offload()` instead of `.to("cuda")`. Z-Image-Turbo works the same way with diffusers' `ZImagePipeline` (9 steps, `guidance_scale=0.0`), and SDXL with `StableDiffusionXLPipeline`.

The newest models need diffusers from its source. Qwen-Image 2.1, which also edits pictures, as its model page shows it — on a 24 GB card, or less with the processor's help:

```python
%pip install -q -U git+https://github.com/huggingface/diffusers transformers accelerate

import torch
from diffusers import QwenImage21Pipeline

pipe = QwenImage21Pipeline.from_pretrained("Qwen/Qwen-Image-2.1", torch_dtype=torch.bfloat16)
pipe.enable_model_cpu_offload()

image = pipe(prompt="a lighthouse on a cliff at sunset, oil painting",
             width=2048, height=2048, num_inference_steps=40).images[0]
image.save("/workspace/lighthouse-qwen.png")
```

FLUX.3 image klein and Ideogram 4 are gated: accept their terms on their Hugging Face pages, then sign in from the notebook (`from huggingface_hub import login; login()`, with a token from your Hugging Face settings) before the first download.

## Way 2: your own ComfyUI or Forge

Prefer a visual tool? ComfyUI (node-based, port 8188) and Stable Diffusion WebUI Forge (port 7860) run on the rented GPU and open in your own browser.

**Choose the image.** Turn on **Pro mode** (the switch in the header). At checkout, open **Your own Docker image** and type a public ComfyUI or Forge image — or the plain PyTorch image, `pytorch/pytorch:2.4.0-cuda12.4-cudnn9-runtime` (`pytorch/pytorch:2.9.1-cuda12.8-cudnn9-runtime` on an RTX 50-series card, which PyTorch 2.4 cannot use), and let the start command install ComfyUI. Under **Run when it starts**, for example:

```bash
apt-get update && apt-get install -y git
git clone https://github.com/comfyanonymous/ComfyUI /workspace/ComfyUI
pip install -r /workspace/ComfyUI/requirements.txt
python -c "from huggingface_hub import hf_hub_download as get; get('stabilityai/stable-diffusion-xl-base-1.0', 'sd_xl_base_1.0.safetensors', local_dir='/workspace/ComfyUI/models/checkpoints')"
```

Press **Use this image**, then pay. The command runs once, first, and its output appears in the **Console** on the rental page. With a ready-made image instead, its own page tells you where the app lives and which command starts it.

**Start it and open it.** The rental starts your image with a shell rather than with the image's own start-up, so you launch the app yourself, from the rental page. Once the start command has finished (the **Console** shows it), open **🧰 More tools for coders**, then under **🌐 Web access** open **Expose a web service on a port**. Type `8188` as the port and this as the start command:

```bash
cd /workspace/ComfyUI && python main.py --listen 0.0.0.0 --port 8188
```

Press **Expose**, then **Open ↗** when it appears: ComfyUI opens in a new tab, at its own address that only you can reach — no SSH, no port forwarding. Forge works the same way on port 7860.

Prefer your own terminal? With the [gpurent command line](https://rentgpupower.com/guides/ssh-into-a-rented-gpu) (123 is your rental's number), connect with ComfyUI's port forwarded to your computer, then start it:

```bash
gpurent ssh 123 -L 8188:127.0.0.1:8188
cd /workspace/ComfyUI && python main.py --listen 0.0.0.0 --port 8188
```

Then open `http://127.0.0.1:8188` in your browser. To forward a port without SSH, use `gpurent tunnel 123 8188`.

## Keep your pictures

Files in /workspace are deleted when the rental ends. Download your images from the rental's **Files** panel, or copy them to **My Drive** — 2 GB that stays with your account between rentals. The rental page can also save everything to My Drive automatically before the time runs out. ComfyUI puts its pictures in /workspace/ComfyUI/output.

Coming back to the same machine? Switch on **Keep my files after this rental** on the rental page: /workspace — the ComfyUI folder, its models and your pictures — stays on that computer for your next rental there, for $0.15 per GB a month, so the models do not download again (its Python packages are outside /workspace: run `pip install -r /workspace/ComfyUI/requirements.txt` again). [How keeping files works](https://rentgpupower.com/guides/keep-your-files-between-rentals).

## What it costs

You pay the host's hourly price, locked when you book and billed by the second: stop early and the unused time comes back as credit. An evening of pictures — three hours on an RTX 3090 — costs about 3 × $0.31.

## FAQ

### Do I need to know Python?

No. The one-click app needs none: type a sentence and press Run. In the notebook you only change the prompt and run the cell again; ComfyUI and Forge are point-and-click once they are running.

### Can I use my own checkpoints and LoRAs?

Yes. Upload them in the Files panel or with scp, or paste a link in the Files panel to have the machine download them itself. For ComfyUI, checkpoints go in models/checkpoints and LoRAs in models/loras.

### Why is the first picture slow?

The model has to be downloaded to the machine first — several gigabytes, about 12 GB for the one-click app with ComfyUI. Every picture after that comes in seconds.

### Are my prompts and images private?

The model runs on the host's machine inside a sandbox (a Docker container); the host cannot open your files through the app, and nothing is sent to an AI company. As with any rented computer, do not put secrets on it that you could not afford to lose.
