A 10-second quote video costs under a third of a cent on ReelSDK: POST /v1/ffmpeg renders the text, a background photo and a music track into a 1080x1920 clip with a slow zoom and a fade, at $0.02 per compute minute.
Render quote videos from text, a background and music
Send the quote, a photo URL and an MP3 in one ReelSDK call, and about 11 seconds later you have a finished MP4 at 30 fps, ready to post anywhere that takes 9:16.
Use casesUpdated
The request
POST /v1/ffmpeg
Render a quote video from text, a background photo and a music track with one ffmpeg call: slow zoom, fade and centred type.
curl "https://api.reelsdk.com/v1/ffmpeg?wait=300" \
-H "Authorization: Bearer $REELSDK_KEY" \
--json '{
"inputs": {
"lake.jpg": "https://api.reelsdk.com/f/lib/in/quote-lake/lake.jpg",
"music.mp3": "https://api.reelsdk.com/f/lib/music/chill/ocean-memory.mp3"
},
"args": [
"-loop", "1", "-framerate", "30", "-t", "10", "-i", "lake.jpg", "-i",
"music.mp3", "-filter_complex",
"[0:v]scale=1620:2880:force_original_aspect_ratio=increase,crop=1620:2880,zoompan=z='\''min(zoom+0.0004,1.12)'\'':x='\''iw/2-(iw/zoom/2)'\'':y='\''ih/2-(ih/zoom/2)'\'':d=1:s=1080x1920:fps=30,eq=saturation=1.35:brightness=-0.04,drawbox=t=fill:color=black@0.22,drawtext=fontfile=/usr/share/fonts/reelsdk/Poppins-Bold.ttf:text='\''Adopt the pace\nof nature\\: her secret\nis patience.'\'':fontsize=84:fontcolor=white:line_spacing=22:text_align=C:x=(w-text_w)/2:y=(h-text_h)/2-80:alpha='\''min(1,max(0,(t-0.5)/1.2))'\'',drawtext=fontfile=/usr/share/fonts/reelsdk/Poppins-Bold.ttf:text='\''Ralph Waldo Emerson'\'':fontsize=44:fontcolor=white@0.85:x=(w-text_w)/2:y=(h/2)+190:alpha='\''min(1,max(0,(t-2)/1))'\'',fade=t=out:st=9:d=1[v];[1:a]atrim=0:10,afade=t=in:d=0.5,afade=t=out:st=8.5:d=1.5[a]",
"-map", "[v]", "-map", "[a]", "-c:v", "libx264", "-preset", "medium",
"-crf", "20", "-pix_fmt", "yuv420p", "-c:a", "aac", "-b:a", "160k",
"-movflags", "+faststart", "-shortest", "quote.mp4"
],
"outputs": ["quote.mp4"]
}'const res = await fetch("https://api.reelsdk.com/v1/ffmpeg?wait=300", {
method: "POST",
headers: { Authorization: `Bearer ${process.env.REELSDK_KEY}`, "Content-Type": "application/json" },
body: JSON.stringify({
"inputs": {
"lake.jpg": "https://api.reelsdk.com/f/lib/in/quote-lake/lake.jpg",
"music.mp3": "https://api.reelsdk.com/f/lib/music/chill/ocean-memory.mp3"
},
"args": [
"-loop", "1", "-framerate", "30", "-t", "10", "-i", "lake.jpg", "-i",
"music.mp3", "-filter_complex",
"[0:v]scale=1620:2880:force_original_aspect_ratio=increase,crop=1620:2880,zoompan=z='min(zoom+0.0004,1.12)':x='iw/2-(iw/zoom/2)':y='ih/2-(ih/zoom/2)':d=1:s=1080x1920:fps=30,eq=saturation=1.35:brightness=-0.04,drawbox=t=fill:color=black@0.22,drawtext=fontfile=/usr/share/fonts/reelsdk/Poppins-Bold.ttf:text='Adopt the pace\nof nature\\: her secret\nis patience.':fontsize=84:fontcolor=white:line_spacing=22:text_align=C:x=(w-text_w)/2:y=(h-text_h)/2-80:alpha='min(1,max(0,(t-0.5)/1.2))',drawtext=fontfile=/usr/share/fonts/reelsdk/Poppins-Bold.ttf:text='Ralph Waldo Emerson':fontsize=44:fontcolor=white@0.85:x=(w-text_w)/2:y=(h/2)+190:alpha='min(1,max(0,(t-2)/1))',fade=t=out:st=9:d=1[v];[1:a]atrim=0:10,afade=t=in:d=0.5,afade=t=out:st=8.5:d=1.5[a]",
"-map", "[v]", "-map", "[a]", "-c:v", "libx264", "-preset", "medium",
"-crf", "20", "-pix_fmt", "yuv420p", "-c:a", "aac", "-b:a", "160k",
"-movflags", "+faststart", "-shortest", "quote.mp4"
],
"outputs": ["quote.mp4"]
}),
});
const { job } = await res.json();{
"job": {
"id": "job_s9mr83iiomq4n2jh7zjr",
"op": "ffmpeg",
"status": "succeeded",
"stage": null,
"created_at": "2026-11-07T03:15:37.234Z",
"finished_at": "2026-11-07T03:15:48.247Z",
"outputs": {
"quote.mp4": "https://api.reelsdk.com/f/out/job_s9mr83iiomq4n2jh7zjr/quote.mp4?s=..."
},
"result": null,
"duration_s": 10,
"error": null,
"usage": {
"output_seconds": 10,
"audio_seconds": 0,
"tts_characters": 0,
"images": 0
},
"poll_url": "https://api.reelsdk.com/v1/jobs/job_s9mr83iiomq4n2jh7zjr"
}
}
How the call builds the video
POST /v1/ffmpeg runs ffmpeg 8.1 with the arguments you pass in. It loops the background photo for 10 s at 1080x1920 and runs zoompan for a slow push-in. Then eq lifts the saturation, and drawbox puts a dark veil over the image so the white type is easy to read.
drawtext writes the quote in Poppins Bold, centred on the frame with an alpha fade, and puts the author line underneath in a smaller size. In the last second fade takes the picture out, and the music fades in at the start and out at the end.
At a glance
Fonts you can name in drawtext
Bundled fonts need no input. Your own font goes in inputs and is named by its file name.
| Font | Path for fontfile |
|---|---|
| Anton | /usr/share/fonts/reelsdk/Anton-Regular.ttf |
| Bebas Neue | /usr/share/fonts/reelsdk/BebasNeue-Regular.ttf |
| Montserrat Black | /usr/share/fonts/reelsdk/Montserrat-Black.ttf |
| Montserrat ExtraBold | /usr/share/fonts/reelsdk/Montserrat-ExtraBold.ttf |
| Poppins Bold, this run | /usr/share/fonts/reelsdk/Poppins-Bold.ttf |
| Poppins ExtraBold | /usr/share/fonts/reelsdk/Poppins-ExtraBold.ttf |
| Poppins Black | /usr/share/fonts/reelsdk/Poppins-Black.ttf |
| Noto Sans JP Bold | /usr/share/fonts/reelsdk/NotoSansJP-Bold.otf |
| Noto Sans SC Bold | /usr/share/fonts/reelsdk/NotoSansSC-Bold.otf |
| Noto Sans KR Bold | /usr/share/fonts/reelsdk/NotoSansKR-Bold.otf |
| Your own font | The file name you gave it in inputs, like PlayfairDisplay.ttf |
Sources: Font specimen run, ReelSDK ffmpeg docs, checked November 2026.
Escaping text inside drawtext
Your quote string sits inside a JSON string that sits inside an ffmpeg filter graph, so a few characters need care when you build the payload. A colon separates filter options, so this run writes the colon in the quote as \:, which is \\: inside the JSON body.
For a line break, put a newline in the text, written \n in the JSON body, and set text_align=C so drawtext centres every line on its own. The quote text itself is wrapped in single quotes inside the filter, so either strip apostrophes out of the string beforehand or escape them before sending the request.
Fonts and making many
There are 10 bundled fonts in /usr/share/fonts/reelsdk/ that you can call right away without passing an input. If you want to use your own font, pass the file in inputs and point drawtext to it by its file name; our font specimen rendered all 10 bundled fonts alongside an uploaded font in one job.
When you need a batch of quote videos, send one request per quote, running up to 3 at a time and up to 500 quote videos per key per UTC day. Any arguments outside the allowlist are rejected with a 400 INVALID_REQUEST before a job starts. Check the ffmpeg docs and pricing for the full details.
What it costs
What this video cost
- 9.2 s of compute at $0.02 per minute, fetching the inputs, running ffmpeg and storing the file
- $0.0031
- Total
- $0.0031
Billed per second of the time spent fetching inputs, running ffmpeg and storing outputs, with a 1 s minimum. Machine start-up is not billed, and a failed job costs nothing.
Limits
What one request takes
- Inputs
- Up to 50 files
- Outputs
- 1 to 20 files
- Timeout
- timeout_s from 1 to 600
- Frame size
- Up to 8192 px a side and 37.7 megapixels
- Input files
- 500 MB each, 1 GB per job
- Job run time
- Up to 10 minutes
- Concurrent jobs
- 3 per key
- Jobs per day
- 500 per key
- Output retention
- 7 days
How it works
From request to file
Pick a photo and a track
Pass public URLs for both in
inputsusing the file names your filter graph expects.Write the filter graph
Chain
zoompanfor the push-in,drawboxfor the dark veil, anddrawtextfor the quote and the author.Send POST /v1/ffmpeg
Call
POST /v1/ffmpegwith?wait=300to get the finished job back on the same request.Save the MP4
Copy the file to your own storage before posting it, since output links expire after 7 days.
FAQ
Questions, answered
What does a quote video cost?
Under a third of a cent for a 10-second video. ffmpeg is billed at $0.02 per compute minute, and this one used about 9 seconds of compute to fetch the inputs, render and store the file.
Can I use my own font?
Yes, pass the font file in inputs and set fontfile to its file name. The 10 bundled fonts do not need to be passed in inputs.
Where is the quote from?
It is the popular short form of a line in Ralph Waldo Emerson's essay Education, which reads: Leave this military hurry and adopt the pace of Nature. Her secret is patience.
How do I write a colon in the quote?
Escape it as a backslash colon inside drawtext, which you write as a double backslash in the JSON body.
Can I make a square or landscape version?
Yes. Change the frame size in the filter graph and move the text to fit.
- Audiogram APITurn a podcast clip and cover art into a vertical waveform video with burned-in captions, using two API calls.
- Ad video variantsRender one master ad, then cut story, feed and square variants with their own hooks from it in a single ffmpeg call.
- TikTok slideshow APITurn photos into a vertical TikTok-style slideshow with music and transitions, named or random, in one POST.
- FFmpeg API: run ffmpeg commands over HTTP, $0.02 a compute minuteRun ffmpeg commands over HTTP: send input URLs and your arguments, get output URLs back. ffmpeg 8.1 on a fresh 4 vCPU machine per job, ready in about 2 s, $0.02 per compute minute.
- 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.
Ready to build?
Ship video from your app today
Your first $0.50 is free, and one key covers every endpoint.
