Skip to main content

Overview

SmartPNG Integration API is a synchronous image compression API designed for backend services, CMS plugins, and automation flows. It exposes three endpoints:

Quick facts

Typical flow

  1. Create a SmartPNG account and generate an API key from the dashboard.
  2. Call POST /validate to confirm the key and available credits.
  3. Call POST /compress with multipart/form-data.
  4. Decode the returned compressed_data field and write it back to a file or upload target.

Website setup guides

API reference