# Tanod imagepeek Image Resize

> Tanod imagepeek Image Resize is a paid API for AI agents from tanod.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-11).

Resizes an image from a URL or base64 input to specified dimensions using configurable fit modes, resampling filters, and output formats.

## Facts

- Endpoint: POST https://tanod.dev/v1/image/resize?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/tanod-imagepeek-image-resize-098135f0
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_nJYmAbqXFY625BJl5w7Is

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 tanod-imagepeek-image-resize-098135f0 -d '<json body>'
```

Example prompt: Resize this image (https://example.com/photo.jpg) to 800 pixels wide and 600 pixels tall using cover fit so it fills the frame exactly, and output it as a WebP at quality 85.

## When to prefer this

Choose this endpoint when you need to resize, scale, or reformat an image from a public URL or base64 source with fine-grained control over fit mode, resampling filter, output format, and encoding quality. It is ideal for thumbnail generation, responsive image preparation, format conversion during resize, and cover/contain cropping — all in a single API call. Prefer it over general-purpose image CDNs when you need on-demand programmatic control and payment-per-call pricing rather than a subscription.

## Known failure modes

- Image URL is not publicly accessible or returns a non-2xx status — request fails
- Image exceeds 10 MB limit — rejected with size error
- Invalid width/height values outside 1–32768 range — validation error
- Unsupported image format provided as input — processing error
- scale factor outside 0–10 range — validation error
- background color string does not match expected hex pattern — validation error
- Both url and image_base64 omitted — missing input error

## How this service works

One MCP server and HTTP API with 193 pay-per-call tools for AI agents (security checks, chain data, finance, aviation, documents), plus free uptime and MikroTik monitoring and 130+ free browser tools. No signup; free daily tier. Operated by an AI.

## Output

Returns the resized image as binary data in the requested output format (e.g. PNG, JPEG, WebP, AVIF). The image is transformed according to the specified fit mode (inside, contain, cover, or fill), dimensions or scale factor, resampling algorithm, and encoding settings such as quality and lossless compression.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "fit": {
   "enum": [
    "inside",
    "contain",
    "cover",
    "fill"
   ],
   "type": "string",
   "default": "inside",
   "description": "With width and height: inside (default; fit within, keep aspect), contain (fit within, padded to the exact box), cover (fill the box, centre crop) or fill (stretch)."
  },
  "url": {
   "anyOf": [
    {
     "type": "string",
     "maxLength": 2048
    },
    {
     "type": "null"
    }
   ],
   "default": null,
   "description": "Public http(s) URL of the image (at most 10 MB; private, internal and IP-literal hosts are refused); or use image_base64."
  },
  "scale": {
   "anyOf": [
    {
     "type": "number",
     "maximum": 10,
     "exclusiveMinimum": 0
    },
    {
     "type": "null"
    }
   ],
   "default": null,
   "description": "Instead of width/height."
  },
  "width": {
   "anyOf": [
    {
     "type": "integer",
     "maximum": 32768,
     "minimum": 1
    },
    {
     "type": "null"
    }
   ],
   "default": null,
   "description": "Target width in pixels (1-32768); give width, height, both, or scale."
  },
  "format": {
   "anyOf": [
    {
     "enum": [
      "png",
      "jpeg",
      "webp",
      "gif",
      "tiff",
      "bmp",
      "ico",
      "avif"
     ],
     "type": "string"
    },
    {
     "type": "null"
    }
   ],
   "default": null,
   "description": "Output format (default: the input's; ICO in, PNG out)."
  },
  "height": {
   "anyOf": [
    {
     "type": "integer",
     "maximum": 32768,
     "minimum": 1
    },
    {
     "type": "null"
    }
   ],
   "default": null,
   "description": "Target height in pixels (1-32768)."
  },
  "output": {
   "enum": [
    "base64",
    "url"
   ],
   "type": "string",
   "default": "base64",
   "description": "base64 (default): the file comes back inline as base64. url: the file is stored for 24 hours and the reply carries a download link (url, expires_at, bytes, content_type, sha256) instead of the base64, which keeps the file out of your context window."
  },
  "quality": {
   "anyOf": [
    {
     "type": "integer",
     "maximum": 100,
     "minimum": 1
    },
    {
     "type": "null"
    }
   ],
   "default": null,
   "description": "Encoder quality 1-100 (lossy formats)."
  },
  "upscale": {
   "type": "boolean",
   "default": false,
   "description": "Allow output larger than the input."
  },
  "lossless": {
   "type": "boolean",
   "default": false,
   "description": "webp output: lossless 
… (truncated)
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "bytes": 1386,
  "input": {
   "bytes": 2183,
   "width": 256,
   "format": "png",
   "frames": 1,
   "height": 256,
   "animated": false,
   "has_alpha": true
  },
  "notes": [],
  "width": 64,
  "format": "png",
  "height": 64,
  "source": {
   "url": "https://python-pillow.org",
   "library": "Pillow",
   "license": "MIT-CMU (HPND)"
  },
  "final_url": "https://tanod.dev/icon.png",
  "operation": "resize",
  "source_url": "https://tanod.dev/icon.png",
  "data_base64": "iVBORw0KGgoAAAAN... (trimmed: 1,848 base64 characters in the reply)",
  "content_type": "image/png",
  "upscale_prevented": false
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/tanod-imagepeek-image-resize-098135f0/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from tanod.dev](https://www.zero.xyz/host/tanod.dev/llms.txt)
