Skip to navigation

TinyPNG

Connect your AI agents to TinyPNG.
Ready to connect

Connects with credentials the end user enters, such as an API key, so you don’t need to register an OAuth app.

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_url) , pass exactly one.

get_compressed_image

Download a compressed image by output_id and return it base64-encoded.

resize_image

Resize a compressed image and return the result base64-encoded.

convert_image

Convert a compressed image to another format (WebP, JPEG, PNG, AVIF, or ’/’ for whichever is smallest) and return it base64-encoded.