## Basic model info

Model name: black-forest-labs/flux-video-upscale
Model description: Upscale videos to higher resolution with FLUX super-resolution. Precise mode sharpens and stays faithful to the source; creative mode restores and invents fine detail.


## Model inputs

- input_video (required): The video to upscale. Must be an mp4, at most 50MB, 20 seconds, and 2560x1440 (2K) of source footage. (string)
- upscale_factor (optional): How much to scale the output relative to the source resolution. The output keeps the source aspect ratio. Output frames are capped at about 14.4 megapixels (4K), so very large sources are upscaled by less than the requested factor. (number)
- creativity (optional): How the upscaler treats your footage. 0 (precise) preserves the source exactly and sharpens it — use it for faces, products, and real people. 1 (creative) restores and invents fine detail more aggressively — use it for generated footage, textures, and scenery, but it doesn't preserve identity as strictly. (integer)
- prompt (optional): Optional description of the clip's content to steer the enhanced detail. Leave empty for a neutral upscale. (string)
- safety_tolerance (optional): Moderation strictness for the prompt and the delivered frames, 0 (strictest) to 4 (most permissive). (integer)


## Model output schema

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

If the input or output schema includes a format of URI, it is referring to a file.


## Example inputs and outputs

Use these example outputs to better understand the types of inputs the model accepts, and the types of outputs the model returns:

### Example (https://replicate.com/p/njqemrs3bdrmy0d03z3vd5p0qc)

#### Input

```json
{
  "prompt": "",
  "creativity": 1,
  "input_video": "https://replicate.delivery/pbxt/PetLEVcclEkT5H9A3tYETZyAMT5GE2Sa4m6sQqPDpj8vgHga/animatediff.B572L3lv.mp4",
  "upscale_factor": 2,
  "safety_tolerance": 2
}
```

#### Output

```json
"https://replicate.delivery/xezq/G40l7ezKN8W2Pye5SoF6NvXkHexVdU89KLZYsV2DgqtfozUcB/tmpaake8_mm.mp4"
```


### Example (https://replicate.com/p/k616k9749drmw0d03z9b9s0kzm)

#### Input

```json
{
  "prompt": "A red fox trotting through a misty pine forest at dawn, soft golden light, fine fur detail.",
  "creativity": 1,
  "input_video": "https://replicate.delivery/xezq/eVFG2qmeK8rkL0S2k4yqXSJgu4i2ZEKIiS3qUqoiKHRdgMFXA/output.mp4",
  "upscale_factor": 2
}
```

#### Output

```json
"https://replicate.delivery/xezq/q1XccP3m8V4HMBNDY3LBkaiKjPdJ6e7t74ICqq2wbfWHJNFXA/tmpq8inl7pd.mp4"
```


### Example (https://replicate.com/p/yf49beqmfxrmy0d03z7vwt2rhc)

#### Input

```json
{
  "creativity": 0,
  "input_video": "https://replicate.delivery/xezq/eVFG2qmeK8rkL0S2k4yqXSJgu4i2ZEKIiS3qUqoiKHRdgMFXA/output.mp4",
  "upscale_factor": 2
}
```

#### Output

```json
"https://replicate.delivery/xezq/MVAcHoxlyUJmCBnvV2wm88oELpkRsXePZC053YIKtiV4imiLA/tmp0ugsw26c.mp4"
```


## Model readme

> ## About
> 
> FLUX Video Upscale increases the resolution of a video clip. Give it up to 20 seconds of footage (mp4, at most 50MB and 2560x1440) and it returns a higher-resolution version that keeps the source aspect ratio and audio track.
> 
> ## Two modes
> 
> The `creativity` input picks how the upscaler treats your footage:
> 
> - **Precise** (`creativity: 0`) preserves the source exactly and sharpens it. Use it when identity matters: faces, products, brand assets, and footage of real people.
> - **Creative** (`creativity: 1`, the default) restores and invents fine detail more aggressively. Use it on generated footage, textures, crowds, and scenery. It doesn't preserve identity as strictly, so faces and products can drift.
> 
> A short `prompt` describing the clip's content can steer creative mode toward the right kind of detail.
> 
> ## Scale factor
> 
> Set `upscale_factor` between 1.5 and 3 (default 2) to control how much bigger the output is relative to the source. Output frames are capped at about 14.4 megapixels (4K), so very large sources are upscaled by less than the requested factor.
> 
> ## Tips
> 
> - Start from the least compressed source you have. Compression artifacts limit how much real detail the upscaler can recover.
> - Run upscaling as your final step, after editing and trimming, so you only pay for footage you keep.
> 
> ## Pricing
> 
> Upscaling is priced per megapixel-second of delivered output — the megapixels per output frame multiplied by the output duration in seconds. Precise mode is $0.07 per megapixel-second and creative mode is $0.10 per megapixel-second. You're charged for delivered output only.
> 
> ## License
> 
> By using FLUX Video Upscale through Replicate you agree to the [Black Forest Labs API agreement](https://docs.bfl.ml/agreement/) and the [Black Forest Labs Terms of Service](https://blackforestlabs.ai/terms-of-service/).

