SmallPict LogoSmallPict
Developer Reference

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

01

Create an account

Sign up for a free developer account to get your initial monthly quota.

02

Generate API Key

Visit the dashboard and create a scoped key for production or WordPress.

03

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.

HeaderActive
Authorization: Bearer sp_sdk_...
Manage API Keys in Dashboard

Interactive Playground

Inspect real-world request shapes and response payloads for our most common endpoints.

REST API 99.99% Uptime
POST/v1/optimize

Smart lossless or lossy quantization to AVIF/WebP with auto-negotiation.

  • WebP & AVIF conversion
  • EXIF metadata removal
POST/v1/convert

Direct format transcoding across PNG, JPG, WebP, and AVIF formats.

  • Preserves alpha transparency
  • ICC color profile support
POST/v1/resize

Responsive 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
    }
  }'
Transform Parameters

Ready to integrate?

Get your API key in seconds and start compressing images programmatically today.