ToolAssay

Compress an image to a target file size

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.

Answeringour last check, 2026-11-26
7 of 7checks answered this week
896 msmedian answer time
$0.004listed price per call
$0.004price it asked us

Paid test badge: not yet. The checks above are free: we call the tool without paying and read the payment request it sends back. The Verified badge needs paid calls whose answers match the promised output, and nobody can buy a badge.

Endpoint

POST https://bild.halowerk.com/v1/compress-to-size

CategoryImage and media
Provider hostbild.halowerk.com
Networkseip155:8453
Payment schemesexact
Self-reported calls, 30 days1 from 1 payers (the provider's figure, not ours)

Our checks, last 30 days

DayResultHTTPAskedTime
2026-11-26 valid payment request 402$0.004 898 ms
2026-11-25 valid payment request 402$0.004 912 ms
2026-11-24 valid payment request 402$0.004 896 ms
2026-11-23 valid payment request 402$0.004 888 ms
2026-11-22 valid payment request 402$0.004 875 ms
2026-11-21 valid payment request 402$0.004 878 ms
2026-11-20 valid payment request 402$0.004 965 ms

Example input (from the provider)

{
  "body": {
    "format": "webp",
    "image_base64": "iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAFElEQVR4nGPgqjjxnxjMMKqQvgoBasrkhTND8CQAAAAASUVORK5CYII=",
    "max_quality": 80,
    "target_bytes": 100000
  },
  "bodyType": "json",
  "method": "POST",
  "type": "http"
}

Promised output schema (from the provider)

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "input": {
      "additionalProperties": false,
      "properties": {
        "body": {
          "additionalProperties": false,
          "properties": {
            "allow_resize": {
              "default": false,
              "type": "boolean"
            },
            "format": {
              "default": "jpeg",
              "enum": [
                "jpeg",
                "webp",
                "avif"
              ],
              "type": "string"
            },
            "image_base64": {
              "maxLength": 14000000,
              "minLength": 16,
              "type": "string"
            },
            "image_url": {
              "format": "uri",
              "maxLength": 2048,
              "type": "string"
            },
            "max_quality": {
              "default": 92,
              "maximum": 100,
              "minimum": 1,
              "type": "integer"
            },
            "max_width": {
              "maximum": 10000,
              "minimum": 16,
              "type": "integer"
            },
            "min_quality": {
              "default": 40,
              "maximum": 100,
              "minimum": 1,
              "type": "integer"
            },
            "target_bytes": {
              "maximum": 10000000,
              "minimum": 1024,
              "type": "integer"
            }
          },
          "required": [
            "target_bytes"
          ],
          "type": "object"
        },
        "bodyType": {
          "enum": [
            "json",
            "form-data",
            "text"
          ],
          "type": "string"
        },
        "method": {
          "enum": [
            "POST",
            "PUT",
            "PATCH"
          ],
          "type": "string"
        },
        "type": {
          "const": "http",
          "type": "string"
        }
      },
      "required": [
        "type",
        "method",
        "bodyType",
        "body"
      ],
      "type": "object"
    },
    "output": {
      "properties": {
        "example": {
          "type": "object"
        },
        "type": {
          "type": "string"
        }
      },
      "required": [
        "type"
      ],
      "type": "object"
    }
  },
  "required": [
    "input"
  ],
  "type": "object"
}

This page as JSON