# GEDX402 Image Transform

> GEDX402 Image Transform is a paid API for AI agents from images-api.gedx402.com, paid per call via x402, $0.015/call, status unknown (last checked 2026-09-13).

Resizes, reformats, and transforms images via URL or base64 input, returning the processed image as base64 with no API key required — pay per call with USDC.

## Facts

- Endpoint: GET https://images-api.gedx402.com/v1/images/transform
- Price: $0.015/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/gedx402-image-transform-579a609d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_bBvOSGN-ZCh4OocvQc-EM

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 gedx402-image-transform-579a609d
```

Example prompt: Take this image at https://example.com/photo.jpg, resize it to 800 pixels wide and 600 pixels tall using cover fit, and convert it to webp format.

## When to prefer this

Choose this endpoint when you need a pay-per-use, keyless image transformation service that accepts either a remote URL or raw base64 image data, supports multiple output formats (webp, jpeg, png, avif), and can be paid with USDC on Base, Polygon, Arbitrum, World, or Solana via the x402 protocol — ideal for agents without pre-registered API credentials.

## Known failure modes

- Source URL is unreachable or returns a non-image — likely a 4xx or error response
- Base64 payload exceeds 20 MB limit — rejected with payload too large error
- Width or height outside 1–12000 range — validation error
- Invalid fit or format enum value — schema validation error
- Payment not received or underpaid — 402 Payment Required response
- Network timeout fetching remote image URL

## How this service works

Resize, fit, and transcode an image on images-api.gedx402.com. POST url or image_base64 with optional width, height, format (webp/jpeg/png/avif), and fit; returns base64 bytes. x402 settlement USDC per request (see npm run pricing:report) worst-case. Hero: GET /heroes/images-transform. Bundle: GET /v1/models?bundle=artifacts.

## Output

A JSON object containing the transformed image encoded as a base64 string, along with the output width, height, byte length, and content type (e.g. image/webp).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "fit": {
   "enum": [
    "scale-down",
    "contain",
    "cover",
    "crop",
    "pad"
   ],
   "type": "string"
  },
  "url": {
   "type": "string"
  },
  "width": {
   "type": "integer"
  },
  "format": {
   "enum": [
    "webp",
    "jpeg",
    "png",
    "avif"
   ],
   "type": "string"
  },
  "height": {
   "type": "integer"
  },
  "image_base64": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "width": 800,
  "height": 600,
  "byte_length": 12345,
  "content_type": "image/webp",
  "image_base64": "<base64>"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/gedx402-image-transform-579a609d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from images-api.gedx402.com](https://www.zero.xyz/host/images-api.gedx402.com/llms.txt)
