50% off · Lifetime closes Nov 30

Get the deal

Image compression API comparison

An image compression API comparison puts six APIs side by side: TinyPNG, Kraken.io, ShortPixel, Cloudinary, CloudConvert and Blinkimg. Each one is checked on its free tier, price, formats, options, SDKs, limits and how long it keeps your files. Where a vendor states nothing, the table says so.

At a glance

The image compression API comparison at a glance

The three points developers filter by first. Blinkimg is the only one of the six with a documented target size, and it has no SDK yet.

APIFree tierExact size targetFiles kept
Blinkimg500 credits a monthYes: targetBytes, with minBytes as a floorDeleted within 24 hours
TinyPNG (Tinify)500 compressions a monthNot statedResult kept 8 hours
Kraken.io100 MB testing quotaNot statedResults kept 1 hour
ShortPixel100 credits a monthNot statedKept 2 hours
Cloudinary25 credits a month, sharedNot statedA storage service: kept until you delete; an automatic deletion period is not stated
CloudConvert10 conversions a dayNo"Deleted immediately afterwards"; at the latest after 24 hours, by its privacy policy

Free tier, size target and retention for six APIs, from each vendor's own pages and docs, read on 30 November 2026; Blinkimg's from the limits its API enforces.

Free tier and price

What each API costs

Most of the six bill per image. Kraken.io bills the data you send, and Cloudinary draws every service from one credit pool. ShortPixel’s prices were sale prices on the day we read them.

APIFree tierPaid price
Blinkimg500 credits a month (500 compressions or 250 conversions); 30 MB a file, 1 GB on a paid keyPacks that never expire: 5k $9, 25k $35, 100k $119. Pro $39 a year (+2,500 a month), Pro Max $99 (+9,500), Agency $249 (+29,500). Compress 1 credit, convert 2, resize free
TinyPNG (Tinify)500 compressions a month; files up to 500 MB and 256 megapixels$0.009 a compression up to 10,000 a month, $0.002 above. A conversion and a resize each count as one more compression
Kraken.io100 MB testing quota, counted in data, not images. File size limit: not statedBilled by the image data you send each month. Plan prices: not confirmed in our read. Conversion charge: not stated
ShortPixel100 credits a month. File size limit: not statedA credit per image or thumbnail cut by at least 5%, none below that. Black Friday prices on 30 November 2026: unlimited $6.24 a month billed yearly; one-time packs $19.99 for 30,000 to $99 for 250,000. WebP and AVIF cost: not stated
Cloudinary25 credits a month, one credit being 1,000 transformations, 1 GB storage or 1 GB bandwidth; images up to 10 MBOne credit pool for every service; compressing and converting are both transformations. Paid plan prices: not confirmed in our read
CloudConvert10 conversions a day, reset daily; files up to 1 GB; 5 concurrent tasks1,000 credits $17 as a package that never expires, or $9 a month as a subscription. A credit is about a minute of conversion time, at least 1 a conversion

Free tiers and paid prices in USD, from each vendor's own pages and docs, read on 30 November 2026; Blinkimg's from the limits its API enforces.

Formats and options

Formats, quality and size targets

All six write AVIF and WebP. They differ on HEIC input, on how much of the quality you control, and on whether you can ask for a file size.

APIFormatsOptionsExact size target
BlinkimgAVIF, WebP, JPEG and PNG out; HEIC in, to any of the fourQuality Auto or 1 to 100; resize by width and height; metadata stripped unless kept. No lossless modeYes: targetBytes, with minBytes as a floor
TinyPNG (Tinify)AVIF, JPEG XL, WebP, JPEG and PNG out; HEIC in, compressed to JPEG onlyQuality: not stated; resize by scale, fit, cover or thumb; metadata stripped unless you keep copyright, creation or location. Lossless: not statedNot stated
Kraken.ioAVIF, WebP, JPEG, PNG and GIF out. HEIC in: not confirmed in our readLossy flag and quality 1 to 100; resize in 8 modes; metadata stripped unless preserve_meta. A lossless mode is documentedNot stated
ShortPixelWebP and AVIF out through convertto. HEIC in: not statedLossy, glossy or lossless, no numeric quality stated; resize outer, inner or AI smart crop; EXIF removed by defaultNot stated
Cloudinaryf_auto delivers AVIF, JPEG XL or WebP, but no automatic AVIF under 5,000 pixels; HEIC inq_auto picks the quality; WebP at quality 100 is lossless; metadata stripped from transformed files. Resize: not confirmed in our readNot stated
CloudConvertAVIF and WebP out; HEIC and JPEG XL in onlyQuality on JPEG and WebP output, none on AVIF; resize by width, height and fit; strip metadata on request; compresses JPEG and PNG only. No lossless switchNo

Formats, options and size targets, from each vendor's own pages and docs, read on 30 November 2026; Blinkimg's from the limits its API enforces.

For your code

SDKs, sign-in and rate limits

TinyPNG and CloudConvert each list six official libraries. Blinkimg has no SDK yet: any HTTP client is the integration, and AI agents reach it through an MCP server.

APISDKs and CLISign-in and limits
BlinkimgNo SDK yet: HTTPS and JSON with an OpenAPI 3.1 document. An MCP server for AI agentsBearer bk_ API key; 120 writes and 1,200 reads a minute; batches of 50; Idempotency-Key
TinyPNG (Tinify)Ruby, PHP, Node.js, Python, Java and .NET libraries. Official CLI: not statedHTTP Basic, the key as the password; no published rate, 429 without Retry-After; one monthly limit across all keys
Kraken.ioSDKs: not confirmed in our read. Official CLI: not statedapi_key and api_secret in the JSON body, POST only. Rate limit: not stated
ShortPixelClient libraries and CLI: not confirmed in our readA key parameter in the request; 100 URLs a call; per-minute rate not stated
CloudinarySDKs: not confirmed in our read. CLI: cloudinary-cliAPI key and secret, signed requests; Admin API 500 requests an hour on Free
CloudConvertPHP, Node.js, Python, Ruby, Java, .NET SDKs, a Laravel package and a CLI; a free sandboxBearer API key with scopes, or OAuth 2.0; dynamic rate limits, 429 with Retry-After

Client libraries, authentication and rate limits, from each vendor's own pages and docs, read on 30 November 2026; Blinkimg's from the limits its API enforces.

Privacy

How long each API keeps your images

From 1 hour at Kraken.io to storage until you delete it at Cloudinary. Each vendor states its own clock.

APIFiles kept
BlinkimgDeleted within 24 hours
TinyPNG (Tinify)Result kept 8 hours
Kraken.ioResults kept 1 hour
ShortPixelKept 2 hours
CloudinaryA storage service: kept until you delete; an automatic deletion period is not stated
CloudConvert"Deleted immediately afterwards"; at the latest after 24 hours, by its privacy policy

How long results stay on the vendor’s servers, from each vendor's own pages and docs, read on 30 November 2026; Blinkimg's from the limits its API enforces.

Be sure first

Where Blinkimg falls short

Four points where another API on this list does more.

  • No SDK yet

    Plain HTTPS and JSON with an OpenAPI 3.1 document. TinyPNG and CloudConvert ship six official SDKs each.

  • No lossless mode

    Quality runs from 1 to 100 or Auto. ShortPixel offers a lossless mode, and Cloudinary writes lossless WebP at quality 100.

  • No webhooks yet

    You poll the job until it has succeeded. CloudConvert signs its webhooks with HMAC SHA-256.

  • 30 MB files on a free key

    A paid key takes 1 GB. TinyPNG takes files up to 500 MB, and CloudConvert 1 GB on its free plan.

How to choose

How to choose an image compression API

Four checks, in the order that rules APIs out fastest.

  1. Step 1

    Count your images and their sizes

    Most APIs bill per image; Kraken.io bills the data you send and Cloudinary a shared credit pool. Your monthly count and average file size decide the price.

  2. Step 2

    List the formats you need

    Check AVIF and WebP output and HEIC input. TinyPNG turns HEIC into JPEG only; CloudConvert reads HEIC but sets no AVIF quality.

  3. Step 3

    Check the options your pages need

    A quality number, a resize, metadata rules and, for upload forms, a size target. Among these six, only Blinkimg documents an exact byte target.

  4. Step 4

    Read the retention and the client tools

    Results stay from 1 hour at Kraken.io to storage until you delete at Cloudinary. Pick SDKs if you want them; Blinkimg has none yet.

Weighing one API against Blinkimg? Read the CloudConvert alternative, the Kraken.io alternative and the TinyPNG alternatives, or see every image compressor alternative. Ready to build? The Blinkimg image API has the endpoints and a curl example, and the image compression MCP server connects it to Claude, ChatGPT or Cursor.

Sources

Where every vendor fact comes from

The pages we read, so you can check each cell yourself. Prices and limits change; the date is on every one.

Questions, answered

Every vendor fact comes from its own pages; every Blinkimg one from the limits its API enforces.

What is an image compression API?

An image compression API is a web service your code sends an image to and gets a smaller file back, often converted to WebP or AVIF and resized on the way. It runs on the vendor’s servers, so it works from any language and keeps the work off your own machines.

Which image compressor API has the biggest free tier?

It depends on the unit. TinyPNG gives 500 compressions a month and Blinkimg 500 credits a month, which are 500 compressions. ShortPixel gives 100 credits a month, CloudConvert 10 conversions a day, Kraken.io a 100 MB testing quota, and Cloudinary 25 credits shared across all its services.

Which image compression API can hit an exact file size?

Among TinyPNG, Kraken.io, ShortPixel, Cloudinary, CloudConvert and Blinkimg, only Blinkimg documents one: its targetBytes option returns a file at or under the size, and minBytes sets a floor. The other five state no target-size option in their docs, read on 30 November 2026.

How do I compress an image with an API?

Send the image with your key and read back the result. With Blinkimg that is three calls: ask for an upload slot and PUT the file, create a job with options such as format and targetBytes, then fetch the result link once the job has succeeded.

Which image APIs write AVIF?

All six write AVIF: TinyPNG, Kraken.io, ShortPixel, Cloudinary, CloudConvert and Blinkimg. The control differs. CloudConvert sets no AVIF quality, Cloudinary skips automatic AVIF for images under 5,000 pixels, and Blinkimg takes Auto or a quality from 1 to 100.

Does the Blinkimg API have an SDK or a lossless mode?

Neither yet. The Blinkimg API is plain HTTPS and JSON with an OpenAPI 3.1 document, so any HTTP client works, and it has no lossless option. TinyPNG and CloudConvert each list six official SDKs, and ShortPixel offers a lossless mode.

How long do image compression APIs keep my files?

Kraken.io keeps results 1 hour, ShortPixel 2 hours and TinyPNG 8 hours. CloudConvert says files are deleted right after processing and at the latest after 24 hours. Blinkimg deletes files within 24 hours. Cloudinary is a storage service, so files stay until you delete them.

Still have a question?

Ask us. A person reads it.

Contact us

Page updated

What people say

Every rating counts in the average, low ones too. We remove only spam, abuse and fakes.

Average rating

5.0

42 ratings, 8 written

  • 540
  • 42
  • 30
  • 20
  • 10

How did it go?

One tap. No account needed.

Filter:

Written reviews