zf-kbot/image-upscaler-20251103

Public
6.2M runs

Run zf-kbot/image-upscaler-20251103 with an API

Use one of our client libraries to get started quickly. Clicking on a library will take you to the Playground tab where you can tweak different inputs, see the results, and copy the corresponding code to use in your own project.

Input schema

The fields you can use to run this model with an API. If you don't give a value for a field its default value will be used.

Field Type Default value Description
input_image
string
输入图片文件(支持 jpg、png、bmp 格式)
processing_mode
None
blur
处理模式选择。blur=模糊图片去模糊+增强(≤2K),clear=清晰图片直接增强(支持4K+大图)
max_resolution
integer
1920

Max: 4096

[blur模式] 目标最长边尺寸(推荐1280-1920)。图片会等比缩放,处理后自动裁切黑边。0=不调整
output_quality
integer
0

Max: 4

[blur模式] SeedVR2 输出质量预设。0=使用FlashVSR输出分辨率(推荐),2=2K(2560×1440),4=4K(3840×2160,需更多显存)
tile_size
integer
2048

Min: 1024

Max: 4096

[clear模式] 分块尺寸(像素)。推荐2048。更大的tile需要更多显存
target_scale
integer
0

Max: 4

[clear模式] 目标放大倍数。0=保持原分辨率,2=放大到2倍(4块),3=3倍(9块),4=4倍(16块)
output_format
None
jpg
输出图片格式。jpg=压缩率高,png=无损
enable_4x_upscale
integer
0

Max: 1

启用 4x 超分辨率放大(使用 ClearRealityV1 模型)。0=禁用,1=启用
quality_limit
integer
0

Max: 4096

[高级-blur模式] SeedVR2 最短边上限(0=使用预设)。用于限制显存占用
oom_prevention_threshold
number
1.5

Min: 1

Max: 4

[高级-blur模式] 长宽比阈值(OOM预防)。当图片长宽比<此值时,自动降低分辨率。推荐1.5
oom_fallback_resolution
integer
1280

Min: 128

Max: 2560

[高级-blur模式] OOM 时降级分辨率。推荐1280
tile_overlap
integer
64

Max: 256

[高级-clear模式] 分块重叠区域(像素)。用于平滑拼接,推荐64
tile_memory_mode
integer
1

Max: 1

[高级-clear模式] 分块显存优化。0=禁用,1=启用(将tile缩小到1280处理,节省显存)
tile_sharpening
number
0.8

Max: 2

[高级-clear模式] 分块预处理锐化强度。推荐0.8
final_sharpening
number
0.3

Max: 2

[高级-clear模式] 最终锐化强度(拼接后)。推荐0.3
extra_scale
number
1

Min: 1

Max: 4

[高级] 额外放大倍率(在分辨率调整后)。通常保持1.0
log_level
None
info
[高级] 日志详细程度。info=基本信息,debug=详细调试

Output schema

The shape of the response you’ll get when you run this model with an API.

Schema
{
  "type": "string",
  "title": "Output",
  "format": "uri"
}