# Pocket Network Image Transform

> Pocket Network Image Transform is a paid API for AI agents from agent.pocket.network, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-16).

Transforms a public HTTPS image via operations including resize, crop, rotate, convert, compress, filter, watermark, metadata extraction, and more, returning a temporary URL to the result.

## Facts

- Endpoint: POST https://agent.pocket.network/v1/image-transform?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/pocket-network-image-transform-911b9964
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_BSLgwd__Pm9FM8i2iBQvR

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 pocket-network-image-transform-911b9964 -d '<json body>'
```

Example prompt: Take this image at https://example.com/photo.jpg, resize it to 800x600 pixels with a cover fit, and convert it to WebP format — give me the download link when it's ready.

## When to prefer this

Choose this endpoint when you need server-side image transformation or analysis on a public image URL without setting up an account or API key, and are comfortable paying per-request in USDC. It is ideal for agents that need a broad suite of operations (50+ operations from resize to PDF conversion to deep zoom tiles) in a single API, with no infrastructure to manage. Prefer alternatives if you need to process private/local images, require persistent storage of results beyond one hour, or need bulk batch processing at scale.

## Known failure modes

- Image URL is not publicly accessible or returns a non-200 status — request fails with an error
- Unsupported image format for the requested operation — operation-specific error returned
- Invalid or missing operation parameters — validation error with description
- Result URL expires after one hour — client must re-request if needed
- Image too large or complex for the operation — timeout or size-limit error
- USDC payment not confirmed — request rejected before processing

## How this service works

Inspect, analyze or transform a public HTTPS image: metadata, resize, crop, rotate, convert, compress, color and filter adjustments, masks, composition, text annotation and tile packages. POST /v1/image with image_url, operation and params. Transforms answer a temporary HTTPS URL to the result, kept one hour, never image bytes. Pay per request in USDC; no account, no API key.

## Output

A temporary HTTPS URL (valid for one hour) pointing to the transformed or analyzed image result. For metadata and inspection operations, the response includes structured JSON data such as dimensions, format, color space, and EXIF fields rather than a new image URL.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "params": {
   "type": "object",
   "description": "The operation's parameters, e.g. {width, height, fit, format} for resize. Operations that need none take {}."
  },
  "image_url": {
   "type": "string",
   "maxLength": 8192,
   "description": "The public HTTPS image to read."
  },
  "operation": {
   "enum": [
    "adaptive_threshold",
    "add_background",
    "animation_info",
    "apply_mask",
    "auto_orient",
    "blur",
    "brightness",
    "colorspace",
    "compare",
    "composite",
    "compress",
    "contact_sheet",
    "contrast",
    "convert",
    "convolve",
    "crop",
    "deepzoom",
    "detect_format",
    "difference",
    "dilate",
    "dominant_color",
    "draw_circle",
    "draw_line",
    "draw_rect",
    "draw_text",
    "edge_detect",
    "emboss",
    "entropy",
    "erode",
    "extract_alpha",
    "extract_channel",
    "extract_frame",
    "extract_page",
    "flatten",
    "flip",
    "gamma",
    "grayscale",
    "grid",
    "hist_equalize",
    "histogram",
    "hue",
    "inspect",
    "invert",
    "join",
    "laplacian",
    "local_equalize",
    "median",
    "merge_channels",
    "metadata",
    "morphology",
    "normalize",
    "optimize",
    "overlay",
    "pad",
    "page_info",
    "pdf_to_image",
    "pixel_sample",
    "pyramid",
    "rank_filter",
    "resize",
    "rotate",
    "saturation",
    "sharpen",
    "smartcrop",
    "stats",
    "strip_metadata",
    "threshold",
    "thumbnail",
    "tile",
    "tint",
    "trim",
    "watermark"
   ],
   "type": "string",
   "description": "What to do with the image (default inspect)."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/pocket-network-image-transform-911b9964/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent.pocket.network](https://www.zero.xyz/host/agent.pocket.network/llms.txt)
