Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.convertly.sh/llms.txt

Use this file to discover all available pages before exploring further.

Every media tool accepts file (multipart upload) or sourceUrl (remote URL) as input. Add async=true to queue heavier work as a background job.

Common fields

These fields are accepted by most tools:
FieldTypeDefaultDescription
filefileMultipart file upload.
filesfile[]Multiple file uploads (image-to-PDF only).
sourceUrlstringRemote HTTP(S) URL to process without re-uploading.
asyncbooleanfalseQueue as a background job. Returns a jobId.
callbackUrlstringHTTPS URL to call when an async job completes.
callbackSecretstringSecret included in async callback signatures.

Transform

POST /api/media/transform Resize, crop, rotate, flip, and re-encode images.
FieldTypeDefaultDescription
presetstringecommerce, avatar, blog-hero, social-preview. Overrides width, height, fit, format, and quality.
formatstringwebpjpg, png, webp, avif.
widthnumber0Output width in pixels. 0 means no resize.
heightnumber0Output height in pixels. 0 means no resize.
fitstringcovercover, contain, fill, inside, outside.
qualitynumber861100. Ignored for PNG unless lossy WebP/AVIF.
rotatenumber0Rotation in degrees.
flipbooleanfalseFlip vertically.
flopbooleanfalseFlip horizontally.
cropLeftnumber0Crop origin X in pixels.
cropTopnumber0Crop origin Y in pixels.
cropWidthnumber0Crop width in pixels.
cropHeightnumber0Crop height in pixels.

Preset defaults

PresetWidthHeightFitFormatQuality
ecommerce16001600insidewebp84
avatar512512coverwebp86
blog-hero1600900coverwebp84
social-preview1200630coverjpg88

Adjust

POST /api/media/adjust Change brightness, contrast, saturation, hue, and apply filters.
FieldTypeDefaultDescription
formatstringwebpjpg, png, webp for images. mp4, webm, mov for video. mp3, m4a, wav for audio.
qualitynumber861100.
brightnessnumber11 is no change. Image and video only.
contrastnumber11 is no change. Image and video only.
saturationnumber11 is no change. Image and video only.
huenumber0Degrees. Image and video only.
grayscalebooleanfalseConvert to grayscale.
sharpenbooleanfalseApply sharpening. Image only.
invertbooleanfalseInvert colors. Image and video only.
volumenumber104. Audio only.
normalizebooleanfalseNormalize audio levels. Audio only.
fadeInnumber0Fade-in duration in seconds. Audio only.
fadeOutnumber0Fade-out duration in seconds. Audio only.

Compress

POST /api/compress Reduce file size with quality-based or target-size compression.
FieldTypeDefaultDescription
modestringqualityquality or target-size.
qualitynumber821100. Used when mode=quality.
targetBytesnumberTarget file size in bytes. Used when mode=target-size.
losslessbooleanfalseLossless compression where the format supports it.
stripMetadatabooleantrueRemove EXIF and container metadata.

Watermark

POST /api/media/watermark Add text or logo watermarks to images and short videos.
FieldTypeDefaultDescription
textstringWatermark text. Required for text watermarks.
positionstringbottom-righttop-left, top-right, bottom-left, bottom-right, center.
opacitynumber0.7201.
marginnumber32Padding from the edge in pixels.
formatstringwebpOutput format.
qualitynumber821100.

Thumbnail

POST /api/media/thumbnail Generate thumbnails from images or videos.
FieldTypeDefaultDescription
formatstringwebpjpg, png, webp, avif.
widthnumber512Thumbnail width.
heightnumber512Thumbnail height.
fitstringcovercover, contain, inside.
qualitynumber821100.

Background removal

POST /api/media/remove-background Segment foreground subjects and return a transparent image.
FieldTypeDefaultDescription
formatstringpngpng, webp, jpg. Use png or webp for transparency.
modelstringmediumfast, medium, high. Higher is slower and more accurate.
forcebooleanfalseRe-segment even if the image already has transparency.

Poster frame

POST /api/media/poster-frame Extract a single frame from a video at a timestamp.
FieldTypeDefaultDescription
timestampnumber0Frame time in seconds.
formatstringjpgjpg, png, webp.
qualitynumber821100.
widthnumber0Max width. 0 means source width.

Extract audio

POST /api/media/extract-audio Pull the audio track from a video file.
FieldTypeDefaultDescription
formatstringmp3mp3, m4a, wav, ogg, flac.

Trim

POST /api/media/trim Cut a video or audio clip by start time and duration.
FieldTypeDefaultDescription
startnumber0Start time in seconds.
durationnumberDuration in seconds. If omitted, trims to the end.
formatstringOutput format. Inherits source format if omitted.

Storyboard

POST /api/media/storyboard Generate a tiled contact sheet of video frames.
FieldTypeDefaultDescription
columnsnumber4Frames per row.
rowsnumber4Rows in the grid.
intervalnumberSeconds between frames. Defaults to evenly spaced across the video.
formatstringjpgjpg, png, webp.
qualitynumber821100.
widthnumber0Max width of the final sheet. 0 means auto.

Video to GIF

POST /api/media/gif Create an animated GIF preview from a video.
FieldTypeDefaultDescription
startnumber0Start time in seconds.
durationnumber3Duration in seconds.
fpsnumber10Frames per second.
widthnumber480Output width in pixels.
qualitynumber821100.

PDF preview

POST /api/media/pdf-preview Render a PDF page to an image.
FieldTypeDefaultDescription
pagenumber1Page number to render.
formatstringjpgjpg, png, webp, avif.
qualitynumber821100.
widthnumber0Max width. 0 means source width.

Image to PDF

POST /api/media/image-to-pdf Package one or more images into a single PDF.
FieldTypeDefaultDescription
titlestringPDF document title.
qualitynumber821100. JPEG quality for embedded images.

Inspect

POST /api/media/inspect Return metadata without modifying the file.
FieldTypeDefaultDescription
filefileThe file to inspect.
sourceUrlstringRemote URL to inspect.
Returns dimensions, duration, codecs, streams, file size, color space, format, and EXIF flags.

Strip metadata

POST /api/media/strip-metadata Remove EXIF, GPS, and container metadata.
FieldTypeDefaultDescription
filefileThe file to process.
sourceUrlstringRemote URL to process.
No configurable options. The output is a cleaned copy of the same format.

Vectorization (raster to SVG)

POST /api/convert with format=svg Trace raster images into scalable SVG vectors.
FieldTypeDefaultDescription
vectorizestringgradient to trigger SVG tracing.
monobooleanfalsetrue for monochrome black-on-transparent output. false preserves original colors.
See Media Conversion for more on ideal source images and tracing behavior.