Reference
Send a file's URL and a list of operations. They run in order, top to bottom, and you get one finished file back. Every picture on this page was made by the API from the request beside it.
Operation Images Videos PDFs What it does
watermark
✓
✓
✓
Place an image (a logo, usually a transparent PNG) over the file, at its own size or resized, faded, tinted and turned on the way.
border
✓
✓
–
Add a border of a color on each side.
text
✓
–
–
Draw text on the image, in a built-in font or your own.
frame
✓
–
–
Put the image in a frame: a border, a mat, an instant print, film, a caption bar and more.
protect
✓
–
–
Lay fine patterns over the image that make it hard to clean of a watermark.
line
✓
–
–
Draw a straight line.
resize
✓
✓
–
Resize to a width and height.
crop
✓
✓
–
Cut out a rectangle.
thumbnail
✓
–
–
Make a small, fast-loading copy, metadata stripped.
rotate
✓
✓
–
Rotate by degrees, clockwise, optionally mirror, and level or straighten the perspective.
flip
✓
✓
–
Mirror the file.
orient
✓
–
–
Turn the image upright from its EXIF orientation.
shave
✓
–
–
Cut the same number of pixels off opposite edges.
trim
✓
–
–
Cut away edges of one flat color, such as the empty canvas around text.
grayscale
✓
✓
–
Remove the color.
sepia
✓
–
–
Give the image a sepia tone.
exposure
✓
–
–
Adjust brightness and contrast.
filter
✓
–
–
Apply a photo filter.
remove_background
✓
–
–
Make the background color transparent (output PNG or WebP to keep it).
color
✓
–
–
Adjust brightness, contrast, saturation, warmth and tint, or tone it mono or sepia.
adjust
✓
–
–
Resize to a width, fade and turn, as for preparing a logo: transparent corners stay transparent.
color_profile
✓
–
–
Convert to an sRGB or CMYK color profile.
compress
✓
–
–
Re-encode at a quality, 1-100.
web_copy
–
✓
–
Make a small copy that every browser plays, for viewing: H.264 (High, 8-bit) with AAC stereo in an MP4 that starts playing before it has downloaded, scaled down (never up) to `max_side`, an HDR video tone-mapped to SDR. Use it for an HEVC iPhone video, a ProRes, AVI, MKV or WMV file. It runs alone, as the only operation, and the output format is `mp4`.
The same catalog as JSON: GET /v1/operations . An unknown operation or parameter is refused with 422.
Brand it
Put your mark on a photo, a video or every page of a PDF.
"type": "watermark"
Images
Videos
PDFs
Place your logo, usually a transparent PNG, over a photo, every frame of a video or every page of a PDF. It goes on at the logo's own size. On a photo it can also be resized, faded, tinted and turned in the same step, with width, opacity, tint and rotation, so one request does what adjust and then watermark would. x and y count pixels from the top-left corner to the logo's top-left corner; a turned logo turns about its centre, so they place it as it would be unturned.
A logo in the bottom-right corner
photo.jpg 900 × 600 · JPG · 95 KB
Result 900 × 600 · JPG · 96 KB
POST /v1/images/process
Copy
{
"source": "https://example.com/photo.jpg",
"operations": [
{"type": "watermark", "image_url": "https://example.com/logo.png", "x": 552, "y": 524}
]
}
Resized, faded and turned in the same step
photo.jpg 900 × 600 · JPG · 95 KB
Result 900 × 600 · JPG · 95 KB
POST /v1/images/process
Copy
{
"source": "https://example.com/photo.jpg",
"operations": [
{"type": "watermark", "image_url": "https://example.com/logo.png", "x": 300, "y": 280, "width": 300, "opacity": 70, "rotation": -20}
]
}
Repeated across the whole photo
photo.jpg 900 × 600 · JPG · 95 KB
Result 900 × 600 · JPG · 110 KB
POST /v1/images/process
Copy
{
"source": "https://example.com/photo.jpg",
"operations": [
{"type": "watermark", "image_url": "https://example.com/logo.png", "x": 40, "y": 36, "tile_spacing_x": 440, "tile_spacing_y": 140}
]
}
On every page of a PDF
PDF
contract.pdf PDF · 97 KB
Result PDF · 100 KB
POST /v1/documents/process
Copy
{
"source": "https://example.com/contract.pdf",
"operations": [
{"type": "watermark", "image_url": "https://example.com/logo.png", "x": 148, "y": 712}
]
}
To use another corner, read the file first: for the bottom right, x is the image width minus the logo width minus a margin (900 − 316 − 32 = 552). With width, the logo width is that width and its height follows the logo's shape. Tile spacing is the step from one copy to the next, so make it wider than the logo.
Parameters
image_url
an http(s) URL
URL of the watermark image (JPEG, PNG, GIF or WebP). Send this or image.
image
a file id or a storage object
The watermark image as a file an earlier request made (file_…) or an object in your connected bucket. Send this or image_url.
x
a whole number, -65535 to 65535
Required
The x position in pixels, from the top left, of the watermark's top-left corner; when it is turned, of that corner before the turn.
y
a whole number, -65535 to 65535
Required
The y position in pixels, from the top left, of the watermark's top-left corner; when it is turned, of that corner before the turn.
tile_spacing_x
a number, 0 to 65535
Repeat the watermark across the file: the step in pixels from one copy's left edge to the next (with tile_spacing_y).
tile_spacing_y
a number, 0 to 65535
When tiling, the step in pixels from one copy's top edge to the next.
width
a whole number, 1 to 65535
Resize the watermark image to this width in pixels first; the height follows. Left out, it goes on at its own size.
opacity
a whole number, 0 to 100
default 100
The watermark's opacity, 0-100.
rotation
a whole number, -360 to 360
default 0
Turn the watermark by degrees clockwise, about its centre: it stays centred where it would be unturned.
tint
a hex color
Paint the whole watermark this one color, keeping its transparency: a white logo for dark photos, say. A hex color, such as "#ffffff" or "#fff".
"type": "border"
Images
Videos
Add a frame of one color, as wide as you like on each side. The file grows by the border.
A white frame, wider at the bottom
photo.jpg 900 × 600 · JPG · 95 KB
Result 948 × 696 · JPG · 96 KB
POST /v1/images/process
Copy
{
"source": "https://example.com/photo.jpg",
"operations": [
{"type": "border", "top": 24, "bottom": 72, "left": 24, "right": 24, "color": "#ffffff"}
]
}
Parameters
top
a whole number, 0 to 65535
Required
Top border in pixels.
bottom
a whole number, 0 to 65535
Required
Bottom border in pixels.
left
a whole number, 0 to 65535
Required
Left border in pixels.
right
a whole number, 0 to 65535
Required
Right border in pixels.
color
a hex color
Required
The border color. A hex color, such as "#ffffff" or "#fff".
Write text on the file: a copyright line, a name, a date. Name a built-in font from GET /v1/fonts in font, or give your own in font_url. position picks the corner or edge that x and y count from.
A copyright line in the bottom-left corner
photo.jpg 900 × 600 · JPG · 95 KB
Result 900 × 600 · JPG · 96 KB
POST /v1/images/process
Copy
{
"source": "https://example.com/photo.jpg",
"operations": [
{"type": "text", "text": "© 2026 Lena Hart", "font_url": "https://example.com/font.ttf", "size": 36, "color": "#ffffff", "opacity": 85, "position": "bottom_left", "x": 28, "y": 24}
]
}
Parameters
text
text
Required
The text. A line break starts a new line.
size
a whole number, 4 to 2000
Required
The font size in pixels.
color
a hex color
The text color. A hex color, such as "#ffffff" or "#fff".
opacity
a whole number, 0 to 100
default 100
Opacity, 0-100.
position
one of top_left, top, top_right, left, center, right, bottom_left, bottom, bottom_right
default "top_left"
Where x and y are measured from: top_left, top, top_right, left, center, right, bottom_left, bottom, bottom_right.
x
a whole number, -65535 to 65535
default 0
Offset from the position, in pixels.
y
a whole number, -65535 to 65535
default 0
Offset from the position, in pixels.
rotation
a whole number, -360 to 360
default 0
Degrees clockwise, about the text.
font
text
A built-in font by name, from GET /v1/fonts. Send this or font_url.
font_url
an http(s) URL
Your own TrueType, OpenType or WOFF font, by URL.
Put the photo in a frame: a plain or gradient border, a mat with a fine line, an instant print, a film strip, a caption bar with the camera details, a torn edge, rounded corners, a shadow, or padding to a shape. Sizes are percents of the shorter side.
A mat with a fine line
photo.jpg 900 × 600 · JPG · 95 KB
Result 1008 × 708 · JPG · 109 KB
POST /v1/images/process
Copy
{
"source": "https://example.com/photo.jpg",
"operations": [
{"type": "frame", "style": "mat", "mat_color": "#f4f1ea", "line_color": "#333333", "size": 8}
]
}
Parameters
style
one of border, mat, instant, exif, film, float, fade, bevel, stamp, torn, shape, album, rounded, shadow, fit
Required
Which one to use.
color
a hex color
The frame color. A hex color, such as "#ffffff" or "#fff".
size
a whole number, 0 to 100
Frame width, as a percent of the shorter side.
mat_color
a hex color
The mat or inner color. A hex color, such as "#ffffff" or "#fff".
edge
a whole number, 0 to 20
Edge width, as a percent of the shorter side.
bottom
a whole number, 0 to 60
Extra space below (above for instant with space_above), as a percent of the shorter side.
radius
a whole number, 0 to 50
Corner radius, as a percent of the shorter side.
ratio
text
For fit: the shape to pad to, such as "4:5" or "1.91:1".
blur
true or false
For fit and float: fill with a blurred copy of the image.
gradient_color
a hex color
For border: blend the frame to this color. A hex color, such as "#ffffff" or "#fff".
angle
a whole number, -360 to 360
For border: the gradient's angle. For instant: the print's tilt, -15 to 15 degrees.
line_color
a hex color
For mat: a fine line inside the mat. A hex color, such as "#ffffff" or "#fff".
text_color
a hex color
For exif and film: the text color. A hex color, such as "#ffffff" or "#fff".
shape
one of arch, circle, oval, rectangle
For shape: arch, circle or oval. For fade: oval or rectangle.
caption
text
For exif and film: a caption.
camera
text
For exif: the camera.
lens
text
For exif: the lens.
exposure
text
For exif: the exposure, such as "f/2.8 1/250s ISO 200".
taken
text
For exif: when it was taken.
space_above
true or false
For instant: the extra space (bottom) above the photo instead of below it.
font
text
A built-in font by name, from GET /v1/fonts. Send this or font_url.
font_url
an http(s) URL
Your own TrueType, OpenType or WOFF font, by URL.
Lay fine patterns over the photo, faint enough to look at but hard to clean off along with a watermark. Mix several.
A faint grid and waves
photo.jpg 900 × 600 · JPG · 95 KB
Result 900 × 600 · JPG · 105 KB
POST /v1/images/process
Copy
{
"source": "https://example.com/photo.jpg",
"operations": [
{"type": "protect", "patterns": [{"type": "grid", "color": "#ffffff", "opacity": 25}, {"type": "waves", "color": "#ffffff", "opacity": 20}]}
]
}
Parameters
patterns
a list
Required
The patterns, each {"type": "grid", "color": "#ffffff", "opacity": 30, "size": 8, "thickness": 1}. Types: grid, hatch, dots, waves, zigzag, honeycomb, crosses, ripples, guilloche, rays, grain, lines.
Draw a straight line from one point to another, in pixels from the top-left corner.
A red line corner to corner
photo.jpg 900 × 600 · JPG · 95 KB
Result 900 × 600 · JPG · 99 KB
POST /v1/images/process
Copy
{
"source": "https://example.com/photo.jpg",
"operations": [
{"type": "line", "x1": 0, "y1": 0, "x2": 899, "y2": 599, "size": 4, "color": "#c0392b", "opacity": 80}
]
}
Parameters
x1
a whole number, -65535 to 65535
Required
The x1 position in pixels, from the top left.
y1
a whole number, -65535 to 65535
Required
The y1 position in pixels, from the top left.
x2
a whole number, -65535 to 65535
Required
The x2 position in pixels, from the top left.
y2
a whole number, -65535 to 65535
Required
The y2 position in pixels, from the top left.
size
a whole number, 1 to 200
Required
Width in pixels.
color
a hex color
Required
The line color. A hex color, such as "#ffffff" or "#fff".
opacity
a whole number, 0 to 100
default 100
Opacity, 0-100.
Size and shape
Fit a file to where it is going: a size, a square, the right way up.
"type": "resize"
Images
Videos
Make the file a new size. By default it fits inside the width and height you give and keeps its shape; crop_center fills the box instead and trims what overflows.
Fit inside 450 × 450
photo.jpg 900 × 600 · JPG · 95 KB
Result 450 × 300 · JPG · 26 KB
POST /v1/images/process
Copy
{
"source": "https://example.com/photo.jpg",
"operations": [
{"type": "resize", "width": 450, "height": 450}
]
}
Fill a 400 × 400 square
photo.jpg 900 × 600 · JPG · 95 KB
Result 400 × 400 · JPG · 29 KB
POST /v1/images/process
Copy
{
"source": "https://example.com/photo.jpg",
"operations": [
{"type": "resize", "width": 400, "height": 400, "crop_center": true}
]
}
Parameters
width
a whole number, 1 to 65535
Required
The width in pixels.
height
a whole number, 1 to 65535
Required
The height in pixels.
preserve_aspect_ratio
true or false
default true
Fit inside the box instead of stretching to it.
crop_center
true or false
default false
Fill the box and crop what overflows, centered.
"type": "crop"
Images
Videos
Cut out a rectangle: its top-left corner at x, y, and its width and height, all in pixels.
A 400 × 400 square from the right side
photo.jpg 900 × 600 · JPG · 95 KB
Result 400 × 400 · JPG · 42 KB
POST /v1/images/process
Copy
{
"source": "https://example.com/photo.jpg",
"operations": [
{"type": "crop", "x": 470, "y": 130, "width": 400, "height": 400}
]
}
Parameters
x
a whole number, -65535 to 65535
Required
Left edge in pixels. Below 0, the rectangle starts outside the file and only the part inside is kept.
y
a whole number, -65535 to 65535
Required
Top edge in pixels. Below 0, the rectangle starts outside the file and only the part inside is kept.
width
a whole number, 1 to 65535
Required
The width in pixels.
height
a whole number, 1 to 65535
Required
The height in pixels.
"type": "thumbnail"
Images
A small, fast-loading copy for previews and lists: resized, compressed and stripped of metadata in one step. Leave out the height to keep the shape.
300 pixels wide, quality 70
photo.jpg 900 × 600 · JPG · 95 KB
Result 300 × 200 · JPG · 8 KB
POST /v1/images/process
Copy
{
"source": "https://example.com/photo.jpg",
"operations": [
{"type": "thumbnail", "width": 300, "quality": 70}
]
}
Parameters
width
a whole number, 1 to 65535
The width in pixels; kept in proportion when left out. Send this, height or both.
height
a whole number, 1 to 65535
The height in pixels; kept in proportion when left out.
quality
a whole number, 1 to 100
Compression quality, 1-100.
strip_animation
true or false
default false
Keep only the first frame of an animated GIF or WebP: a much smaller still preview.
"type": "rotate"
Images
Videos
Turn the file clockwise by any number of degrees (negative turns it the other way), and mirror it at the same time if you need to.
A quarter turn clockwise
photo.jpg 900 × 600 · JPG · 95 KB
Result 600 × 900 · JPG · 95 KB
POST /v1/images/process
Copy
{
"source": "https://example.com/photo.jpg",
"operations": [
{"type": "rotate", "degrees": 90}
]
}
Parameters
degrees
a whole number, -360 to 360
Required
Degrees clockwise.
flip_horizontal
true or false
default false
Mirror left to right.
flip_vertical
true or false
default false
Mirror top to bottom.
straighten
a number, -45 to 45
default 0
A further turn, in degrees, to level a tilted horizon. images/read with level suggests it.
lean_vertical
a number, -50 to 50
default 0
Correct converging verticals: how far the bottom (positive) or the top (negative) is drawn in, as a percent of the width, -50 to 50.
lean_horizontal
a number, -50 to 50
default 0
Correct converging horizontals: how far the right side (positive) or the left (negative) is drawn in, as a percent of the height, -50 to 50.
corners
one of crop, color, blur, fill
default "crop"
What happens to the corners levelling uncovers: crop zooms in just enough to hide them, color fills them with corner_color, blur fills them with a blurred copy of the image. fill means color.
corner_color
a hex color
The fill for uncovered corners when corners is color. A hex color, such as "#ffffff" or "#fff".
"type": "flip"
Images
Videos
Mirror the file left to right, top to bottom, or both.
Mirrored left to right
photo.jpg 900 × 600 · JPG · 95 KB
Result 900 × 600 · JPG · 96 KB
POST /v1/images/process
Copy
{
"source": "https://example.com/photo.jpg",
"operations": [
{"type": "flip", "horizontal": true}
]
}
Parameters
horizontal
true or false
default false
Mirror left to right.
vertical
true or false
default false
Mirror top to bottom.
Phones often save a photo sideways and only note which way is up. This turns the pixels upright, so every app shows it the right way.
A phone photo stored sideways, turned upright
phone-photo.jpg 600 × 900 · JPG · 97 KB
Result 900 × 600 · JPG · 96 KB
POST /v1/images/process
Copy
{
"source": "https://example.com/phone-photo.jpg",
"operations": [
{"type": "orient"}
]
}
No parameters: {"type": "orient"} is the whole operation.
Cut the same number of pixels off the left and right, and off the top and bottom.
60 pixels off every side
photo.jpg 900 × 600 · JPG · 95 KB
Result 780 × 480 · JPG · 68 KB
POST /v1/images/process
Copy
{
"source": "https://example.com/photo.jpg",
"operations": [
{"type": "shave", "width": 60, "height": 60}
]
}
Parameters
width
a whole number, 0 to 10000
Required
Pixels off the left and right each.
height
a whole number, 0 to 10000
Required
Pixels off the top and bottom each.
Cut away edges of one flat color: the empty canvas around text, or the paper around a scan.
A signature trimmed to its ink
signature.jpg 900 × 420 · JPG · 52 KB
Result 705 × 153 · JPG · 28 KB
POST /v1/images/process
Copy
{
"source": "https://example.com/signature.jpg",
"operations": [
{"type": "trim"}
]
}
Parameters
fuzz
a whole number, 0 to 50
default 10
How far from the edge color still counts as it, in percent: 0 for exactly that color, more for paper or noise.
Look and file size
Change the colors, cut out a background, or make the file smaller.
"type": "grayscale"
Images
Videos
Remove the color.
Black and white
photo.jpg 900 × 600 · JPG · 95 KB
Result 900 × 600 · JPG · 88 KB
POST /v1/images/process
Copy
{
"source": "https://example.com/photo.jpg",
"operations": [
{"type": "grayscale"}
]
}
No parameters: {"type": "grayscale"} is the whole operation.
A warm, old-photo tone. threshold sets how strong it is.
Threshold 80
photo.jpg 900 × 600 · JPG · 95 KB
Result 900 × 600 · JPG · 98 KB
POST /v1/images/process
Copy
{
"source": "https://example.com/photo.jpg",
"operations": [
{"type": "sepia", "threshold": 80}
]
}
Parameters
threshold
a whole number, 0 to 100
Required
How strong the tone is, 0-100.
"type": "exposure"
Images
Brighten or darken, and add or take away contrast, each from -100 to 100.
Brighter, with more contrast
photo.jpg 900 × 600 · JPG · 95 KB
Result 900 × 600 · JPG · 101 KB
POST /v1/images/process
Copy
{
"source": "https://example.com/photo.jpg",
"operations": [
{"type": "exposure", "brightness": 10, "contrast": 45}
]
}
Parameters
brightness
a whole number, -100 to 100
default 0
From -100 to 100.
contrast
a whole number, -100 to 100
default 0
From -100 to 100.
One of 18 photo filters, at full strength or blended in. strength 50 is half the look.
Toaster
photo.jpg 900 × 600 · JPG · 95 KB
Result 900 × 600 · JPG · 91 KB
POST /v1/images/process
Copy
{
"source": "https://example.com/photo.jpg",
"operations": [
{"type": "filter", "name": "toaster"}
]
}
Nashville at half strength
photo.jpg 900 × 600 · JPG · 95 KB
Result 900 × 600 · JPG · 85 KB
POST /v1/images/process
Copy
{
"source": "https://example.com/photo.jpg",
"operations": [
{"type": "filter", "name": "nashville", "strength": 50}
]
}
Parameters
name
one of amaro, apollo, brannan, earlybird, gotham, hefe, inkwell, kelvin, lomo, nashville, poprocket, rise, sierra, toaster, valencia, walden, willow, xpro2
Required
Which one to use.
strength
a whole number, 0 to 100
default 100
How much of the look, 0-100.
"type": "remove_background"
Images
Make the background color transparent: the color in the corners, and everything close to it within tolerance. Ask for PNG or WebP output to keep the transparency. Made for logos, signatures and stamps on a plain background.
A signature lifted off the paper
signature.jpg 900 × 420 · JPG · 52 KB
Result 900 × 420 · PNG · 332 KB
POST /v1/images/process
Copy
{
"source": "https://example.com/signature.jpg",
"operations": [
{"type": "remove_background", "tolerance": 20, "blur": 1}
],
"output": {"format": "png"}
}
Parameters
tolerance
a whole number, 0 to 100
Required
How far from the background color still counts as background, 0-100.
blur
a whole number, 0 to 100
default 0
Soften the cut edge, 0-100.
Brightness, contrast, saturation, warmth and tint, each from -100 to 100, in one step; tone makes it mono or sepia, and auto balances it first.
Warmer and more saturated
photo.jpg 900 × 600 · JPG · 95 KB
Result 900 × 600 · JPG · 95 KB
POST /v1/images/process
Copy
{
"source": "https://example.com/photo.jpg",
"operations": [
{"type": "color", "brightness": 5, "saturation": 25, "warmth": 30}
]
}
Parameters
brightness
a whole number, -100 to 100
default 0
From -100 to 100.
contrast
a whole number, -100 to 100
default 0
From -100 to 100.
saturation
a whole number, -100 to 100
default 0
From -100 to 100.
warmth
a whole number, -100 to 100
default 0
From -100 (cooler) to 100 (warmer).
tint
a whole number, -100 to 100
default 0
From -100 (green) to 100 (magenta).
tone
one of mono, sepia
mono or sepia.
auto
true or false
default false
Fix levels and color balance automatically first.
Resize to a width, fade and turn in one step, keeping transparent corners transparent: a logo made ready to keep and reuse. Save as PNG or WebP to keep the transparency. To put a logo on a photo at a size, watermark takes the same settings and needs no step before it.
450 wide, 60% opacity
photo.jpg 900 × 600 · JPG · 95 KB
Result 450 × 300 · PNG · 203 KB
POST /v1/images/process
Copy
{
"source": "https://example.com/photo.jpg",
"operations": [
{"type": "adjust", "width": 450, "opacity": 60}
],
"output": {"format": "png"}
}
Parameters
width
a whole number, 1 to 65535
The width in pixels; the height follows.
opacity
a whole number, 0 to 100
default 100
Opacity, 0-100.
rotation
a whole number, -360 to 360
default 0
Degrees clockwise.
tint
a hex color
Paint the whole image this one color, keeping its transparency: a white logo for dark photos, say. A hex color, such as "#ffffff" or "#fff".
"type": "color_profile"
Images
Convert to an sRGB profile for screens, or a CMYK one for print.
Converted to CMYK for print
photo.jpg 900 × 600 · JPG · 95 KB
Result 900 × 600 · JPG · 733 KB
POST /v1/images/process
Copy
{
"source": "https://example.com/photo.jpg",
"operations": [
{"type": "color_profile", "profile": "cmyk"}
]
}
Parameters
profile
one of srgb, cmyk
Required
srgb or cmyk.
"type": "compress"
Images
Save at a lower quality to make the file smaller. Around 70 is hard to tell apart from the original.
Quality 40
photo.jpg 900 × 600 · JPG · 95 KB
Result 900 × 600 · JPG · 39 KB
POST /v1/images/process
Copy
{
"source": "https://example.com/photo.jpg",
"operations": [
{"type": "compress", "quality": 40}
]
}
Parameters
quality
a whole number, 1 to 100
Required
Compression quality, 1-100.
"type": "web_copy"
Videos
Make a small copy of a video that plays in every browser, to show it on a page or in an app: H.264 and AAC in an MP4 that starts playing before it has downloaded. Chrome does not play the HEVC most iPhones record, and no browser plays AVI, MKV or WMV; the copy plays everywhere. It is scaled down to max_side on its longer side (a smaller video keeps its size), and an HDR recording is tone-mapped so its colors look right. It is the only operation of its request, and the output is an mp4.
A copy 640 pixels wide that plays in every browser
clip.mp4 900 × 600 · MP4 · 621 KB
Result 640 × 426 · MP4 · 146 KB
POST /v1/videos/process
Copy
{
"source": "https://example.com/clip.mp4",
"operations": [
{"type": "web_copy", "max_side": 640}
],
"output": {"format": "mp4"}
}
Keep the original for downloads: the copy is for watching, at a lower quality.
Parameters
max_side
a whole number, 240 to 1920
default 1280
The most pixels on the longer side, 240-1920. A smaller video keeps its size.
Other endpoints
These take a file and one value instead of a list of operations.
POST /v1/videos/screenshot
Save one frame of a video as a JPEG or PNG: a poster, a preview, a cover.
VIDEO
clip.mp4 900 × 600 · MP4 · 621 KB
Result 900 × 600 · JPG · 97 KB
POST /v1/videos/screenshot
Copy
{
"source": "https://example.com/clip.mp4",
"seconds": 3,
"output": {"format": "jpg"}
}
POST /v1/documents/snapshot
Render one page of a PDF as an image, to preview a document without a PDF viewer.
PDF
contract.pdf PDF · 97 KB
Result 2550 × 3300 · PNG · 1.3 MB
POST /v1/documents/snapshot
Copy
{
"source": "https://example.com/contract.pdf",
"page": 1,
"output": {"format": "png"}
}
Find out what a file is before you change it: its size and format, a video's duration, a PDF's pages. Use it to place a watermark in a corner.
photo.jpg 900 × 600 · JPG · 95 KB
result.data
{
"frames": 1,
"orientation": "Undefined",
"format": "JPEG",
"colorspace": "sRGB",
"width": 900,
"height": 600,
"size": 97451
}
POST /v1/images/read
Copy
{
"source": "https://example.com/photo.jpg"
}