Skip to main content
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. On Corsair up to about 700 KB comes back inline as base64 and a larger image comes back as fileId, a Files id; without a host that keeps files the image comes back inline as base64 up to 100 MB, or contentOmitted beyond it. 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. A returned image comes back like images.output: inline up to about 700 KB on Corsair, as fileId beyond it. Risk: write
Input
Output: object