Skip to content
ToolRouter
Compress icon

Compress

Compress video, images, and PDFs up to 90% smaller

Compress shrinks video, image, and PDF files by up to 90% while preserving visual quality. Pass one file or a whole batch — it auto-detects each file type and applies the right compression pipeline.

Oversized files cause slow page loads, email bounces, and storage bloat. This tool fixes that in one call. For video it supports modern codecs including H.265, VP9, and AV1. For images it can convert to WebP or AVIF for dramatically smaller files at the same visual quality. For PDFs it balances size against print fidelity. The defaults work well for most use cases — you only need to customize when you have specific requirements.

What you can do

  • compress — reduce one or more video, image, or PDF files with configurable quality, codec, format, and resolution settings

Who it's for

Anyone who handles media files regularly: content creators reducing clips for social, developers optimizing assets for the web, designers sharing large files via email, or teams managing document storage.

How to use it

  1. Use compress and pass one or more file URLs in the files array
  2. Set quality to control the compression level (high is the default, low gives maximum compression)
  3. For images, set image_format to webp or avif for the best size reduction
  4. For video, pick a codec: h265 or av1 gives smaller files than the h264 default, at the cost of slightly longer processing
  5. For PDFs, adjust pdf_quality to balance file size against print fidelity

Information

Price
From $0.01
Billing
The final price is shown before running. Failed paid calls do not charge.
fal.ai API Key
Optional: use your own fal.ai key instead of the platform default · Get key
Prodia API Token
Optional: use your own Prodia token instead of the platform default · Get key
Higgsfield API Key
Optional: use your own Higgsfield key instead of the platform default · Get key
Photalabs API Key
Optional: use your own Photalabs key instead of the platform default · Get key
Google AI API Key
Optional: use your own Google AI key instead of the platform default · Get key
OpenRouter API Key
Optional: use your own OpenRouter key instead of the platform default · Get key
ElevenLabs API Key
Optional: use your own ElevenLabs key instead of the platform default · Get key
Runway API Secret
Optional: use your own Runway key instead of the platform default · Get key

Related Tools