Api Endpoint

Bacon Services

Use when an agent needs a web-ready image: shrinks a PNG, JPEG or WebP to a maximum width and converts it to WebP, keeping transparency.

Open interactive test console

Offering

Provider
baconservices.com
Method
POST
Offering type
Api Endpoint
Transport type
http
Category
Creative
Delivery
Not provided
Pricing model
Not provided
x402 version
2

Endpoint context

URL
https://baconservices.com/api/agent-commerce/v1/capabilities/web-image-optimizer/execute
MIME type
Not provided
First seen
2026-10-16T01:51:02.144Z
Last seen
Tags
None supplied

Payment pricing

x402 payment terms are the authoritative price for calling this endpoint.

Payment option 1
0.01 USDC
Atomic price: 10000 · Network: eip155:8453 · Asset: USDC · Scheme: exact
Raw x402 terms
[
  {
    "scheme": "exact",
    "network": "eip155:8453",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "10000",
    "payTo": "0xdec990f28082da7efc9c50df26adba40b66cc4d6"
  }
]

Observed health

Status
Healthy
Latest latency
1241 ms
Average latency
754 ms
HTTP status
200
Last checked
Reachability
100% over 14 checks

Latency is measured to the first response headers. A reachable result does not verify response accuracy or merchant identity.

Input schema

{
  "additionalProperties": false,
  "properties": {
    "body": {
      "additionalProperties": false,
      "description": "Give exactly one of image_url or image_base64. The same request body must be sent again with the PAYMENT-SIGNATURE header.",
      "properties": {
        "image_base64": {
          "contentEncoding": "base64",
          "description": "The image bytes, base64-encoded.",
          "type": "string"
        },
        "image_url": {
          "description": "A public https URL of a PNG, JPEG or WebP image.",
          "format": "uri",
          "type": "string"
        },
        "max_width": {
          "default": 1600,
          "description": "Longest side of the output, in pixels.",
          "maximum": 4096,
          "minimum": 64,
          "type": "integer"
        },
        "quality": {
          "default": 80,
          "description": "WebP quality.",
          "maximum": 95,
          "minimum": 40,
          "type": "integer"
        }
      },
      "type": "object"
    },
    "bodyType": {
      "enum": [
        "json",
        "form-data",
        "text"
      ],
      "type": "string"
    },
    "headers": {
      "type": "object"
    },
    "method": {
      "enum": [
        "POST",
        "PUT",
        "PATCH"
      ],
      "type": "string"
    },
    "queryParams": {
      "type": "object"
    },
    "type": {
      "const": "http",
      "type": "string"
    }
  },
  "required": [
    "type",
    "method",
    "bodyType",
    "body"
  ],
  "type": "object"
}

Output schema

{
  "properties": {
    "example": {
      "type": "object"
    },
    "type": {
      "type": "string"
    }
  },
  "required": [
    "type"
  ],
  "type": "object"
}