# Vextorium Image Convert

> Vextorium Image Convert is a paid API for AI agents from api.vextorium.com, paid per call via x402, $0.004/call, status unknown (last checked 2026-10-30).

Converts and compresses images (URL or base64) to WebP, JPEG, or PNG with quality and dimension control, returning base64 and data URI output

## Facts

- Endpoint: POST https://api.vextorium.com/v1/image-convert?utm_source=zero.xyz
- Price: $0.004/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-30
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/vextorium-image-convert-63abcb69
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_UFJGE7Nj9sguW6hdzNTLv

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 vextorium-image-convert-63abcb69 -d '<json body>'
```

Example prompt: Convert this image at https://example.com/photo.jpg to WebP format at quality 85 and width 600, and give me back the base64 and data URI.

## When to prefer this

Choose this endpoint when you need server-side image format conversion (to WebP, JPEG, or PNG) with compression and optional resizing, especially when you want to receive the result as base64/data URI without storing a file. Ideal for pipelines that need to reduce image file size before embedding in web pages or APIs, and when paying per-call via USDC x402 is acceptable.

## Known failure modes

- Invalid or unreachable image URL returns an error
- Unsupported image format in source may cause processing failure
- Quality value outside 10-100 range may be rejected or clamped
- Malformed base64 input results in a decode error
- Missing required body fields (type, method, bodyType, body) causes validation error
- Very large images may time out or exceed processing limits

## How this service works

558 pay-per-call data APIs for AI agents: Solana and EVM on-chain data, tokenized stocks, DeFi, Hyperliquid, economy and official statistics, FX, validation, web and developer tools. Pay in USDC via x402.

## Output

Returns a JSON object containing the converted image as a base64 string and data URI, the output format, width and height dimensions, original byte size, result byte size, and the percentage of file size savings achieved.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "url": {
   "type": "string"
  },
  "high": {
   "type": "integer"
  },
  "width": {
   "type": "integer"
  },
  "format": {
   "enum": [
    "webp",
    "jpeg",
    "png"
   ],
   "type": "string"
  },
  "quality": {
   "type": "integer",
   "description": "10-100 (default 82)"
  },
  "base64_img": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "high": 158,
  "width": 300,
  "base64": "UklGRvAUAABXRUJQVlA4IOQUAADwWACdASosAZ4APmEwlEckIyIhI5YaWIAMCWVu3rlmUJFxcErf0X4AyZuAB4nHSX8wH6yfrH7s39o9UX4ge4B/Wv8V6xH+Z9hv9sfYJ/U70uf3G+Dv+1/7P9wvgJ/ZP/760D1G7U/8D9WPr3+H/Mf138n/6LzeOTf9b+VXuX/Ffr7+U/tX7gflf81f6TwV+Cf956gX4//J/8H+af999NP6T97rlXmBeoPyn/Wf4/93PMx/p/Qv6j/578yPoA/j39E/0v5u/3r4d/yvgYfe…",
  "format": "webp",
  "data_uri": "data:image/webp;base64,UklGRvAUAABXRUJQVlA4IOQUAADwWACdASosAZ4APmEwlEckIyIhI5YaWIAMCWVu3rlmUJFxcErf0X4AyZuAB4nHSX8wH6yfrH7s39o9UX4ge4B/Wv8V6xH+Z9hv9sfYJ/U70uf3G+Dv+1/7P9wvgJ/ZP/760D1G7U/8D9WPr3+H/Mf138n/6LzeOTf9b+VXuX/Ffr7+U/tX7gflf81f6TwV+Cf956gX4//J/8H+af999NP6T97rlXmBeoPyn/Wf4/93PMx/p/Qv6j/578yPo…",
  "savings_pct": 96.8,
  "bytes_result": 5368,
  "bytes_original": 166630,
  "without_metadata": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/vextorium-image-convert-63abcb69/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.vextorium.com](https://www.zero.xyz/host/api.vextorium.com/llms.txt)
