API Reference

Every imgcompress REST API endpoint with parameters, ranges, responses and error codes, generated from the OpenAPI document of the current release candidate.

Generated from openapi.json of 1.1.0-rc.6. https://imgcompress.example.com/api/v1 stands for your instance; setup, modes and keys are on REST API.

Endpoints

Convert

Synchronous conversion: POST /convert waits and returns the file or a ZIP.

Jobs

Asynchronous conversion: POST /jobs returns 202; poll and download with X-Job-Token.

Editor

Crop, fit, backgrounds, text and picture layers; render a preview of any format.

Info

Supported formats, AI models, limits and versions of this container.

Health

Liveness checks. Never need the API key.

Storage

Temporary files of the container. Answer 403 when DISABLE_STORAGE_MANAGEMENT=true.

Docs

This document and Swagger UI. Served only with ENABLE_PUBLIC_API or API_ONLY.

Interactive reference

Searchable, with expandable schemas and response examples, from the same document.

Loading the interactive reference…