# FastX402 Image Convert

> FastX402 Image Convert is a paid API for AI agents from fastx402.tools, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-30).

Converts, resizes, and reformats images from a URL to webp/png/jpeg/avif with optional dimension constraints and quality control

## Facts

- Endpoint: GET https://fastx402.tools/image-convert?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-30
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/fastx402-image-convert-f17b96d9
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_QMIbICPXJExh7zsm3rHZH

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 fastx402-image-convert-f17b96d9
```

Example prompt: Take this image URL https://example.com/photo.png and convert it to webp format, resizing it to 800 pixels wide while keeping the aspect ratio and stripping any metadata.

## When to prefer this

Use this endpoint when you need a lightweight, no-account, pay-per-call image conversion and resizing service that supports webp, png, jpeg, and avif output, strips metadata, and returns a ready-to-use CDN URL. Ideal for AI agents that need on-the-fly image transformation without managing API keys or subscriptions.

## Known failure modes

- Invalid or unreachable image URL returns an error
- Unsupported input image format (e.g. SVG, BMP) returns a format error
- Width or height outside 1-4096 range causes a validation error
- Payment not included or insufficient USDC results in 402 Payment Required
- Network timeout fetching the remote image
- Output URL expires after the indicated expires_at timestamp

## How this service works

200 pay-per-call tools for AI agents, from $0.001 per request in USDC on Base or Solana with x402. No account, no API key.

## Output

A JSON object containing a temporary URL to the converted image, the output file size in bytes, output dimensions (width and height), format string, MIME type, expiry timestamp, original input file size, and a boolean indicating whether metadata was removed.

## 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",
     "required": [
      "url"
     ],
     "properties": {
      "fit": {
       "enum": [
        "inside",
        "cover",
        "contain",
        "fill"
       ],
       "type": "string",
       "description": "How to fit width x height, default inside (keep aspect, never enlarge)"
      },
      "url": {
       "type": "string",
       "description": "Absolute http(s) URL of a png, jpeg, webp, gif, tiff or avif image"
      },
      "width": {
       "type": "string",
       "description": "Target width in pixels, 1-4096 (optional)"
      },
      "format": {
       "enum": [
        "webp",
        "png",
        "jpeg",
        "avif"
       ],
       "type": "string",
       "description": "Output format, default webp"
      },
      "height": {
       "type": "string",
       "description": "Target height in pixels, 1-4096 (optional)"
      },
      "quality": {
       "type": "string",
       "description": "1-100 for jpeg, webp and avif, default 80"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "url": {
       "type": "string"
      },
      "bytes": {
       "type": "integer"
      },
      "width": {
       "type": "integer"
      },
      "format": {
       "type": "string"
      },
      "height": {
       "type": "integer"
      },
      "mime_type": {
       "type": "string"
      },
      "expires_at": {
       "type": "string"
      },
      "input_bytes": {
       "type": "integer"
      },
      "metadata_removed": {
       "type": "boolean"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "url": "https://workshop.tusk80.com/r/c4661ca4c5b587a6d198dcfb346c2fa2.webp",
  "bytes": 57590,
  "width": 800,
  "format": "webp",
  "height": 534,
  "mime_type": "image/webp",
  "expires_at": "2026-10-17T15:20:51.381Z",
  "input_bytes": 138435,
  "metadata_removed": true
 }
}
```

## More

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