FLUX Video Upscale
video-to-video • Black Forest Labs
black-forest-labs/flux-video-upscale
- Third-party
FLUX Video Upscale increases video resolution with a precise mode for source-faithful results and a creative mode for stronger detail enhancement. It accepts clips up to 20 seconds and preserves audio.
| Model Info | |
|---|---|
| Terms and License | link ↗ |
| More information | link ↗ |
| Pricing | <ul><li>Precise (per megapixel-second)$0.07</li><li>Creative (per megapixel-second)$0.10</li></ul> |
Usage
const response = await env.AI.run(
'black-forest-labs/flux-video-upscale',
{
input_video: 'https://replicate.delivery/pbxt/PetLEVcclEkT5H9A3tYETZyAMT5GE2Sa4m6sQqPDpj8vgHga/animatediff.B572L3lv.mp4',
upscale_factor: 2,
creativity: 0,
},
)
console.log(response)
curl https://api.cloudflare.com/client/v4/accounts/$CLOUDFLARE_ACCOUNT_ID/ai/run \
--header "Authorization: Bearer $CLOUDFLARE_API_TOKEN" \
--header "Content-Type: application/json" \
--data '{
"model": "black-forest-labs/flux-video-upscale",
"input": {
"input_video": "https://replicate.delivery/pbxt/PetLEVcclEkT5H9A3tYETZyAMT5GE2Sa4m6sQqPDpj8vgHga/animatediff.B572L3lv.mp4",
"upscale_factor": 2,
"creativity": 0
}
}'
{
"state": "Completed",
"result": {
"video": "https://examples.aig.cloudflare.com/black-forest-labs/flux-video-upscale/precise-video-upscale.mp4"
},
"gatewayMetadata": {
"keySource": "Unified"
}
}
Examples
<details>
<summary>Creative Video Upscale — Enhance fine detail in a source clip using creative mode.</summary>
const response = await env.AI.run(
'black-forest-labs/flux-video-upscale',
{
input_video: 'https://replicate.delivery/xezq/q1XccP3m8V4HMBNDY3LBkaiKjPdJ6e7t74ICqq2wbfWHJNFXA/tmpq8inl7pd.mp4',
upscale_factor: 2,
creativity: 1,
prompt: 'A cinematic travel video with detailed natural scenery and crisp texture',
},
)
console.log(response)
curl https://api.cloudflare.com/client/v4/accounts/$CLOUDFLARE_ACCOUNT_ID/ai/run \
--header "Authorization: Bearer $CLOUDFLARE_API_TOKEN" \
--header "Content-Type: application/json" \
--data '{
"model": "black-forest-labs/flux-video-upscale",
"input": {
"input_video": "https://replicate.delivery/xezq/q1XccP3m8V4HMBNDY3LBkaiKjPdJ6e7t74ICqq2wbfWHJNFXA/tmpq8inl7pd.mp4",
"upscale_factor": 2,
"creativity": 1,
"prompt": "A cinematic travel video with detailed natural scenery and crisp texture"
}
}'
{
"state": "Completed",
"result": {
"video": "https://examples.aig.cloudflare.com/black-forest-labs/flux-video-upscale/creative-video-upscale.mp4"
},
"gatewayMetadata": {
"keySource": "Unified"
}
}
</details>
Parameters
input_video
stringrequiredHTTP(S) URL or base64-encoded MP4 video, up to 20 seconds and 50MB.
upscale_factor
numberminimum: 1.5maximum: 3Output scale relative to the source resolution, from 1.5x to 3x.
▶creativity
one of
prompt
stringOptional description of the clip to guide creative detail enhancement.
safety_tolerance
integerminimum: 0maximum: 4Moderation strictness, from 0 (strictest) to 4.
video
stringformat: uriSigned URL to the upscaled MP4. Download promptly before it expires.
API Schemas (Raw)
Was this helpful?
YesNo
On this page
{"@context":"https://schema.org","@type":"TechArticle","@id":"https://developers.cloudflare.com/ai/models/black-forest-labs/flux-video-upscale/#page","headline":"FLUX Video Upscale","description":"FLUX Video Upscale increases video resolution with a precise mode for source-faithful results and a creative mode for stronger detail enhancement. It accepts clips up to 20 seconds and preserves audio.","url":"https://developers.cloudflare.com/ai/models/black-forest-labs/flux-video-upscale/","inLanguage":"en","image":"https://developers.cloudflare.com/og-docs.png","publisher":{"@type":"Organization","name":"Cloudflare","description":"One platform for your apps, agents, and workforce. Build, secure, and scale without managing infrastructure","url":"https://www.cloudflare.com/","sameAs":["https://github.com/cloudflare","https://www.linkedin.com/company/cloudflare","https://x.com/cloudflare"],"logo":{"@type":"ImageObject","url":"https://developers.cloudflare.com/logo.svg"},"address":{"@type":"PostalAddress","streetAddress":"101 Townsend St","addressLocality":"San Francisco","addressRegion":"CA","postalCode":"94107","addressCountry":"US"},"contactPoint":[{"@type":"ContactPoint","contactType":"Customer Support","url":"https://support.cloudflare.com/","availableLanguage":["English"]},{"@type":"ContactPoint","contactType":"Sales","url":"https://www.cloudflare.com/contact/","availableLanguage":["English"]}]},"isPartOf":{"@type":"WebSite","@id":"https://developers.cloudflare.com/#website","name":"Cloudflare Docs","url":"https://developers.cloudflare.com/"}}
description: "Ad Delayer turns a finished, flat ad image into an editable JSON layer document: a background plate, product and logo cutouts, live text with typography, and vector shapes, with each image layer hosted as its own file. It is designed for flat ads; results for ordinary photographs are not guaranteed. Bria trains it exclusively on licensed data." title: Ad Delayer image: https://developers.cloudflare.com/og-docs.png
Documentation Index
Fetch the complete documentation index at: https://developers.cloudflare.com/llms.txt
Use this file to discover all available pages before exploring further.
b
Docs