imagepeek: make thumbnails of an image
image_thumbnailGenerate 1-8 thumbnails from one image in a single call, using cover or contain sizing. Reads common formats and returns inline base64 or a 24-hour URL.
Instructions
imagepeek: Make 1-8 thumbnails of an image in one call. For one exact resize use image_resize. Returns 1-8 thumbnails in one call, each sizes entry {width, height} (at most 4096), by fit cover (smart centre crop with gravity, default) or contain; not upscaled unless upscale. The 15 MB output cap covers all of them together. The images come back in images. Reads PNG, JPEG, WebP, GIF, TIFF, BMP, ICO and AVIF; other formats and images over 40 megapixels are refused (not charged). Output: base64 data_base64, without EXIF, GPS, XMP or IPTC; over 15 MB or 50 megapixels is a 413 (not charged). Images are not logged; a result is kept only with output "url" (24 h). Typically 0.5-2 s. Price: USD 0.002. Free: 3 imagepeek calls per IP per UTC day. Docs: https://tanod.dev/learn/image-thumbnail-api.html
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fit | No | cover (default: fill each size, cropping the overflow) or contain (fit inside, no crop). | cover |
| url | No | Public http(s) URL of the image (at most 10 MB; private, internal and IP-literal hosts are refused); or use image_base64. | |
| sizes | Yes | 1-8 {width, height}. | |
| format | No | Output format (default: the input's; ICO in, PNG out). | |
| output | No | 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. | base64 |
| gravity | No | cover: the part to keep (default center; north, southeast, ...). | center |
| quality | No | Encoder quality 1-100 (lossy formats). | |
| upscale | No | Allow thumbnails larger than the input (default false). | |
| auto_orient | No | Apply the EXIF orientation first. | |
| image_base64 | No | The image as standard or url-safe base64 (at most 10 MB decoded; a data:image/...;base64, prefix is fine); or use url. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | Only on an error result: an object {code, message}, or the reason string of an x402 PaymentRequired object. | |
| input | No | ||
| notes | No | ||
| images | No | ||
| source | No | ||
| final_url | No | ||
| operation | No | ||
| source_url | No | ||
| total_bytes | No |