Developer API: Automate your AVIF, WebP, JPEG and PNG compression workflow

Hook up your server to optimize all your AVIF, WebP, JPEG and PNG images on the fly. Join over 50.000 companies and developers around the world who are using the API. Enter your name and email address to retrieve your API key and get started now.

Get your API key

500 Free compressions each month. No payment method required.

Getting started

Once you retrieve your key, you can immediately start shrinking images. Official client libraries are available for Ruby, PHP, Node.js, Python, Java and .NET. Additionally, you can create your integration with any HTTP(S) client.

If you have a WordPress website, you can effortlessly compress your WebP, JPEG, and PNG images using the WordPress plugin.

Feel free to check out the third-party plugins if you haven't found what you need. The Tinify community has used the Developer API to create many third-party add-ons for popular platforms.

When creating your integration in HTTP(S), the server will compress your image and respond with a URL where you can grab the result.

curl --user api:YOUR_API_KEY \
--data-binary
@unoptimized.png -i https://api.tinify.com/shrink

6,512,537,986

Total compressed & converted images

Frequently asked questions

You can sign up for the developer API here by entering your name and email address. After registration, an activation email will be sent to your email address. By simply clicking the button within this email, you will be logged in and directed to the dashboard right away. The API key will then be available on your API dashboard at https://tinify.com/dashboard/api.