Api Endpoint

Bacon Services

Use when an agent needs the colours of an image: returns its dominant colours as hex codes with each one's share, most common first, as JSON.

Open interactive test console

Offering

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

Endpoint context

URL
https://baconservices.com/api/agent-commerce/v1/capabilities/image-palette/execute
MIME type
Not provided
First seen
2026-10-23T22:14:09.550Z
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
138 ms
Average latency
861 ms
HTTP status
200
Last checked
Reachability
100% over 8 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": {
        "count": {
          "default": 6,
          "description": "The most colours to return.",
          "maximum": 12,
          "minimum": 1,
          "type": "integer"
        },
        "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"
        },
        "include_neutrals": {
          "default": true,
          "description": "Count near-whites, near-blacks and greys too. With false, shares are of the coloured part of the image only.",
          "type": "boolean"
        }
      },
      "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"
}