Rent a GPU

Use case · ComfyUI, Forge, diffusers

How do you generate AI images on a rented GPU?

Last updated: · 5 min read

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 endInterfaceDefault portBest for
ComfyUINode graph in the browser, HTTP API8188FLUX, video models, automated batches
Stable Diffusion WebUI ForgeForm-based web UI7860SDXL and SD 1.5 with familiar A1111 controls
InvokeAICanvas web UI9090Inpainting and layered editing
diffusersPython libraryNoneScripts, 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.

VRAM needed by SDXL and FLUX.1 [dev] at FP16, and the smallest RentGPUCrypto card that holds them
ModelFP16 / BF168-bit4-bit
Stable Diffusion XL image / video model12 GBRTX 4090$0.37/hr——
FLUX.1 [dev] image / video model28 GBRTX 5090$0.52/hr——

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.

ComfyUI on the instance, reached through an SSH tunnel
# 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 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 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 (5)
  1. ComfyUI repository — ComfyUI
  2. Stable Diffusion WebUI Forge — lllyasviel
  3. Diffusers documentation — Hugging Face
  4. FLUX.1 [dev] model card and licence — Black Forest Labs
  5. Stable Diffusion XL base 1.0 model card — Stability AI

Generate on an RTX 5090

24 GPU-hours for $12.48, paid in crypto with no KYC.

RTX 4090 from $0.37/hr · no KYC

Rent a GPU