# AgentRXI Image Convert & Resize

> AgentRXI Image Convert & Resize is a paid API for AI agents from agentrxi.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-15).

Converts and resizes images between HEIC, AVIF, PNG, JPEG, WebP, GIF, TIFF, BMP, and ICO formats using ImageMagick, with support for resizing, rotation, grayscale, quality control, and metadata stripping.

## Facts

- Endpoint: GET https://agentrxi.com/v1/image/convert?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentrxi-image-convert-resize-ce089cfd
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_pZqD0hPhRv4i-U5WLKlLm

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 agentrxi-image-convert-resize-ce089cfd
```

Example prompt: Take this image URL https://example.com/photo.heic, convert it to JPEG at quality 85, resize it to 800 pixels wide using contain mode, strip the metadata, and give me back a 7-day share link.

## When to prefer this

Choose this endpoint when you need server-side image format conversion or resizing without requiring a full-featured image CDN subscription. It is ideal for one-off conversions, handling HEIC/AVIF from mobile devices, stripping metadata for privacy, or producing web-optimized WebP output. It is pay-per-call at $0.005 USDC, making it cost-effective for infrequent or agent-driven use without a monthly commitment.

## Known failure modes

- Input file exceeds 20 MB limit — returns an error
- Unsupported input format — returns format detection error
- Invalid output format string — returns validation error
- URL unreachable or returns non-image content — returns fetch error
- Width/height combination produces invalid dimensions — returns resize error
- Rotation value not in 90/180/270 — may be ignored or cause error

## How this service works

Convert and resize images with ImageMagick: HEIC/AVIF/PNG/JPEG/WebP/GIF/TIFF/BMP in; PNG, JPEG, WebP, GIF, TIFF, BMP, ICO or AVIF out. Resize (contain, cover or fill), rotate, grayscale, quality, strip metadata; auto-orients phone photos. Also callable as GET with the same fields as query parameters.

## Output

Returns the converted image as a base64-encoded string (or data URI) by default; for files over 3 MB or when store=true, returns 7-day temporary share links instead. Binary raw file bytes are available when format=binary is specified.

## 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": {
      "to": {
       "type": "string",
       "description": "png, jpg, webp, gif, tiff, bmp, ico, avif"
      },
      "fit": {
       "type": "string",
       "description": "contain (default), cover, fill"
      },
      "url": {
       "type": "string",
       "description": "https URL of the file (max 20 MB)"
      },
      "store": {
       "type": "boolean",
       "description": "Return 7-day share links instead of base64 (+$0.001); automatic above 3 MB"
      },
      "width": {
       "type": "integer"
      },
      "format": {
       "type": "string",
       "description": "binary = raw file bytes (single output)"
      },
      "height": {
       "type": "integer"
      },
      "rotate": {
       "type": "integer",
       "description": "90, 180, 270"
      },
      "quality": {
       "type": "integer"
      },
      "filename": {
       "type": "string",
       "description": "Name with extension, helps detect the type"
      },
      "grayscale": {
       "type": "boolean"
      },
      "file_base64": {
       "type": "string",
       "description": "Or the file as base64 / data URI"
      }
     }
    }
   },
   "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/agentrxi-image-convert-resize-ce089cfd/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentrxi.com](https://www.zero.xyz/host/agentrxi.com/llms.txt)
