Developers
MiniPic for developers
MiniPic offers two developer tools: an image compression API and a VS Code extension. The API is compatible with the authentication and response format of popular compression APIs, with 500 free calls a month after sign-up, and the extension compresses images right inside your editor.

Image compression API
Image compression API: swap the endpoint and key, and you’re in.
Compatible with the authentication and response format of popular compression APIs; 500 free calls a month after sign-up, billed only for successful compressions.
# Compress a PNG: HTTP Basic auth, username is always api, password is your API key
curl -i https://api.minipic.cn/shrink \
--user api:YOUR_API_KEY \
--data-binary @input.png
# Returns 201 Created on success; download the compressed image from the result link in the responseVS Code extension
VS Code extension: compress project images without leaving your editor.
Right-click to compress one image, a selection or a whole folder, or convert to WebP and update the references in your code. The extension is free; it uses your API quota.
- Right-click to compress
- Convert to WebP and update references
- Auto compression from the status bar
- View usage
One capability, many ways
Same capability, wherever you work.
Web, desktop app, API or VS Code extension: pick whatever fits the way you work.
| Capability | Web | Desktop app | API | VS Code extension |
|---|---|---|---|---|
| Batch compression | Compress online | Batches in the workspace | /shrink, /v1/compress | Right-click to compress |
| Convert to WebP | “Convert all to WebP” in the toolbar | Output format; right-click “Convert to WebP and compress” | format=webp, convert | “Convert to WebP and Update References” |
| Auto compression | Not available | Hot folder (Pro) | Not available | Auto compression from the status bar |
| HEIC to JPG | Converted automatically on drop | Choose JPEG as the output | Upload HEIC, get JPEG automatically | Output format jpeg |
| Quality modes | Smart / High fidelity / Maximum | Three modes, plus Custom precision control (Pro) | smart / high / extreme / 1-100 | smart / high / extreme / lossless |
Docs & resources
Everything you need to integrate, in one place.
API docs
Quick start, authentication, every endpoint, quotas and rate limits, billing and error codes.
Read the API docsIntegration guide
curl, Node and Python examples to get your first request running in minutes.
View the integration guideMigrating from TinyPNG
See how the two differ, and how to switch over by swapping the endpoint and key.
TinyPNG alternative in ChinaFAQ
Is there a free API quota?
You get 500 calls a month when you sign up; Pro includes 1,000 a month, and Team 3,000 a month (shared across the team). Beyond that, you use prepaid resource packs.
How do I get an API key?
Sign up, sign in, and create and manage your API keys in the console.
Does the VS Code extension cost anything?
The extension is free to install; compressing uses your API quota.
Can I call it from a build pipeline or a server?
Yes. You can call the API from any environment that can make HTTP requests.