Compress an image to a target file size: binary search over encoder quality (JPE...
https://bild.halowerk.com/v1/compress-to-sizeOverview
Compress an image to a target file size: binary search over encoder quality (JPEG, WebP or AVIF) above a quality floor, optionally reducing dimensions when the floor is not enough.
Protocol
x402 (POST)
Price
$0.0040
Payment Asset
USD Coin
Payment Network
Base
Category
tools/search
Provider
bild
Source
bazaar
Indexed
2026-11-20 11:09:26
Health
Status
unknown
Latency (p50)
—
Uptime (30d)
—
Reliability Score
—
Last Checked
Never
Last Healthy
Never
Consecutive Failures
0
x402 Payment Validation
Payment Requirements
—
Asset Verified
—
Facilitator
—
Input Schema
{
"body": {
"format": "webp",
"image_base64": "iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAFElEQVR4nGPgqjjxnxjMMKqQvgoBasrkhTND8CQAAAAASUVORK5CYII=",
"max_quality": 80,
"target_bytes": 100000
},
"bodyType": "json",
"method": "POST",
"type": "http"
}
Output Schema
{
"example": {
"result": {
"attempts": [
{
"bytes": 68,
"height": 10,
"quality": 80,
"width": 10
}
],
"bytes": 68,
"format": "webp",
"height": 10,
"image_base64": "UklGRjwAAABXRUJQVlA4IDAAAAAQAgCdASoKAAoAAUAmJaACdLoB+AH4AAPIAP7u/5/+oLfJnnz2//r0QeIN+dkAAAA=",
"input_bytes": 77,
"quality": 80,
"ratio": 0.883,
"resized": false,
"scale": 1,
"search_complete": true,
"target_bytes": 100000,
"width": 10,
"within_target": true
},
"service": "compress-to-size",
"status": "success"
},
"type": "json"
}