---
name: nanoapi.org
description: nanoapi.org exposes a single image resizing endpoint that accepts PNG, JPEG, WebP, or AVIF images and returns a resized PNG binary at specified pixel dimensions. It is a narrow, single-purpose utility with no additional image processing capabilities.
host: nanoapi.org
---

# nanoapi.org

nanoapi.org is a lightweight API host focused exclusively on image resizing. It serves agents and applications that need to programmatically resize images to exact pixel dimensions, returning results as PNG binaries. It does not offer format conversion, cropping, filtering, or any other image manipulation beyond dimensional resizing.

## When to use this host

Use this host when an agent needs to resize an image to exact pixel dimensions and a PNG output format is acceptable. It supports PNG, JPEG, WebP, and AVIF inputs up to 10MB. Do not use it for format conversion without resizing, image cropping, compositing, filtering, or files exceeding 10MB — use a dedicated image transformation service such as Cloudinary, Imgix, or Sharp-based pipelines for those cases. Because this host has only one skill, it is not suitable for multi-step image processing workflows.

## Capabilities

### Image Resizing

Accepts an image file (PNG, JPEG, WebP, or AVIF) along with target width and height values, and returns a resized PNG binary suitable for thumbnails, responsive assets, or pre-upload optimization.

- **`resize-image`** — Resizes a PNG, JPEG, WebP, or AVIF image to specified pixel dimensions and returns the result as a PNG binary.

## Skill reference

### `resize-image`

**Image Resize** — Resizes a PNG, JPEG, WebP, or AVIF image to specified pixel dimensions and returns the result as a PNG binary.

*Use when:* Use when an agent needs to resize an image to exact pixel dimensions for thumbnails, social media assets, responsive web images, or bandwidth reduction before uploading or displaying.

*Not for:* Do not use for image format conversion without resizing, image cropping, or processing files larger than 10MB; use a dedicated image transformation service for those cases.

**Inputs:**

- `image` (string, required) — Image file to resize (PNG, JPEG, WebP, or AVIF), uploaded as binary in multipart/form-data. Maximum file size is 10MB.
- `width` (integer, required) — Target width in pixels. Must be between 1 and 4096.
- `height` (integer, required) — Target height in pixels. Must be between 1 and 4096.

**Returns:** Returns a raw PNG binary of the image resized to the requested width and height, with Content-Type image/png.

**Example:** `POST https://nanoapi.org/image/resize
Content-Type: multipart/form-data

--boundary
Content-Disposition: form-data; name="image"; filename="photo.jpg"
Content-Type: image/jpeg
<binary image data>
--boundary
Content-Disposition: form-data; name="width"
1080
--boundary
Content-Disposition: form-data; name="height"
1080
--boundary--`

---
