# Bacon Services Image Vectorizer

> Bacon Services Image Vectorizer is a paid API for AI agents from baconservices.com, paid per call via x402, $0.05/call, status unknown (last checked 2026-10-31).

Converts a raster PNG, JPEG, or WebP image into a scalable flat-colour SVG by tracing its shapes and colours.

## Facts

- Endpoint: POST https://baconservices.com/api/agent-commerce/v1/capabilities/vectorize/execute?utm_source=zero.xyz
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-31
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/bacon-services-image-vectorizer-887eb707
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Nj1oqg0BnBtwL4LpDEK7_

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability bacon-services-image-vectorizer-887eb707 -d '<json body>'
```

Example prompt: Can you vectorize this PNG logo for me? Here's the URL: https://example.com/logo.png — use 16 colors and balanced detail so I get a clean SVG I can scale up for print.

## When to prefer this

Choose this endpoint when you need a scalable vector (SVG) version of an existing raster logo, icon, or flat-colour graphic. It is ideal for brand assets, UI icons, or any image that must render crisply at multiple sizes. Prefer it over general image-conversion tools when the output must be an editable SVG with flat colour paths rather than a raster at a different resolution.

## Known failure modes

- Image URL is not publicly accessible or returns a non-image response
- Image format is not PNG, JPEG, or WebP
- Both image_url and image_base64 are omitted
- image_base64 is not valid base64-encoded data
- colors parameter outside the 2–32 range
- detail enum value not one of smooth, balanced, detailed
- Image is too large or too complex to trace within timeout

## How this service works

Use when an agent needs a logo or icon as a vector: traces a PNG, JPEG or WebP into a scalable SVG of flat-colour paths.

## Output

An SVG file containing flat-colour vector paths that faithfully trace the input raster image, scaled to any size without quality loss. The number of distinct colours and level of path detail are controlled by the request parameters.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "colors": {
   "type": "integer",
   "default": 16,
   "maximum": 32,
   "minimum": 2,
   "description": "How many flat colours to trace with. 2 is black and white."
  },
  "detail": {
   "enum": [
    "smooth",
    "balanced",
    "detailed"
   ],
   "type": "string",
   "default": "balanced",
   "description": "smooth: fewer, simpler shapes. detailed: closer to the source, larger file."
  },
  "image_url": {
   "type": "string",
   "format": "uri",
   "description": "A public https URL of a PNG, JPEG or WebP image."
  },
  "image_base64": {
   "type": "string",
   "description": "The image bytes, base64-encoded.",
   "contentEncoding": "base64"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/bacon-services-image-vectorizer-887eb707/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from baconservices.com](https://www.zero.xyz/host/baconservices.com/llms.txt)
