VideoWan VACE 14B Outpainting
Video editing
Starting price $0.1268 / second
Scale Video resizes a video to the width and height you set, by stretching, padding with a color or cropping to fit.
workflow-utilities/scale-videoQuote the input, start the generation with the quote, then poll the job. Set RAYWAKE_API_KEY first; see Authentication.
# 1. Price the exact input (quotes are valid for up to 10 minutes)
curl -s https://api.raywake.com/v1/quotes \
-H "Authorization: Bearer $RAYWAKE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "workflow-utilities/scale-video",
"input": {
"video_url": "https://example.com/input.mp4"
}
}'
# 2. Start the generation with the quote_id from step 1
curl -s https://api.raywake.com/v1/generate \
-H "Authorization: Bearer $RAYWAKE_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{"model": "workflow-utilities/scale-video", "quote_id": "QUOTE_ID", "input": {"video_url":"https://example.com/input.mp4"}}'
# 3. Poll until the status is terminal
curl -s https://api.raywake.com/v1/jobs/JOB_ID \
-H "Authorization: Bearer $RAYWAKE_API_KEY"| Name | Type | Description |
|---|---|---|
video_urlrequired | string (URL) | URL of the video file to scale/resize. Height and Width of the video must be even numbers for compatibility with video codecs. |
width | integer | 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. |
height | integer | 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. |
mode | string (enum) | 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. |
pad_color | string (enum) | Padding color when mode is 'pad'. Ignored for other modes. |
codec | string (enum) | Video codec to use for encoding. libx264 (H.264) is widely compatible, libx265 (H.265/HEVC) offers better compression. |
preset | string (enum) | Encoding speed preset. Slower presets give better compression but take longer. |
crf | integer | Constant Rate Factor for quality (0-51). Lower values mean better quality and larger files. 18 is visually lossless for most content. |
A succeeded job lists its results under outputs, stored on our side. See Jobs for every field.
"outputs": [
{ "type": "video", "url": "https://…", "mime_type": "video/mp4", "thumbnail_url": "https://…" }
]The exact charge for your input comes from a quote. How charges settle
Fields marked * are required. Review the price before generating.
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.
Play the resized export. Check subject framing, distorted proportions and visible compression; resizing alone does not restore missing detail.