Skip to content
onelayer.
All tools

Tool detail

Image Optimizer & WebP Converter

Converts and compresses an image from a URL into WebP, AVIF, JPEG or PNG at a chosen quality.

Categories: Image editing

Use when

  • convert an image URL to WebP for web delivery
  • shrink a photo's file size before putting it on a CDN
  • convert an image to AVIF, JPEG or PNG at a given quality

Not for

  • not image uploads by file — source must be a public image URL
  • not resizing/cropping — format and quality only

Inputs

POST JSON body: image_url (string, required); format (enum webp/jpeg/jpg/png/avif, optional, default webp), quality (integer 1-100, optional, default 80)

Admitted input schema

{
  "type": "object",
  "properties": {
    "format": {
      "type": "string",
      "minLength": 0,
      "maxLength": 4096,
      "enum": [
        "webp",
        "jpeg",
        "jpg",
        "png",
        "avif"
      ],
      "description": "Output format: webp, jpeg, jpg, png or avif (default webp)"
    },
    "image_url": {
      "type": "string",
      "minLength": 0,
      "maxLength": 4096,
      "description": "Absolute http(s) URL of the image to optimize"
    },
    "quality": {
      "type": "integer",
      "minimum": 1,
      "maximum": 100,
      "description": "Encoding quality 1..100 (default 80)"
    }
  },
  "required": [
    "image_url"
  ],
  "additionalProperties": false
}

Endpoint

Method
POST
URL
https://imgopt.use.x402atlas.com/optimize

Payment

Protocol
x402
Listed price
0.01 USDC per call on Base
Payment method
exact
Network
eip155:8453
Asset
0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913

Listed terms are catalog metadata. The caller supplies inputs and calls the tool outside Onelayer. If payment is required, the caller uses a compatible wallet to pay.

Source

Record
POST https://imgopt.use.x402atlas.com/optimize
Retrieved
2026-09-30T20:37:07.382Z
Catalog file SHA-256
6837ccddf886f0007cf3727ea9d27faaa5047b51b4f425345c554ce1c271a524
Catalog built
2026-09-30T22:31:58.034Z