Black Forest Labs Flux 3 Video Upscale API Documentation
Playground
Try it on WaveSpeedAI!FLUX Video Upscale enhances MP4 videos with source-faithful or creative detail reconstruction, configurable 1.5x to 3x scaling, and improved visual clarity for video restoration, social content, ads, and production workflows. Ready-to-use REST inference API, best performance, no coldstarts, affordable pricing.
Features
FLUX 3 Video Upscale enhances an input video with AI-powered upscaling. Upload a source video, optionally describe the desired enhancement direction with a prompt, choose an upscale factor, and adjust creativity to control how much visual detail the model reconstructs during the upscale process.
Why Choose This?
-
AI video upscaling
Improve video resolution and perceived detail from an existing source clip. -
Prompt-guided enhancement
Use an optional prompt to guide the visual direction, such as sharper details, cleaner textures, or more cinematic refinement. -
Adjustable upscale factor
Control how strongly the output should be upscaled with theupscale_factorparameter. -
Creativity control
Usecreativityto control the enhancement strength and reconstruction behavior. -
Short video enhancement workflow
Designed for upgrading short video clips while preserving the original motion and scene structure. -
Simple input pipeline
Provide a video, set the upscale parameters, and generate an enhanced output.
Parameters
| Parameter | Required | Description |
|---|---|---|
| video | Yes | Input video to upscale. |
| prompt | No | Optional text prompt describing the desired enhancement direction, detail style, or visual refinement. |
| upscale_factor | No | Upscale factor for the output video. Higher values increase the target upscale amount. |
| creativity | No | Controls how creatively the model reconstructs or enhances visual details. A value of 1 uses the higher creativity pricing tier. |
How to Use
- Upload the input video — Provide the source video you want to upscale.
- Add a prompt optional — Describe the desired enhancement style, such as sharper detail, cleaner lighting, reduced softness, or cinematic refinement.
- Set upscale factor — Choose how strongly the video should be upscaled.
- Adjust creativity — Use
creativityto control the amount of visual reconstruction. - Submit — Generate the upscaled video and retrieve the output.
Pricing
Pricing is based on input video duration and the selected creativity value. The highest (4K) pricing tier applies to every request, regardless of output resolution or upscale_factor.
| Input video length | Creativity 1 (creative) | Creativity 0 (precise) |
|---|---|---|
| 1 s | $0.83 | $0.59 |
| 5 s | $4.15 | $2.95 |
| 10 s | $8.30 | $5.90 |
| 20 s or longer (maximum charge) | $16.60 | $11.80 |
Billing is per second of input video: each second costs $0.83 with creativity 1 (creative) or $0.59 with creativity 0 (precise). Billable duration is rounded up to the next whole second, with a minimum of 1 second and a maximum of 20 seconds. The default creativity value is 1 (creative).
For example, a 10-second video costs $8.30 with creativity 1 (creative) or $5.90 with creativity 0 (precise).
Best Use Cases
- Video enhancement — Improve short video clips with AI upscaling.
- Creative restoration — Add sharper detail and cleaner visual structure to soft or lower-resolution footage.
- Marketing assets — Upgrade short product, campaign, or social media clips.
- Preview-to-final workflows — Improve draft videos before publishing or presenting.
- Cinematic refinement — Enhance lighting, texture, and perceived detail while preserving the source motion.
- Social video optimization — Upscale short clips for higher-quality platform delivery.
Pro Tips
- Use clean source videos with stable motion for better upscaling results.
- Add a prompt when you want a specific enhancement direction, such as sharper product details, cleaner faces, or more cinematic lighting.
- Keep prompts focused on enhancement rather than changing the scene content.
- Use
creativitycarefully when the original video needs stronger detail reconstruction. - Short clips are easier to review and iterate before processing longer videos.
- Make sure the source video already has the motion and composition you want, since this endpoint is designed for upscaling rather than video editing.
Related Models
- FLUX 3 Text-to-Video — Generate video directly from a text prompt.
- FLUX 3 Image-to-Video — Animate a reference image into a video.
- FLUX 3 Start-End-to-Video — Generate a video between a start image and an end image.
- FLUX 3 Video Extend — Extend an existing video with a new generated continuation.
Authentication
For authentication details, please refer to the Authentication Guide.
API Endpoints
Submit Task & Query Result
set -euo pipefail
export WAVESPEED_API_KEY="your-api-key"
REQUEST_BODY=$(cat <<'JSON'
{
"video": "https://interactive-examples.mdn.mozilla.net/media/cc0-videos/flower.mp4",
"upscale_factor": 2,
"creativity": 1
}
JSON
)
# 1. Submit the prediction once. Never retry this request automatically:
# a retry after an unclear failure can create a second, billed task.
CHECK='The task may already exist. Check History or the predictions list before submitting again.'
if ! SUBMIT_RESPONSE=$(curl --silent --show-error --fail-with-body \
--connect-timeout 10 --max-time 60 \
-X POST "https://api.wavespeed.ai/api/v3/black-forest-labs/flux-3/video-upscale" \
-H "Authorization: Bearer ${WAVESPEED_API_KEY}" \
-H "Content-Type: application/json" \
-d "${REQUEST_BODY}"); then
printf 'Submit failed. %s\n' "${CHECK}" >&2
exit 1
fi
TASK=$(printf '%s' "${SUBMIT_RESPONSE}" | jq 'if type == "object" and has("data") then .data else . end')
PREDICTION_ID=$(printf '%s' "${TASK}" | jq -r '.id // empty')
if [ -z "${PREDICTION_ID}" ]; then
printf 'Submission response did not contain a prediction id. %s\n' "${CHECK}" >&2
exit 1
fi
RESULT_URL="https://api.wavespeed.ai/api/v3/predictions/${PREDICTION_ID}/result"
# 2. Poll until the prediction reaches a final status.
BODY_FILE=$(mktemp)
trap 'rm -f "${BODY_FILE}"' EXIT
while true; do
# Transient errors (429, 5xx) are retried, honoring Retry-After.
HTTP_CODE=$(curl --silent --show-error --fail-with-body \
--connect-timeout 10 --max-time 60 --retry 5 --retry-delay 2 \
--output "${BODY_FILE}" --write-out '%{http_code}' \
"${RESULT_URL}" \
-H "Authorization: Bearer ${WAVESPEED_API_KEY}" || true)
case "${HTTP_CODE}" in
2??) ;;
000|429|5??) # dropped connection or temporary error: keep polling
printf 'Task %s: HTTP %s, polling again in 10s\n' "${PREDICTION_ID}" "${HTTP_CODE}" >&2
sleep 10; continue ;;
*) printf 'Task %s: HTTP %s\n' "${PREDICTION_ID}" "${HTTP_CODE}" >&2
cat "${BODY_FILE}" >&2; exit 1 ;;
esac
RESULT=$(jq 'if type == "object" and has("data") then .data else . end' "${BODY_FILE}")
STATUS=$(printf '%s' "${RESULT}" | jq -r '.status // empty')
case "${STATUS}" in
completed) printf '%s\n' "${RESULT}" | jq '.outputs'; break ;;
failed|cancelled|timeout|deleted)
printf 'Task %s ended with status %s\n' "${PREDICTION_ID}" "${STATUS}" >&2
printf '%s\n' "${RESULT}" | jq . >&2; exit 1 ;;
*) sleep 2 ;;
esac
doneRetry temporary errors only while polling, never the submit request. Errors, retries and timeouts
Parameters
Task Submission Parameters
Request Parameters
| Parameter | Type | Required | Default | Range | Description |
|---|---|---|---|---|---|
| video | string | Yes | - | MP4 video to upscale. Maximum duration: 20 seconds. Maximum file size: 50 MB. | |
| prompt | string | No | - | Optional description used to guide creative detail enhancement. Leave empty for a neutral upscale. | |
| upscale_factor | number | No | 2 | 1.5 ~ 3 · step 0.1 | Output scaling factor. The source aspect ratio is preserved. |
| creativity | integer | No | 1 | 0 ~ 1 · step 1 | Use 0 for a source-faithful upscale or 1 for creative detail enhancement. |
Every model also accepts the global request options enable_sync_mode and enable_base64_output; see their pages for details.
Response Parameters
| Parameter | Type | Description |
|---|---|---|
| code | integer | HTTP status code (e.g., 200 for success) |
| message | string | Status message (e.g., “success”) |
| data.id | string | Unique identifier for the prediction, Task Id |
| data.model | string | Model ID used for the prediction |
| data.outputs | array | Output values, usually URL strings; some models return text strings or structured result objects (empty when status is not completed) |
| data.urls | object | Object containing related API endpoints |
| data.status | string | Task status. completed is successful; failed, cancelled, timeout, and deleted are failure terminal statuses. |
| data.created_at | string | ISO timestamp of when the request was created (e.g., “2023-04-01T12:34:56.789Z”) |
| data.error | string | Error message (empty if no error occurred) |
| data.timings | object | Object containing timing details |
| data.timings.inference | integer | Inference time in milliseconds |
Result Request Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| id | string | Yes | - | Task ID |
Result Response Parameters
| Parameter | Type | Description |
|---|---|---|
| code | integer | HTTP status code (e.g., 200 for success) |
| message | string | Status message (e.g., “success”) |
| data | object | The prediction data object containing all details |
| data.id | string | Unique identifier for the prediction |
| data.model | string | Model ID used for the prediction |
| data.outputs | array<string | object> | Array of generated outputs (empty when status is not completed). Items are usually URL strings, but may be text strings or structured result objects, depending on the model. |
| data.urls | object | Object containing related API endpoints |
| data.status | string | Status: completed is successful; failed, cancelled, timeout, and deleted are failure terminal statuses |
| data.created_at | string | ISO timestamp of when the request was created |
| data.error | string | Error message (empty if no error occurred) |
| data.timings | object | Object containing timing details |
| data.timings.inference | integer | Inference time in milliseconds |