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.
Convertly is a media toolkit, not just a format switcher. The API can power upload cleanup, optimization, batch processing, file packaging, and delivery workflows for products that receive user media.
Media tool endpoints accept multipart uploads or sourceUrl remote input. Add async=true to queue heavier work such as video watermarking, PDF previews, poster frames, audio extraction, or large thumbnails. Queued media tools return a jobId and complete through the same GET /api/jobs/{id} endpoint as conversion jobs.
Tool What it does Format conversion Converts images, video, audio, documents, and archives into supported output formats. Compression Reduces file size with quality-based or target-size compression. Resize presets Creates web, email, social, ecommerce, square, width-based, or height-based image outputs. Archive extraction Accepts ZIP uploads and processes the contained files when the output is not another archive. Archive creation Packages generated files into downloadable archives for delivery workflows. Async jobs Processes larger batches through background workers. Optional storage Saves files only when the workflow needs stored outputs or async processing. Image metadata removal Strip EXIF/GPS/device metadata before publishing user uploads. Background removal Segment foreground subjects and return transparent product or creator images. Thumbnail generation Create thumbnails, previews, and poster images for dashboards, galleries, and video libraries. Watermarking Add brand, creator, or marketplace watermarks to images and short videos. PDF to image Turn PDF pages into PNG or JPG previews for document workflows. Image to PDF Package uploaded images into a single PDF for delivery, receipts, or client review. Video thumbnail and poster frames Extract a frame at a timestamp for upload previews and content libraries. Audio extraction Pull audio from video files for podcasts, clips, transcripts, and review workflows. Media inspection Return dimensions, duration, codecs, file size, color space, and format metadata before processing. Remote source input Process files from sourceUrl without forcing your app to re-upload bytes. Async media tools Queue thumbnail, watermark, PDF preview, poster-frame, audio extraction, metadata stripping, image-to-PDF, and inspection jobs.
API endpoints
Endpoint Purpose POST /api/media/thumbnailGenerate image or video thumbnails. POST /api/media/pdf-previewRender a PDF page preview. POST /api/media/image-to-pdfCreate a PDF from one or more images. POST /api/media/strip-metadataRemove metadata from images, video, and audio files. POST /api/media/poster-frameExtract a video poster frame. POST /api/media/extract-audioExtract audio from video. POST /api/media/watermarkApply text or logo watermarks to images and videos. POST /api/media/inspectReturn media metadata, streams, dimensions, duration, and codecs. POST /api/media/trimCut video or audio by start time and duration. POST /api/media/gifCreate an animated GIF preview from a video. POST /api/media/storyboardGenerate a tiled frame contact sheet from a video. POST /api/media/transformResize, crop, rotate, flip, and re-encode images. POST /api/media/remove-backgroundRemove an image background and return a transparent foreground. POST /api/media/signed-transformGenerate CDN-style signed transform URLs for cacheable image derivatives.
Common request options
Field Type Applies to Description filefile All single-file tools Multipart upload input. filesfile[] Image to PDF Multipart image uploads. sourceUrlstring All tools Remote HTTP(S) file input. asyncboolean All tools Queue the tool as a background job. forceboolean Background removal Re-segment an image even when it already has transparency.
curl -X POST "https://convertly.sh/api/media/poster-frame" \
-H "Authorization: Bearer $CONVERTLY_API_KEY " \
-F "sourceUrl=https://cdn.example.com/video.mp4" \
-F "timestamp=4" \
-F "async=true"
{
"jobId" : "65f3a673-69d6-42cc-8f6b-fc5a21fb5a8e" ,
"status" : "pending" ,
"tool" : "poster-frame"
}
Build with media tools See request examples and response shapes for the Media Tools API.
These tools are easy for customers to understand, easy to document, and naturally increase usage without changing Convertly’s core positioning.
The transform endpoint can resize, crop, change format, and set quality in one request. Use this for upload pipelines where a single source image needs a production-ready derivative.
curl -X POST "https://convertly.sh/api/media/transform" \
-H "Authorization: Bearer $CONVERTLY_API_KEY " \
-F "sourceUrl=https://cdn.example.com/photo.jpg" \
-F "cropWidth=1600" \
-F "cropHeight=900" \
-F "width=1200" \
-F "height=630" \
-F "fit=cover" \
-F "format=webp" \
-F "quality=84"
Smart presets are shortcuts for common business outputs:
Preset Output ecommerce1600px product image, WebP, quality 84. avatar512x512 cover crop, WebP, quality 86. blog-hero1600x900 cover crop, WebP, quality 84. social-preview1200x630 cover crop, JPG, quality 88.
curl -X POST "https://convertly.sh/api/media/transform" \
-H "Authorization: Bearer $CONVERTLY_API_KEY " \
-F "sourceUrl=https://cdn.example.com/product.png" \
-F "preset=ecommerce"
Background removal
Use POST /api/media/remove-background for product images, profile photos, thumbnails, and marketplace uploads where the foreground subject should stay and the background should become transparent. PNG is the default recommendation because it preserves transparency. For high-resolution images or batches, send async=true.
If the source image already has meaningful transparency, Convertly preserves the existing cutout instead of running segmentation again. Send force=true only when you intentionally want to re-segment an already-transparent image.
curl -X POST "https://convertly.sh/api/media/remove-background" \
-H "Authorization: Bearer $CONVERTLY_API_KEY " \
-F "file=@./product.jpg" \
-F "format=png" \
-F "model=medium" \
-F "async=true"
Supported output formats are png, webp, and jpg. Use png or webp when you need transparency.
Create a signed URL when your app wants cacheable, CDN-style derivatives without exposing API keys to browsers.
curl -X POST "https://convertly.sh/api/media/signed-transform" \
-H "Authorization: Bearer $CONVERTLY_API_KEY " \
-H "Content-Type: application/json" \
-d '{
"sourceUrl": "https://cdn.example.com/product.jpg",
"preset": "ecommerce",
"expiresIn": 3600
}'
The response returns a URL that can be used directly in an image tag until it expires.
CDN image URLs for stored files
For files already in Convertly Storage, create a signed CDN-style transform URL:
curl -X POST "https://convertly.sh/api/cdn/image" \
-H "Authorization: Bearer $CONVERTLY_API_KEY " \
-H "Content-Type: application/json" \
-d '{
"fileId": "stored-file-id",
"width": 800,
"format": "webp",
"quality": 86
}'
The returned URL has a browser-friendly shape such as /api/cdn/image/{fileId}?w=800&format=webp&q=86&... and can be used in image tags or cached by a CDN until it expires.