For TikTok, Reels and Shorts, ReelSDK turns a 16:9 video URL into a 1080x1920 MP4 with a blurred background fill: about half a cent per 30-second clip on POST /v1/ffmpeg at $0.02 per compute minute.
Vertical video API
Yes: one request centres the frame, scaled to 1080 px wide, over a blurred copy of itself, so nothing is cropped, and ReelSDK needs about 15 seconds of compute for a 30-second clip.
Use casesUpdated
The request
POST /v1/ffmpeg
Turn 16:9 footage into a 1080x1920 vertical video with a blurred fill in one ffmpeg call, about a quarter cent per 30 s clip.
curl "https://api.reelsdk.com/v1/ffmpeg?wait=60" \
-H "Authorization: Bearer $REELSDK_KEY" \
--json '{
"inputs": {
"launch.mp4": "https://api.reelsdk.com/f/lib/in/use-cases/launch.mp4"
},
"args": [
"-i", "launch.mp4", "-filter_complex",
"[0:v]scale=1080:1920:force_original_aspect_ratio=increase,crop=1080:1920,gblur=sigma=40[bg];[0:v]scale=1080:-2[fg];[bg][fg]overlay=(W-w)/2:(H-h)/2",
"-c:v", "libx264", "-crf", "21", "-preset", "veryfast", "-c:a", "copy",
"-movflags", "+faststart", "vertical.mp4"
],
"outputs": ["vertical.mp4"]
}'const res = await fetch("https://api.reelsdk.com/v1/ffmpeg?wait=60", {
method: "POST",
headers: { Authorization: `Bearer ${process.env.REELSDK_KEY}`, "Content-Type": "application/json" },
body: JSON.stringify({
"inputs": {
"launch.mp4": "https://api.reelsdk.com/f/lib/in/use-cases/launch.mp4"
},
"args": [
"-i", "launch.mp4", "-filter_complex",
"[0:v]scale=1080:1920:force_original_aspect_ratio=increase,crop=1080:1920,gblur=sigma=40[bg];[0:v]scale=1080:-2[fg];[bg][fg]overlay=(W-w)/2:(H-h)/2",
"-c:v", "libx264", "-crf", "21", "-preset", "veryfast", "-c:a", "copy",
"-movflags", "+faststart", "vertical.mp4"
],
"outputs": ["vertical.mp4"]
}),
});
const { job } = await res.json();{
"job": {
"id": "job_y3sic89vs1hl0k54ccnp",
"op": "ffmpeg",
"status": "succeeded",
"stage": null,
"created_at": "2026-11-07T01:20:08.824Z",
"finished_at": "2026-11-07T01:20:25.529Z",
"outputs": {
"vertical.mp4": "https://api.reelsdk.com/f/out/job_y3sic89vs1hl0k54ccnp/vertical.mp4?s=..."
},
"result": null,
"duration_s": 30,
"error": null,
"usage": {
"output_seconds": 30,
"audio_seconds": 0,
"tts_characters": 0,
"images": 0
},
"poll_url": "https://api.reelsdk.com/v1/jobs/job_y3sic89vs1hl0k54ccnp"
}
}How the blurred background filter works
The -filter_complex string pulls the video stream [0:v] from launch.mp4 twice so it can build the background and foreground in a single pass. The first branch scales the 1920x1080 input with scale=1080:1920:force_original_aspect_ratio=increase until it covers the full 1080x1920 canvas, trims the overhang using crop=1080:1920, and runs gblur=sigma=40 to soften it into [bg].
The second branch takes [0:v] again and runs scale=1080:-2 to fit the 1080 px width while keeping the 16:9 aspect ratio intact as [fg]. Then overlay=(W-w)/2:(H-h)/2 places [fg] dead center over [bg], and the rest of the command encodes the frame with -c:v libx264, -crf 21, and -preset veryfast, copies the AAC track via -c:a copy, and writes vertical.mp4 with -movflags +faststart.
At a glance
Ways to make a vertical video
| Option | Price | Limits | What you run |
|---|---|---|---|
| ffmpeg on your own machine | Free; LGPL 2.1 or later, or GPL 2 or later with GPL libraries such as libx264 | Your CPU, disk and bandwidth | ffmpeg builds, a job queue, storage |
| AWS Lambda with an ffmpeg layer | $0.0000166667 per GB-second plus $0.20 per 1M requests (x86, US East) | 900 s per run, 10,240 MB memory and /tmp, 250 MB of code and layers, 6 MB sync payload | The layer, S3 in and out, retries |
| FFmpeg Micro | 1 token per 10 s of input, 500 tokens for $5; this 30 s input: 3 tokens, $0.03 | 100 MB input on the free plan, 1,024 MB on Starter and Pro | API calls |
| ReelSDK | $0.02 per compute minute; about half a cent for this 30 s clip | 500 MB per file, 1 GB per job, 10 minutes of run time | One HTTP call |
Sources: FFmpeg license and legal, AWS Lambda quotas, AWS Lambda pricing, FFmpeg Micro pricing, checked November 2026.
Center crop instead of blur
If you don't want the blurred bars on top and bottom, you can cut a 9:16 slice straight out of the middle of the 16:9 video instead of running two branches. Swap -filter_complex for -vf with crop=ih*9/16:ih,scale=1080:1920, which takes the full height of the input frame, calculates the matching 9:16 width, and scales the result to 1080x1920.
That crop filter always cuts from the exact center of the frame. It works well when your subject stays in the middle of the shot, and because ffmpeg isn't calculating a gblur over a second full-frame video stream, the filter graph is much simpler to pass in args.
Run time, billing, and limits
Turning the 30-second launch.mp4 into vertical.mp4 took about 15 seconds of compute to fetch the input, run ffmpeg and store the file, which comes to about half a cent. Machine start-up isn't billed.
ffmpeg jobs on POST /v1/ffmpeg cost $0.02 per compute minute, billed per second with a 1 s minimum, and you get $0.50 of free credit at sign-up (see pricing for the full breakdown).
What it costs
What this job cost
- Compute: fetching the input, running ffmpeg and storing the file
- 14.9 s
- Rate
- $0.02 per compute minute
- Charged
- $0.0050
Billed per second with a 1 s minimum. Machine start-up is not billed, and failed jobs cost $0.
Limits
What one request takes
- Input files
- 500 MB each, 1 GB per job
- Job run time
- Up to 10 minutes
- Frame size
- Up to 8192 px per side and 37.7 megapixels
- Waiting for a result
- 60 s by default, up to 300 s
- Output retention
- 7 days
How it works
From request to file
Host the input
Any public http or https URL on the default port works, as long as it has no username or password in it; ReelSDK downloads it before ffmpeg starts. A local file goes up with
POST /v1/uploads?filename=clip.mp4first: up to 100 MiB per upload, kept 7 days, and larger files go up as a multipart upload.Send the arguments
One copy of the video is scaled to cover 1080x1920, cropped and blurred with
gblur=sigma=40. The other is scaled to 1080 px wide, andoverlay=(W-w)/2:(H-h)/2centres it on the blur.-c:a copykeeps the sound.Download the result
Every file is listed under
job.outputs, and the links work for 7 days, so copy what you keep. For long jobs, send?wait=0with awebhook_urland fetchGET /v1/jobs/{id}when the webhook arrives.
FAQ
Questions, answered
How do I change the blur strength or the output resolution?
Adjust gblur=sigma=40 in args to change the blur intensity on the [bg] stream. To output a different vertical resolution, replace 1080:1920 in both scale=1080:1920:force_original_aspect_ratio=increase and crop=1080:1920, and update the foreground width in scale=1080:-2 to match. overlay=(W-w)/2:(H-h)/2 uses the stream dimensions automatically, so you don't need to touch the math there.
How can I tune output quality and file size?
This run uses -c:v libx264 -crf 21 -preset veryfast, which took the 18.6 MB source down to 8.1 MB at the same frame rate. You can change the -crf value or the -preset inside args just like you would with ffmpeg on your own machine. The audio stream isn't re-encoded at all because -c:a copy copies the original AAC track straight into vertical.mp4, and -movflags +faststart moves the index to the front of the MP4.
How does the cost compare to FFmpeg Micro and AWS Lambda?
This 30-second clip cost about half a cent on ReelSDK, for about 15 seconds of billed compute. On FFmpeg Micro, which charges 1 token per 10 seconds of input and sells 500 tokens for $5, a 30 s input takes 3 tokens, or $0.03 at the top-up rate (with a 100 MB max input file on the free plan and 1,024 MB on Starter and Pro). On AWS Lambda, you pay $0.0000166667 per GB-second (x86, US East) plus $0.20 per 1M requests.
- Blurred background video with ffmpegFit a 16:9 clip into a 9:16 frame over a blurred copy of itself: scale, crop, gblur and overlay in one filter graph.
- Vertical video dimensionsThe 9:16 sizes TikTok, Instagram Reels and YouTube Shorts ask for, and the ffmpeg commands that turn any clip into 1080x1920.
- Vertical video converterTurn a landscape video into a vertical one in your browser, with a blurred background, free and without uploading it.
- Resize videoRender 9:16, 1:1, 4:5 and 16:9 copies of one video in a single ffmpeg call, about 2 cents for all 4 from a 30 s clip.
- Burn subtitlesHard-code an SRT, ASS or VTT file into a video with one ffmpeg call and 10 bundled fonts, for well under a cent a clip.
- Watermark videoStamp a PNG logo on every frame at any position and opacity with one ffmpeg call, about two thirds of a cent per 30 s clip.
- FFmpeg API reference: POST /v1/ffmpegPOST /v1/ffmpeg runs ffmpeg 8.1 with your own arguments: up to 50 inputs of 500 MB, 20 outputs and 600 s per command, with tested recipes for GIFs, thumbnails and subtitles.
- What is a rendering API?What a rendering API does: send a JSON or code description, get an MP4 back. What you send, who renders it, and what it costs per minute.
Sources, checked November 2026
Ready to build?
Ship video from your app today
Your first $0.50 is free, and one key covers every endpoint.
