# Render Blender scenes on a cloud GPU

A long Cycles render can keep your own computer busy for hours. You will upload a scene to a rented GPU, render it there from the command line and download the images. The **Blender headless rendering** template installs the official [Blender](https://www.blender.org) 4.2 LTS build with its GPU support; Blender is free software under the GNU GPL. This guide is for Blender users who are comfortable pasting a few commands into a terminal. You need an account with credit and an SSH key; if you have none, see [Connect with SSH](/docs/connect-ssh).

## What it costs

You pay for the server by the second while it runs, plus its disk for as long as the server exists. A faster GPU costs more per hour but can finish sooner, so try one frame first and compare. The review step shows the price **Per hour** before anything starts; the [pricing page](/pricing) has the current prices of every GPU.

## 1. Prepare the scene

On your own computer, in Blender:

1. Set the render engine to **Cycles**. This template is set up for Cycles on the GPU.
2. Pack the textures into the file: **File**, then **External Data**, then **Pack Resources**. Otherwise the server cannot find them.
3. Save the file, for example `scene.blend`.

The server runs Blender 4.2. A file saved in a newer Blender usually opens, but features added after 4.2 are missing.

## 2. Start the server

Never started a server? [Your first GPU server](/docs/tutorial-first-gpu-server) shows adding credit and **Quick start** step by step. Rendering is in the full setup:

1. Open **Deploy**. Under **Sort by**, choose **Price, low to high** and pick a configuration with at least 8 GB of **VRAM**; a big scene needs more. Select **Continue**.
2. Above the template cards, select **Generate images**, then the **Blender headless rendering** card, then **Continue**.
3. Name the server, for example `render-1`, and select your key under **SSH keys**.
4. Select **Continue**, check **Per hour**, and under **Automation (optional)** set a running time that covers your render. Select **Start my server**.

Some new servers are reviewed by our team before they start; you are not charged until the server runs.

## 3. Connect and check Blender

When the server is running, open it and the **Connect** tab, copy the SSH command and run it in a terminal on your computer. Then check that Blender is ready:

```bash
blender --version
```

If the command is not found yet, the start script is still downloading Blender. Wait a minute and try again.

## 4. Upload and render

On your computer, copy the file to the server. Replace `PORT` and `HOST` with the values on the **Connect** tab (the tab also has a ready **Copy scp command**):

```bash
scp -P PORT ./scene.blend root@HOST:/workspace/scenes/
```

On the server, render frame 1 to a PNG on the GPU:

```bash
blender -b /workspace/scenes/scene.blend -o /workspace/renders/frame_#### -F PNG -f 1 -- --cycles-device CUDA
```

To render the whole animation, put `-a` where `-f 1` is. On RTX cards, `OPTIX` instead of `CUDA` is often faster. Keep the order of the options: `-o` and `-F` come before `-f` or `-a`.

A long render stops if your SSH connection drops. Start it in the background and follow its log instead:

```bash
nohup blender -b /workspace/scenes/scene.blend -o /workspace/renders/frame_#### -F PNG -a -- --cycles-device CUDA > /workspace/render.log 2>&1 &
tail -f /workspace/render.log
```

Press Ctrl+C to stop watching; the render goes on.

## 5. Download the images

On your computer:

```bash
scp -P PORT 'root@HOST:/workspace/renders/*' ./
```

## Common mistakes

- **Pink textures in the result**: the textures were not packed. Pack them (step 1) and upload the file again.
- **The render runs on the processor and is slow**: the `-- --cycles-device CUDA` part is missing, or it is not at the end of the command.
- **"CUDA out of memory"**: the scene does not fit in the GPU memory. Pick a configuration with more **VRAM**, or lower the texture sizes.
- **The server stopped mid-render**: the automatic stop ran out. Frames already written stay on the disk; set a longer time on the server's **Settings** tab under **Automation**, start the server and render the remaining frames with `-s` (start) and `-e` (end).

## When you are done: stop or destroy

- **Stop** ends the compute charge. The scenes and renders on the disk are kept, and the disk is still billed.
- **Destroy** ends every charge and deletes the disk. Download your images first. Open the server, go to **Settings** and choose **Destroy server**.

## Next

- [Move data in and out](/docs/tutorial-move-data) for big scenes and folders.
- [Which GPU do I need?](/docs/tutorial-which-gpu)
- [Control costs](/docs/tutorial-save-money)
