Developer API

Integrate image compression, conversion, resizing, and favicon generation directly into your application. All endpoints accept multipart/form-data and return the processed image binary.

Authentication

Every request must include your API key in the Authorization header:

Authorization: Bearer YOUR_API_KEY

API keys are available on the Pro and Business plans. Generate your key from the account dashboard after subscribing.

Base URL

https://utilio.solutions/api/v1

Rate limits

Free API keys: 100 requests/day. Pro: 10,000 requests/day. Business: unlimited. Exceeded limits return HTTP 429.

Endpoints

POST/api/v1/compress

Compress an image with configurable format and quality.

FieldTypeRequiredDescription
fileFileYesThe source image
formatstringNo"webp" | "jpeg" | "png" | "avif" — default: webp
qualityintegerNo1–100 — default: 80 (ignored for PNG)
curl -X POST https://utilio.solutions/api/v1/compress \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -F "file=@photo.jpg" \
  -F "format=webp" \
  -F "quality=80" \
  --output compressed.webp
POST/api/v1/convert

Convert an image from one format to another.

FieldTypeRequiredDescription
fileFileYesThe source image
tostringYes"webp" | "jpeg" | "png" | "avif"
curl -X POST https://utilio.solutions/api/v1/convert \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -F "file=@image.png" \
  -F "to=webp" \
  --output converted.webp
POST/api/v1/resize

Resize an image to specified dimensions.

FieldTypeRequiredDescription
fileFileYesThe source image
widthintegerNoTarget width in px (provide at least one dimension)
heightintegerNoTarget height in px
fitstringNo"cover" | "contain" | "fill" | "inside" | "outside" — default: inside
formatstringNo"webp" | "jpeg" | "png" | "avif" — default: jpeg
curl -X POST https://utilio.solutions/api/v1/resize \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -F "file=@photo.jpg" \
  -F "width=1280" \
  -F "height=720" \
  -F "fit=cover" \
  -F "format=webp" \
  --output resized.webp
POST/api/v1/favicon

Generate a full favicon PNG pack (8 sizes + Apple touch icon) as a ZIP.

FieldTypeRequiredDescription
fileFileYesSource image — square works best
curl -X POST https://utilio.solutions/api/v1/favicon \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -F "file=@logo.png" \
  --output favicons.zip
POST/api/v1/qr-code

Generate a QR code PNG for any text or URL.

FieldTypeRequiredDescription
textstringYesThe text or URL to encode
sizeintegerNoOutput size in px (64–2048) — default: 256
error_correctionstringNo"L" | "M" | "Q" | "H" — default: M
marginintegerNoQuiet zone modules (1–10) — default: 2
curl -X POST https://utilio.solutions/api/v1/qr-code \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -F "text=https://example.com" \
  -F "size=512" \
  --output qrcode.png

Error responses

All errors return JSON with an error field:

{ "error": "Invalid API key" }          // 401
{ "error": "Daily rate limit exceeded" } // 429
{ "error": "Failed to process image" }   // 422