TinyPNG

Connect your AI agents to TinyPNG.

Authentication: API key. See Magic Link for the runtime auth flow.

Sample use cases

  • Compress https://cdn.acme.com/blog/header.png and report the size reduction.
  • Resize the product photo at https://cdn.acme.com/p/1042.jpg to 800 by 800 pixels.
  • Convert the homepage hero image to WebP.

Available Tools

compress_image

Compress a PNG, JPEG, WebP or AVIF with TinyPNG, either from base64 bytes (image_base64) or from a public URL (image_…

get_compressed_image

Download a compressed image by output_id and return it base64-encoded. Use this after compress_image when no resize o…

resize_image

Resize a compressed image and return the result base64-encoded. Use compress_image first to get an output_id. resize_…

convert_image

Convert a compressed image to another format (WebP, JPEG, PNG, AVIF, or ’/’ for whichever is smallest) and return i…