Available now

Video Resize: video resizing

Scale Video resizes a video to the width and height you set, by stretching, padding with a color or cropping to fit.

Model ID

Input

Fields marked * are required. Review the price before generating.

URL of the video file to scale/resize. Height and Width of the video must be even numbers for compatibility with video codecs.

Uploading a file needs an account. Create account

MP4, WebM · up to 100 MB

Additional settings

Padding color when mode is 'pad'. Ignored for other modes.

Video codec to use for encoding. libx264 (H.264) is widely compatible, libx265 (H.265/HEVC) offers better compression.

Encoding speed preset. Slower presets give better compression but take longer.

Constant Rate Factor for quality (0-51). Lower values mean better quality and larger files. 18 is visually lossless for most content.

Price$1.43 / run

You sign up first. Your settings are kept.

About this model

Overview

Upload a video and give a width, a height or both, up to 7680 by 4320 pixels; with only one, the other keeps the aspect ratio. Stretch fills the exact size, pad fits the video and fills the rest with a color, crop covers the size and cuts the overflow from the center. You choose H.264 or H.265 and the quality level. Nothing is generated.

What you can build

  • Vertical versions of a landscape clip with padded bars
  • Exact sizes for ad slots and platform specs
  • Smaller files for previews and drafts

Prompting tips

  • Use even numbers for width and height; video codecs need them.
  • Keep the quality value near the default of 18 for a near-lossless result; raise it for smaller files.

What to check

Play the resized export. Check subject framing, distorted proportions and visible compression; resizing alone does not restore missing detail.

Inputs

  • Video (required): URL of the video file to scale/resize. Height and Width of the video must be even numbers for compatibility with video codecs.
  • Width (optional): Target width in pixels. If only width is provided, height is auto-calculated to preserve aspect ratio. At least one of width or height must be provided. From 2 to 7680.
  • Height (optional): Target height in pixels. If only height is provided, width is auto-calculated to preserve aspect ratio. At least one of width or height must be provided. From 2 to 4320.
  • Mode (optional): Scaling mode. 'stretch' scales the video to the exact target dimensions (may distort aspect ratio). 'pad' scales to fit within the target dimensions while preserving aspect ratio, then pads with the chosen color to fill the remaining space (letterbox/pillarbox). 'crop' scales to cover the target dimensions while preserving aspect ratio, then center-crops to the exact target size. Options: stretch, pad, crop.
  • Pad Color (optional): Padding color when mode is 'pad'. Ignored for other modes. Options: black, white, red, green, blue, gray.
  • Codec (optional): Video codec to use for encoding. libx264 (H.264) is widely compatible, libx265 (H.265/HEVC) offers better compression. Options: libx264, libx265.
  • Preset (optional): Encoding speed preset. Slower presets give better compression but take longer. Options: ultrafast, fast, medium, slow.
  • Crf (optional): Constant Rate Factor for quality (0-51). Lower values mean better quality and larger files. 18 is visually lossless for most content.

Output and limits

  • Readable text inside the video, especially small text, is unreliable.
  • Scenes with several interacting characters can lose consistency.
  • Longer clips can show more motion drift or scene changes.
  • Low-quality inputs cause glitches: heavy compression, collages, screenshots and text overlays.
  • Some prompts or outputs can be refused by safety checks.

Price guide

  • up to: $1.43 / run