# x402 Image Tools – Image Format Converter

> x402 Image Tools – Image Format Converter is a paid API for AI agents from 7fg5bxb40m3f0v23.68r.lambda-web.us-east-1.on.aws, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-29).

Converts an image from a URL to a specified format (WebP, AVIF, PNG, JPEG, GIF, or TIFF) with optional quality and lossless encoding settings.

## Facts

- Endpoint: POST https://7fg5bxb40m3f0v23.68r.lambda-web.us-east-1.on.aws/v1/convert?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-29
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-image-tools-image-format-converter-5379a10d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_l0sk6VcZsd9O7roQWMH-d

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 x402-image-tools-image-format-converter-5379a10d -d '<json body>'
```

Example prompt: Can you convert this image to WebP with quality 85? The URL is https://example.com/photo.png — return the converted image URL.

## When to prefer this

Choose this endpoint when you need to convert an image at a known URL from one format to another, especially for web optimization (e.g. converting to WebP or AVIF), handling transparency removal for JPEG output, or controlling quality vs file-size tradeoffs. It supports a broad range of input formats including SVG and TIFF, and returns a ready-to-use CDN URL for the converted image.

## Known failure modes

- Image URL is not publicly accessible or returns a non-200 response
- Image exceeds 20 MB or 40 megapixel limit
- Unsupported input format (only JPEG, PNG, WebP, AVIF, GIF, TIFF, SVG accepted)
- Invalid quality value outside 1-100 range
- Network timeout fetching the remote image
- Output URL expires after 3600 seconds if not retrieved in time
- Payment failure (402) if x402 USDC payment is not fulfilled

## How this service works

Convert an image at a URL to another format, with an optional quality or lossless encoding. JPEG output gets a white background where the image was transparent.

## Output

A JSON object containing the URL of the converted image hosted on CloudFront (with an expiry time), the byte size of the converted image, its width and height in pixels, the output format, and the original input byte size. Optionally includes the image as a data URL if it is under 1 MB and inline was requested.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "url": {
   "type": "string",
   "description": "https URL of a JPEG, PNG, WebP, AVIF, GIF, TIFF or SVG image (up to 20 MB, 40 megapixels)"
  },
  "format": {
   "enum": [
    "webp",
    "avif",
    "png",
    "jpeg",
    "gif",
    "tiff"
   ],
   "type": "string",
   "description": "the output format"
  },
  "inline": {
   "type": "boolean",
   "description": "also return the image as a data URL when it is at most 1 MB"
  },
  "quality": {
   "type": "integer",
   "description": "1-100"
  },
  "lossless": {
   "type": "boolean",
   "description": "lossless WebP or AVIF"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "url": "https://dn8i8p8knpn68.cloudfront.net/results/images/3f1c2b9e.webp?Expires=...",
  "bytes": 48213,
  "width": 800,
  "format": "avif",
  "height": 600,
  "expires_in": 3600,
  "input_bytes": 912345
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-image-tools-image-format-converter-5379a10d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from 7fg5bxb40m3f0v23.68r.lambda-web.us-east-1.on.aws](https://www.zero.xyz/host/7fg5bxb40m3f0v23.68r.lambda-web.us-east-1.on.aws/llms.txt)
