Skip to content
smallPict
Start free

Build with the SmallPict Platform.

Integrate AVIF and WebP image optimization into WordPress, custom backends and cloud microservices.

Quickstart guide

  1. Get API credentials

    Sign in to your dashboard to generate your pair of X-API-Key and Secret Key.

  2. Install official SDK or call API

    Use our official library for your stack (Node, Go, Python, PHP, Java, Rust, Ruby) with built-in HMAC signing.

  3. Optimize & serve at edge

    Send image buffers or URLs to receive optimized AVIF/WebP binaries cached globally across our edge network.

Full walkthrough →

HMAC-SHA256 auth

Every request requires an HMAC-SHA256 signature calculated from the HTTP method, path, timestamp, and body hash to prevent replay and tampering attacks.

X-API-Key: sp_sdk_9a8b7c6d…
X-Timestamp: 1716301234
X-Signature: 3a9f8b2c4d6e8a…
Manage API keys in dashboard →

Official SDK ecosystem

Libraries with HMAC signing, automatic idempotency keys, retries with exponential backoff and jitter, and masked credentials in logs.

Simple to integrate. Engineered for scale.

With plain cURL requests or our typed SDKs, integrating SmallPict takes minutes, with request signing built in.

  • Automatic HMAC-SHA256 signing & timestamp drift check
  • Automatic UUID v4 idempotency keys, so a retried request is not charged twice
  • Global edge delivery through the smallPict CDN
curl -X POST https://api.smallpict.app/v1/optimize \  -H "X-API-Key: sp_sdk_9a8b7c6d5e4f3a2b1c0d9e8f..." \  -H "X-Timestamp: 1716301234" \  -H "X-Signature: 3a9f8b2c4d6e8a0f1b3c5d7e9f2a..." \  -H "Content-Type: application/json" \  -d {  "filename": "hero.jpg",  "mime_type": "image/jpeg",  "filesize": 1654200,  "options": {    "format": "avif",    "quality": 80,    "strip_metadata": true  }}'
Signed with HMAC-SHA256

Need help with a custom setup?

Our engineering team is available for custom multi-region setups, private VPC endpoints, and setups with your own storage and CDN.