Build with the SmallPict API.
Integrate powerful image processing into your workflow. Compress, convert, and scale millions of assets with a single, high-performance endpoint.
Quickstart Guide
Create an account
Sign up for a free developer account to get your initial monthly quota.
Generate API Key
Visit the dashboard and create a scoped key for production or WordPress.
Process an Image
Send your first POST request with an image URL or binary to receive an optimized AVIF or WebP.
HMAC-SHA256 Auth
Every API request requires an HMAC-SHA256 signature calculated from the HTTP method, path, timestamp, and body hash to prevent replay attacks.
Authorization: Bearer sp_sdk_...Interactive Playground
Inspect real-world request shapes and response payloads for our most common endpoints.
/v1/optimizeSmart lossless or lossy quantization to AVIF/WebP with auto-negotiation.
- WebP & AVIF conversion
- EXIF metadata removal
/v1/convertDirect format transcoding across PNG, JPG, WebP, and AVIF formats.
- Preserves alpha transparency
- ICC color profile support
/v1/resizeResponsive thumbnail and banner generation with smart dimension constraints.
- Width & Height scaling
- Aspect ratio preservation
curl -X POST https://api.smallpict.app/v1/optimize \
-H "X-API-Key: sp_sdk_9a8b7c6d5e4f..." \
-H "X-Timestamp: 1716301234" \
-H "X-Signature: 3a9f8b2c4d6e..." \
-H "Content-Type: application/json" \
-d '{
"filename": "hero.jpg",
"mime_type": "image/jpeg",
"filesize": 2508800,
"options": {
"format": "avif",
"quality": 80,
"max_width": 800
}
}'Ready to integrate?
Get your API key in seconds and start compressing images programmatically today.
