Authentication
All requests to the API require your API key passed in the Authorization header using the Bearer token scheme.
Authorization Header
Authorization: Bearer D0117cmprs_your_api_key_here
Don't have a key yet? Join our Discord server and sign in on the homepage to get your free API key instantly.
Get API KeyEndpoints
Base URL
https://compressor.dannny0117.com/api/v1/
Request Parameters
Response
All responses are JSON. A successful compression returns an array of result objects, one per image.
{
"ok": true,
"session": "a1b2c3d4e5f6",
"results": [
{
"ok": true,
"original_name": "photo.jpg",
"output_name": "photo_opt.jpg",
"original_size": 2048576,
"optimized_size": 614400,
"savings_percent": 70
}
]
}
Download URL format:
https://compressor.dannny0117.com/api/download.php?s={session}&f={output_name}
Error Codes
Rate Limits
200
images per day per key
30
images per request
32 MB
max per image
Daily limit resets at midnight UTC.
Need higher limits? Join the Discord and ask in the support channel.
Supported Formats
Input (accepted uploads)
JPEG
PNG
WebP
AVIF
GIF
HEIC
HEIF
SVG
JXL
Output (conversion targets)
JPEG
PNG
WebP
AVIF
GIF
JXL
Keep Original
Code Examples
# Compress a single image (lossy, keep format)
curl -X POST https://compressor.dannny0117.com/api/v1/compress \
-H "Authorization: Bearer D0117cmprs_your_key_here" \
-F "mode=lossy" \
-F "images[]=@/path/to/photo.jpg"
# Convert to WebP with resize
curl -X POST https://compressor.dannny0117.com/api/v1/compress \
-H "Authorization: Bearer D0117cmprs_your_key_here" \
-F "format=webp" \
-F "resize_strategy=fit" \
-F "resize_width=1280" \
-F "images[]=@/path/to/banner.png"
Ready to Build?
Join our Discord and sign in to get your free API key — no credit card, no expiry, no limits on the free tier except the daily request quota.
Get Your Free API Key