# How do you generate AI images on a rented GPU?

> Run ComfyUI, Forge or diffusers with SDXL and FLUX on a rented GPU from $0.37/hr. SSH tunnel, batch jobs, paid in crypto with no KYC.

- URL: https://rentgpucrypto.com/use-cases/image-generation/
- Last updated: 2026-12-03
- Publisher: RentGPUCrypto (https://rentgpucrypto.com)

**Quick answer — How do I run Stable Diffusion or FLUX on a cloud GPU?**

Install ComfyUI or Forge on the instance, download the checkpoint, and open the interface through an SSH tunnel. On **RentGPUCrypto** SDXL runs on an RTX 4090 at $0.37 per GPU-hour and FLUX.1 [dev] at full precision on an RTX 5090, paid in Monero, Bitcoin or USDT.

**In brief**

- **Front end**: ComfyUI for node workflows and batch automation, Forge for a classic form, `diffusers` for scripts.
- **Access**: the web UI stays on 127.0.0.1 and reaches your browser through `ssh -L`.
- **Card**: SDXL needs 12 GB, FLUX.1 [dev] 28 GB at FP16.
- **Batches**: ComfyUI's HTTP API queues hundreds of prompts from a script.
- **Rules**: no images of real people without their consent, no abusive material.

## Which interface fits your way of working?

*Four open-source image generation front ends compared by interface, default port and best use*

| Front end | Interface | Default port | Best for |
| --- | --- | --- | --- |
| ComfyUI | Node graph in the browser, HTTP API | 8188 | FLUX, video models, automated batches |
| Stable Diffusion WebUI Forge | Form-based web UI | 7860 | SDXL and SD 1.5 with familiar A1111 controls |
| InvokeAI | Canvas web UI | 9090 | Inpainting and layered editing |
| diffusers | Python library | None | Scripts, pipelines, custom research |

## How much memory do the image models take?

FP16 weights and working memory, with the smallest card that holds each model unquantised.

| Model | FP16 / BF16 | 8-bit | 4-bit |
|---|---|---|---|
| Stable Diffusion XL | 12 GB: RTX 4090, $0.37/hr | — | — |
| FLUX.1 [dev] | 28 GB: RTX 5090, $0.52/hr | — | — |

VRAM needed: FP16/BF16 2 bytes, FP8/Q8 1.06 bytes, Q4 0.56 bytes per parameter, x1.2 for the KV cache and runtime.

## Why tunnel the web UI instead of opening a port?

**Because ComfyUI and Forge ship with no login turned on, so anyone who finds an open port can use your GPU.** Start the UI on 127.0.0.1 and forward it: `ssh -p <port> -N -L 8188:127.0.0.1:8188 root@<host>`, then open http://127.0.0.1:8188 on your laptop.

The tunnel rides on the SSH key you pasted at launch. RentGPUCrypto never sees the private half, so only you can open it. The full install is in the guide to [ComfyUI with FLUX on an RTX 5090](https://rentgpucrypto.com/guides/comfyui-flux-on-rtx-5090/ "Run ComfyUI with FLUX on an RTX 5090").

*ComfyUI on the instance, reached through an SSH tunnel*

```bash
# on the instance
git clone https://github.com/comfyanonymous/ComfyUI.git && cd ComfyUI
python3 -m venv venv && source venv/bin/activate
pip install -r requirements.txt
python main.py --listen 127.0.0.1 --port 8188

# on your laptop
ssh -p <port> -N -L 8188:127.0.0.1:8188 root@<host>
# then open http://127.0.0.1:8188
```

## Which card should you rent for each model?

**An RTX 4090 for SDXL, an RTX 5090 for FLUX.1 [dev] at full precision, an L40S for heavy batches.** According to RentGPUCrypto's VRAM calculator, SDXL needs 12 GB and fits the RTX 4090 with room for a refiner and ControlNet. FLUX.1 [dev] needs 28 GB, so its smallest card is the RTX 5090, at $0.52/hr.

FLUX also runs on a 4090 in FP8 or GGUF form. The [best GPU for Stable Diffusion](https://rentgpucrypto.com/best/gpu-for-stable-diffusion/ "Best GPU for Stable Diffusion and FLUX") ranking compares all six cards.

## How do you run a batch of thousands of images?

**Drive ComfyUI through its HTTP API instead of clicking.** Export a workflow with Save (API Format), then POST it to `/prompt` from a Python loop that swaps the prompt text and seed for each item. ComfyUI queues them and writes every image to its `output` folder.

For long batches, a 24-hour block costs $8.88 on an RTX 4090 and $23.76 on an L40S. Billing is per minute while the instance runs, so stop it when the queue empties; the disk with your models and outputs is kept until you delete the instance.

## Where do models and outputs live?

**On the instance's local NVMe disk, kept while stopped and wiped on delete.** Download checkpoints into ComfyUI's `models/checkpoints`, `models/diffusion_models` or `models/loras` folders with `hf download`, or with `wget` from a direct link.

Gated models such as FLUX.1 [dev] need a Hugging Face token and accepting the licence on the Hub first; FLUX.1 [dev] ships under a non-commercial licence, so read it before using outputs commercially. Pull the `output` folder home with `rsync` before you delete anything. Moving video work later? The [video generation](https://rentgpucrypto.com/use-cases/video-generation/ "AI video generation on a rented GPU") page picks up from here.

## What images are not allowed?

**Images of real people made without their consent, and any child sexual abuse material, are banned outright.** RentGPUCrypto's acceptable use policy also forbids malware, spam, attacks on other systems and work for sanctioned parties.

That leaves the large legitimate space: product shots, concept art, game assets, LoRA training on your own style, research on diffusion models.

## Should you start from the PyTorch image or a Docker image?

**The PyTorch image is the easy default; a Docker image saves time when you redo the same setup often.** The PyTorch image comes with Ubuntu, the NVIDIA driver, CUDA and PyTorch, so ComfyUI needs only `git clone` and `pip install -r requirements.txt`.

If you rebuild the same environment every week, put it in a public image on Docker Hub or GHCR and choose Your own Docker image at launch. Private registries are not offered at launch, so keep secrets such as a Hugging Face token out of the image and set them over SSH instead.

A third route is to pay for the setup: a person on the RentGPUCrypto team installs ComfyUI and tests one model of your choice for $49.

## Image generation on a rented GPU: common questions

### Is a rented GPU faster than my own for image generation?

It depends on your card. If yours has less memory than the model needs, a rented RTX 5090 (32 GB) or L40S avoids offloading, which is where most slowdowns come from.

### Can I use custom LoRAs and checkpoints?

Yes. You have root on the instance, so any file you download or upload into the model folders loads like on a local install.

### Can I leave ComfyUI running overnight?

Yes. The instance runs while it has GPU-hours for its model and bills per minute; when the hours of that GPU run out it stops and keeps its disk.

### Can I start from a ready-made Docker image?

Yes, if it is public on Docker Hub or GHCR: choose Your own Docker image at launch and type its name. Otherwise use the PyTorch image and install ComfyUI over SSH.

### How do I pay for an image generation GPU?

Top up in Monero, Bitcoin, USDT, USDC, ETH, SOL or LTC from $25, then buy a block of GPU-hours. No ID and no email are required.

**Verdict**

- **SDXL**: RTX 4090 with ComfyUI or Forge, $0.37 per GPU-hour.
- **FLUX.1 [dev]**: RTX 5090 at full precision, $0.52 per GPU-hour.
- **Always**: UI on 127.0.0.1, SSH tunnel, outputs copied before delete.

## Sources

1. [ComfyUI repository](https://github.com/comfyanonymous/ComfyUI) — ComfyUI
2. [Stable Diffusion WebUI Forge](https://github.com/lllyasviel/stable-diffusion-webui-forge) — lllyasviel
3. [Diffusers documentation](https://huggingface.co/docs/diffusers) — Hugging Face
4. [FLUX.1 [dev] model card and licence](https://huggingface.co/black-forest-labs/FLUX.1-dev) — Black Forest Labs
5. [Stable Diffusion XL base 1.0 model card](https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0) — Stability AI

**Generate on an RTX 5090** 24 GPU-hours for $12.48, paid in crypto with no KYC. [Rent an RTX 5090](https://rentgpucrypto.com/app/checkout/?product=rtx-5090&plan=rtx-5090-24h&from=use-cases-image-generation&lang=en) · [Compare GPUs](https://rentgpucrypto.com/pricing/?from=use-cases-image-generation "How much does it cost to rent a GPU per hour?")

---

RentGPUCrypto: RentGPUCrypto rents whole NVIDIA GPUs (RTX 4090, RTX 5090, L40S, A100 80GB, H100, H200) with root SSH for AI inference, Stable Diffusion and fine-tuning, paid in 7 cryptocurrencies including Monero, with no KYC and no email required.
