Upscale images and video 2x to 4K/8K on the user's GPU through Guaardvark (Real-ESRGAN, HAT-L, SwinIR, two-pass). Use when the user asks to enlarge, sharpen, restore, or upscale a picture, a batch of pictures, or a video.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Upscale?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/guaardvark-upscale)
---
name: upscale
description: >-
Upscale images and video 2x to 4K/8K on the user's GPU through Guaardvark (Real-ESRGAN,
HAT-L, SwinIR, two-pass). Use when the user asks to enlarge, sharpen, restore, or
upscale a picture, a batch of pictures, or a video.
---
# Upscaling with Guaardvark
Read `setup` first; needs the `upscaling` plugin (`POST /api/plugins/upscaling/start`).
`B=${GUAARDVARK_URL:-http://localhost:5000}`. Models: `GET $B/api/upscaling/models` (default `4x_foolhardy_Remacri`);
install one with `POST $B/api/upscaling/models/download {"model": "<id>"}` only after the user says so.
That starts the download and answers at once; poll `GET $B/api/upscaling/models/download-status`
until `is_downloading` is false (`status` is `completed`, `failed` with `error`, or `cancelled`).
## One image (synchronous, seconds)
```bash
curl -s -X POST $B/api/upscaling/upscale/image \
-F file=@/abs/path/in.png -F model=4x_foolhardy_Remacri -F scale=4 -F sharpen=0.2 -F denoise_strength=0.1
```
Returns the finished file (`output_path`, served under `GET $B/api/upscaling/output/image/<filename>`).
Form options: `model`, `scale` or `target_width`, `sharpen`, `denoise_strength`.
## Many images (queued)
```bash
curl -s -X POST $B/api/upscaling/upscale/images -F files=@a.png -F files=@b.png -F model=4x_foolhardy_Remacri -F scale=2
```
Returns a job id; poll `GET $B/api/upscaling/jobs/<job_id>`; `GET $B/api/upscaling/jobs` lists all.
## Video (queued, frame by frame)
```bash
curl -s -X POST $B/api/upscaling/upscale/video -H 'Content-Type: application/json' -d '{
"input_path": "/abs/path/clip.mp4", "model": "RealESRGAN_x2plus", "target_width": 3840, "suffix": "4k"
}'
```
`target_width` is the output's long edge in pixels (3840 for 4K, 7680 for 8K): the model runs at its
own factor and the result is resized to exactly that, aspect kept. Without it, `scale` (or the
model's native factor) sets the size. The image routes take `target_width` too. `output_path` is optional. Same job polling. Video upscaling is slow: minutes per hundred frames
at 1080p on a 16 GB card. Say so before queuing.
## Rules
- Preview first when in doubt: `POST $B/api/upscaling/preview` (multipart, same form fields) runs a crop.
- Pick the model for the content: the default (4x Foolhardy Remacri) for photos and video, anime
models for line art, HAT-L when a still needs transformer restoration. The models list carries descriptions.
- The GPU is exclusive; a running video upscale blocks image and video generation until it finishes.