Skip to main content
Every tinypng.api.* operation is listed below with parameter shapes and return types from the plugin Zod schemas.
New to Corsair? See API access, authentication, and error handling.

Account

getCompressionCount

account.getCompressionCount Get the number of compressions made this calendar month Risk: read
Input: empty object Output

Images

compressAndStoreInAzure

images.compressAndStoreInAzure Compress an image and upload the result to Azure Blob Storage through a SAS URL Risk: write
Input
Output

output

images.output Download a compressed image by its Tinify image ID as base64 Risk: read
Input Output

shrink

images.shrink Compress an image from a URL or base64 bytes and return its Tinify image ID (uses one compression) Risk: write
Input
Output

transform

images.transform Resize, convert, fill the background of, or preserve metadata on a compressed image, optionally storing it on S3 or GCS Risk: write
Input
Output: object