Compress images programmatically using the TinyCompress REST API. Free tier: 50 requests/day per API key. Free
Include your API key in every request via the X-API-Key header:
Compress a PNG, JPEG, or WebP image and receive a download URL.
| Parameter | Type | Required | Description |
|---|---|---|---|
| image | file | Yes | Image file (PNG, JPEG, WebP, max 10MB) |
Example Request (curl):
Success Response (200):
Check your API quota remaining for today.
Response:
Register for a free API key. You can also use the web form.
| Parameter | Type | Required | Description |
|---|---|---|---|
| name | string | Yes | Your name |
| string | Yes | Your email address |
| HTTP Code | Meaning |
|---|---|
| 200 | Success |
| 400 | Bad request (missing or invalid parameters) |
| 401 | Missing API key |
| 403 | Invalid or revoked API key |
| 413 | File too large |
| 415 | Unsupported file type |
| 429 | Rate limit or daily quota exceeded |
| 500 | Compression failed (server error) |
| 503 | API disabled |