imagepeek: strip an image's metadata (EXIF, GPS, XMP)
image_strip_metadataStrip EXIF, GPS, XMP, IPTC and comment metadata from images to protect privacy. Returns the image without metadata, with pixel data unchanged for JPEG, PNG, WebP and GIF.
Instructions
imagepeek: Strip an image's EXIF, GPS, XMP, IPTC and comment metadata. To read the metadata use image_metadata. Returns the image without EXIF (GPS included), XMP, IPTC, comments and text chunks: JPEG, PNG, WebP and GIF are stripped losslessly at the byte level (pixel data unchanged), TIFF, BMP, ICO and AVIF re-encoded; an EXIF rotation is baked into the pixels first unless auto_orient is false. The result is re-checked to hold no metadata; removed lists what went. 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/strip-image-metadata-api.html
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| 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): 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 |
| keep_icc | No | Keep the ICC colour profile (default false: removed too). | |
| auto_orient | No | Bake a non-1 EXIF orientation into the pixels (re-encode). | |
| 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 | ||
| method | No | ||
| sha256 | No | ||
| source | No | ||
| removed | No | ||
| kept_icc | No | ||
| lossless | No | ||
| final_url | No | ||
| operation | No | ||
| expires_at | No | ||
| source_url | No | ||
| after_bytes | No | ||
| data_base64 | No | ||
| before_bytes | No | ||
| content_type | No |