# Citiview Image Editor

> Citiview Image Editor is a paid API for AI agents from agents.citiviewgroup.com, paid per call via x402, $0.003/call, status unknown (last checked 2026-10-14).

Resize, crop, rotate, convert, compress, and grayscale images from a URL or base64 input, supporting PNG and JPEG up to 16 megapixels

## Facts

- Endpoint: GET https://agents.citiviewgroup.com/v1/image/edit?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/citiview-image-editor-c52a9725
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ZLlhhlUaFHbOui8stz-Ht

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 citiview-image-editor-c52a9725
```

Example prompt: Take this image URL https://example.com/photo.jpg, resize it to fit inside 800×600 pixels, convert it to JPEG at quality 75, and return the result.

## When to prefer this

Choose this endpoint when you need lightweight, on-demand image transformations — resizing, cropping, rotating, format conversion, compression, or grayscaling — directly from a URL or base64 string without standing up your own image processing pipeline. It supports up to 16 megapixels and handles both PNG and JPEG, making it suitable for most web and app image workflows at a low per-call cost.

## Known failure modes

- Image URL is inaccessible or returns a non-image response
- Input image exceeds the 16 megapixel limit
- Invalid crop coordinates (outside image bounds)
- Unsupported rotation value (not 90, 180, or 270)
- Invalid JPEG quality value outside 10–100 range
- Neither image_url nor image_base64 provided
- Malformed base64 string causing decode failure

## How this service works

Image tools: resize (fit inside a box), crop, rotate, grayscale and convert or compress PNG and JPEG images from a URL or base64. Up to 16 megapixels. Also callable as GET with the same fields as query parameters.

## Output

Returns the processed image file (PNG or JPEG) reflecting the requested transformations — resized, cropped, rotated, grayscale, and/or format-converted — ready for download or further use.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "crop": {
       "type": "string",
       "description": "x,y,width,height"
      },
      "width": {
       "type": "integer"
      },
      "format": {
       "type": "string",
       "description": "png | jpeg"
      },
      "height": {
       "type": "integer"
      },
      "rotate": {
       "type": "integer",
       "description": "90 | 180 | 270"
      },
      "quality": {
       "type": "integer",
       "description": "JPEG quality 10-100"
      },
      "grayscale": {
       "type": "boolean"
      },
      "image_url": {
       "type": "string"
      },
      "image_base64": {
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/citiview-image-editor-c52a9725/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agents.citiviewgroup.com](https://www.zero.xyz/host/agents.citiviewgroup.com/llms.txt)
