Built for Developers
- ✔ API-first design for easy integration
- ✔ WebP, JPEG, AVIF image conversion
- ✔ MP4/WEBM video compression via ffmpeg
- ✔ Upload to DigitalOcean Spaces or AWS S3
- ✔ Up to 80% file size reduction
Convert images to WebP or videos to MP4 on-the-fly. Store them on DigitalOcean or AWS — or get the compressed result directly.
Want to save storage space and upload your images or videos to your cloud bucket without learning code? This quick guide walks you through everything – from creating an account to uploading and storing your files safely.
.jpeg, .jpg, .png and more..mp4. Compressed videos are stored or downloaded just like images.Need help? Our team is here anytime to assist you.
Route: /login
Basic user login API that returns an authorization Bearer token.
{
"email": "user@example.com",
"password": "example_password"
}
Route: /signup
User signup API that accepts optional custom storage credentials and returns an authorization Bearer token.
{
"email": "example@example.com",
"password": "example@123",
"is_custom_storage": true,
"storage_type": "s3",
"storage_key": "s3-api-key",
"storage_secret": "s3-api-secret-key",
"storage_bucket": "s3-bucket-name",
"storage_region": "s3-bucket-region"
}
Set is_custom_storage to false if you don't have S3 or DigitalOcean space.
Route: /upload_image
Converts images (jpeg/png/jpg) to webp or avix formats.
image_file (file): Image file uploadimage_url (string): URL of image (can be from your S3 bucket)filename (string): Optional filename to setfiletype (string): Desired format, webp (default) or avixreturn_type (string): Defaults to upload URL; set to download to download file insteadResponse:
Returns either JSON with compressed image URL and filename, or a direct file download depending on parameters and user setup.
{
"detail": {
"status": 200,
"message": "Success",
"data": {
"compressed_url": "{s3_url}/files/compressed/bef866754d7-test.webp",
"filename": "bef866754d7-test.webp"
}
}
}
Route: /upload_video
Converts videos from MP4 format to WebM format.
video_file (file): Video file uploadvideo_url (string): URL of video (can be from your S3 bucket)filename (string): Optional filename to setreturn_type (string): Defaults to upload URL; set to download to download file insteadResponse:
Returns JSON with compressed video URL and filename, or direct file download.
{
"detail": {
"status": 200,
"message": "Success",
"data": {
"compressed_url": "{s3_url}/files/videos/53ca1479fc0-testing_video.webm",
"filename": "53ca1479fc0-testing_video.webm"
}
}
}
curl -X POST https://shrinkapi.bytive.in/compress \ -F "file=@product.jpg" \ -F "store=aws" \ -F "bucket=my-bucket" \ -F "aws_key=..." \ -F "aws_secret=..."
We built this for Kisna Diamonds. We can help you too.
hello@bytive.in