Documentation

API URL


POST /resize

Headers
Code
Content-Type: application/json
Body Parameters


Example Request

Code
{
  "image_url": "https://upload.wikimedia.org/wikipedia/commons/4/47/PNG_transparency_demonstration_1.png",
  "width": 300,
  "height": 200
}

Successful Response

Status
HTML
200 OK
Body
Code
Binary image/jpeg returned directly in response.
Headers include Content-Type: image/jpeg

Error Response

Example
Code
400 INVALID_INPUT – Required parameters missing or invalid
400 UNSUPPORTED_FORMAT – Provided format is not supported
500 PROCESSING_ERROR – Sharp or I/O operation failed

Last Updated:  May 4, 2026