For developers and API users

Image optimization API for developersThe whole pipeline over a REST API

Building sites for your clients' businesses? The whole pipeline over a REST API, with JSON sidecars for your own CMS: the search text plus Google's HEART framework placement notes for each image.

Close-up of website code in a text editor showing Laravel PHP syntax and HTML structure
API key
Authentication
JSON + SSE
Response format
60 a minute on Pro, 120 on Agency
Rate limit

What building it yourself costs

  • Building image compression into a custom CMS requires low-level codec libraries
  • AI vision APIs charge per-call with no bundled compression pipeline
  • Integrating separate tools for compression, conversion, and metadata is complex
  • Monitoring credit usage across multiple projects requires per-key tracking
  • Self-hosting image processing infrastructure costs more than API credits

What comes back for each image

From our sample run, a client's photo: architect, 1.9 MB to 380 KB as AVIF (works on Free). The alt text is written by AI, on Starter and up.
ItemBeforeAfter
FileOriginal JPG · 1.9 MBmodern-luxury-villa-with-swimming-pool-landscape.avif · 380 KB
Alt text(empty)Modern two-story luxury villa featuring large glass windows and a turquoise swimming pool under a blue sky
SizesOne full-size file150×150 · 300w · 768w · 1024w
MetadataNoneJSON sidecar: title, alt text, caption, keywords
Developers & API Users

How it fits the way you work

API Architecture

The REST API follows a session-based workflow:

1. Create a session — POST /v1/sessions with your images.
2. Analyze — POST /v1/analyze to run AI vision on the session's images. Responses stream via Server-Sent Events.
3. Review metadata — GET the analysis results. Edit if needed.
4. Export — POST /v1/export with your format, quality, and resize settings.
5. Download — GET the processed files.

Each step is independently callable. Run analysis only. Run export only. Skip steps you don't need.

Authentication and Credits

Authenticate with an API key in the X-API-Key header. API access starts on Pro: Pro gets 5 keys, Agency 20. Free and Starter have no API access.

Every API call that processes an image deducts credits from your account balance. Check your balance via GET /v1/credits/balance. Pre-check costs via POST /v1/credits/check before committing to a batch.

Integration Examples

CI/CD Pipeline — Add an image processing step to your build. Before deployment, POST all new images to the API. Replace source files with optimized output. Deploy.

Headless CMS — When a content editor uploads an image, your backend POSTs it to Picture Optimizer, receives the optimized version, and stores it in your asset storage.

Static Site Generator — During build, scan the /images directory. POST each file to the API. Replace with optimized output. Build the site with compressed, metadata-tagged images.

Enterprise · by enquiry

We do it for you, with our designers and photography experts.

For large stores, catalogues and blogs. We resize, convert and tune every image, then upload SEO alt text and EXIF to your site. No file is too big.

Questions

What people ask before they start.

The API uses standard HTTP requests with JSON responses. Any HTTP client works — cURL, fetch, axios, requests. There is no language-specific SDK today.

Fresh from the blog: Page speed and Core Web Vitals