Automates image upscaling to 4K using fal.ai Clarity Upscaler. Can process latest renders automatically or specific files.

Install

mkdir -p .claude/skills/upscale && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/14546" && unzip -o skill.zip -d .claude/skills/upscale && rm skill.zip

Installs to .claude/skills/upscale

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Upscale rendered images to 4K+ resolution using fal.ai Clarity Upscaler. Use when the user wants to upscale, enhance resolution, make images sharper, or increase image size.
173 chars✓ has a “when” trigger
Intermediate

Key capabilities

  • Upscale rendered images to 4K+ resolution
  • Automatically detect the most recent render file
  • Auto-detect optimal scale factor (2x or 4x)
  • Upload images to fal.ai for processing
  • Download and save upscaled images with naming convention
  • Tune resemblance and creativity parameters

How it works

The skill identifies the target image, determines an appropriate upscale factor, uploads the image to fal.ai's Clarity Upscaler, and then downloads and saves the processed 4K image.

Inputs & outputs

You give it
Image path or a request to upscale the most recent render
You get back
An upscaled image file saved in the renders/ directory

When to use upscale

  • Upscaling interior design renders
  • Enhancing resolution for architectural photography
  • Batch preparing high-quality assets for display

About this skill

Upscale Images

Upscale rendered interior design images to 4K+ resolution using fal.ai's Clarity Upscaler — tunable resemblance/creativity for architectural photography.

Prerequisites

  • fal.ai API key configured in CLAUDE.local.md
  • Python with fal_client and Pillow installed

Input

Accept via $ARGUMENTS or ask:

  • Image path: path to the image to upscale (relative to project renders, or absolute)
  • Scale factor: 2x or 4x (default: auto — pick scale so output is ~4K)

If the user says "upscale" without specifying an image, use the most recently created file in projects/${PROJECT_NAME}/renders/.

API Details

Provider: fal.ai Model: fal-ai/clarity-upscaler Capability: 1-4x upscale, adjustable resemblance (0-1) and creativity (0-1), prompt-guided

Workflow

Step 1: Resolve Image

import os, glob

# If no image specified, find most recent render
renders_dir = f"projects/{project_name}/renders"
files = sorted(glob.glob(os.path.join(renders_dir, "*.png")), key=os.path.getmtime, reverse=True)
# Exclude already-upscaled files
files = [f for f in files if "_4k_" not in os.path.basename(f) and "_upscaled_" not in os.path.basename(f)]
input_path = files[0]

Step 2: Auto-detect Scale

from PIL import Image

img = Image.open(input_path)
w, h = img.width, img.height
target = 3840  # 4K width

if w >= target:
    scale = 2  # already large, 2x is enough
elif w * 4 <= target * 1.5:
    scale = 4
else:
    scale = 2

Step 3: Upload & Upscale

import fal_client
from datetime import datetime

# Read API key from CLAUDE.local.md
os.environ["FAL_KEY"] = "<fal_api_key_from_claude_local_md>"

image_url = fal_client.upload_file(input_path)

result = fal_client.subscribe("fal-ai/clarity-upscaler", arguments={
    "image_url": image_url,
    "scale": scale,
    "resemblance": 0.9,   # high = faithful to original
    "creativity": 0.2,     # low = minimal hallucination
    "prompt": "photorealistic interior design, architectural photography, sharp details, high resolution",
})

# Download result
import urllib.request
timestamp = datetime.now().strftime("%Y%m%d_%H%M%S")
basename = os.path.splitext(os.path.basename(input_path))[0]
out_path = os.path.join(renders_dir, f"{basename}_4k_{timestamp}.png")

urllib.request.urlretrieve(result["image"]["url"], out_path)

w = result["image"].get("width", "?")
h = result["image"].get("height", "?")
size_mb = os.path.getsize(out_path) / (1024 * 1024)
print(f"Upscaled: {w}x{h} ({size_mb:.1f} MB)")
print(f"Saved: {out_path}")

Step 4: Output

  • Save upscaled image to same renders/ directory with _4k_ suffix
  • Display the upscaled image to the user
  • Report: original resolution → new resolution, file size

Output Naming Convention

{original_name}_4k_{timestamp}.png

Tuning Parameters

ParamDefaultRangeEffect
scaleauto1-4Upscale factor — auto-picks based on input size to target ~4K
resemblance0.90-1How faithful to original — 0.9 for interior design (preserve colors/layout)
creativity0.20-1How much AI "enhances" — keep low for architecture to avoid hallucination
prompt(interior design)textGuides the upscaler — include relevant style keywords

Gotchas

  • Clarity Upscaler is the correct modelfal-ai/clarity-upscaler. Controllable scale, resemblance, creativity.
  • Auto-scale logic — If input is already large (≥3840px wide), use scale=2. For ~1200px inputs, use scale=4. Prevents absurdly large outputs.
  • Large output files — 4K PNGs can be 15-25 MB. Warn the user if disk space is a concern.
  • Skip already-upscaled images — Filter out files with _4k_ or _upscaled_ in the name.
  • API key — Read from CLAUDE.local.md, field fal.ai.
  • Fallback — If Clarity fails, fall back to fal-ai/aura-sr (fast GAN-based, fixed 4x, no params needed).

Session Relevant Skills

  • /render — generate images first, then upscale the best ones
  • /compare-models — upscale the winning image after comparison
  • /refine — if the upscaled image reveals quality issues not visible at low res, refine the prompt and re-render

When not to use it

  • When the image is already upscaled (contains _4k_ or _upscaled_ in name)
  • When a different upscaler model than fal-ai/clarity-upscaler is required
  • When disk space is a significant concern for large 4K PNGs

Prerequisites

fal.ai API key configured in CLAUDE.local.mdPython with fal_client installedPython with Pillow installed

Limitations

  • Requires a fal.ai API key
  • Upscaled PNGs can be 15-25 MB
  • Clarity Upscaler is the correct model

How it compares

This skill automates the process of upscaling images to 4K using a specific AI model with tunable parameters, unlike manual upscaling or using a generic tool.

Compared to similar skills

upscale side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
upscale (this skill)04moCautionIntermediate
gemini-logo-remover98moReviewBeginner
nano-image-generator16moReviewBeginner
stable-diffusion-image-generation37moReviewIntermediate

Try saying

Example prompts that trigger this skill in your AI assistant.

You might also like

gemini-logo-remover

bear2u

Remove Gemini logos, watermarks, or AI-generated image markers using OpenCV inpainting. Use this skill when the user asks to remove Gemini logo, AI watermark, or any logo/watermark from images.

9115

nano-image-generator

solidSpoon

Generate images using Nano Banana Pro (Gemini 3 Pro Preview). Use when creating app icons, logos, UI graphics, marketing banners, social media images, illustrations, diagrams, or any visual assets. Triggers include phrases like 'generate an image', 'create a graphic', 'make an icon', 'design a logo', 'create a banner', or any request needing visual content.

110

stable-diffusion-image-generation

davila7

State-of-the-art text-to-image generation with Stable Diffusion models via HuggingFace Diffusers. Use when generating images from text prompts, performing image-to-image translation, inpainting, or building custom diffusion pipelines.

34

ai-multimodal

mrgoonie

Process and generate multimedia content using Google Gemini API. Capabilities include analyze audio files (transcription with timestamps, summarization, speech understanding, music/sound analysis up to 9.5 hours), understand images (captioning, object detection, OCR, visual Q&A, segmentation), process videos (scene detection, Q&A, temporal analysis, YouTube URLs, up to 6 hours), extract from documents (PDF tables, forms, charts, diagrams, multi-page), generate images (text-to-image, editing, composition, refinement). Use when working with audio/video files, analyzing images or screenshots, processing PDF documents, extracting structured data from media, creating images from text prompts, or implementing multimodal AI features. Supports multiple models (Gemini 2.5/2.0) with context windows up to 2M tokens.

9108

intelligent-prompt-generator

huangserva

智能提示词生成器 v2.0 - 支持人像/跨domain/设计三种模式,语义理解、常识推理、一致性检查

12

gemini-api

MadAppGang

Google Gemini 3 Pro Image API reference. Covers text-to-image, editing, reference images, aspect ratios, and error handling.

11

Search skills

Search the agent skills registry