Skip to main content
Endpoint: POST https://fal.run/fal-ai/seedvr/upscale/image Endpoint ID: fal-ai/seedvr/upscale/image

Try it in the Playground

Run this model interactively with your own prompts.

Quick Start

import fal_client

def on_queue_update(update):
    if isinstance(update, fal_client.InProgress):
        for log in update.logs:
           print(log["message"])

result = fal_client.subscribe(
    "fal-ai/seedvr/upscale/image",
    arguments={
        "image_url": "https://storage.googleapis.com/falserverless/example_inputs/seedvr2/image_in.png"
    },
    with_logs=True,
    on_queue_update=on_queue_update,
)
print(result)

Input Schema

image_url
string
required
The input image to be processed
upscale_mode
UpscaleModeEnum
default:"factor"
The mode to use for the upscale. If ‘target’, the upscale factor will be calculated based on the target resolution. If ‘factor’, the upscale factor will be used directly. Default value: "factor"Possible values: target, factor
upscale_factor
float
default:"2"
Upscaling factor to be used. Will multiply the dimensions with this factor when upscale_mode is factor. Default value: 2Range: 1 to 10
target_resolution
TargetResolutionEnum
default:"1080p"
The target resolution to upscale to when upscale_mode is target. Default value: "1080p"Possible values: 720p, 1080p, 1440p, 2160p
seed
integer
The random seed used for the generation process.
noise_scale
float
default:"0.1"
The noise scale to use for the generation process. Default value: 0.1Range: 0 to 1, step: 0.001
output_format
OutputFormatEnum
default:"jpg"
The format of the output image. Default value: "jpg"Possible values: png, jpg, webp
sync_mode
boolean
default:"false"
If True, the media will be returned as a data URI and the output data won’t be available in the request history.

Output Schema

image
ImageFile
required
Upscaled image file after processing
seed
integer
required
The random seed used for the generation process.

Input Example

{
  "image_url": "https://storage.googleapis.com/falserverless/example_inputs/seedvr2/image_in.png",
  "upscale_mode": "factor",
  "upscale_factor": 2,
  "target_resolution": "1080p",
  "noise_scale": 0.1,
  "output_format": "jpg",
  "sync_mode": false
}

Output Example

{
  "image": {
    "content_type": "image/png",
    "url": "https://storage.googleapis.com/falserverless/example_outputs/seedvr2/image_out.png"
  }
}

Limitations

  • upscale_mode restricted to: target, factor
  • upscale_factor range: 1 to 10
  • target_resolution restricted to: 720p, 1080p, 1440p, 2160p
  • noise_scale range: 0 to 1 (step 0.001)
  • output_format restricted to: png, jpg, webp
  • output_format restricted to: png, jpeg, webp
  • Content moderation via safety checker