image_convert
Convert an image to PNG, JPEG, WebP, GIF, TIFF, BMP, ICO, or AVIF and return it in the selected target format.
Instructions
imagepeek: Convert an image to PNG, JPEG, WebP, GIF, TIFF, BMP, ICO or AVIF. To shrink the file use image_compress. Returns the image in the target format. auto_orient=false uses stored axes. ico_size can extract an exact square from an ICO as PNG (missing size: 422). JPEG/BMP flatten alpha onto background (default white). 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. Re-encoding strips EXIF, GPS, XMP and 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-convert-api.html
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"to": "<to>"
},
"name": "image_convert"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Target format. | |
| 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. | |
| output | No | base64 (default): inline. url: stored for 24 hours; link, metadata. | base64 |
| quality | No | Quality for lossy formats. | |
| ico_size | No | Exact embedded square ICO size in pixels; requires to="png". | |
| lossless | No | webp only. | |
| optimize | No | png only. | |
| background | No | Alpha fill for jpeg/bmp (default white). | |
| auto_orient | No | Apply EXIF orientation first. | |
| progressive | No | jpeg only. | |
| 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 |
|---|---|---|---|
| url | No | ||
| bytes | No | ||
| error | No | Only on an error result: an object {code, message}, or the reason string of an x402 PaymentRequired object. | |
| input | No | ||
| notes | No | ||
| width | No | ||
| format | No | ||
| height | No | ||
| sha256 | No | ||
| source | No | ||
| final_url | No | ||
| operation | No | ||
| expires_at | No | ||
| source_url | No | ||
| data_base64 | No | ||
| content_type | No |