sinikoding
image-resize87

Resize & Compress Image

net

Shrink an image to fit a size and re-encode it at a lower quality.

POST /api/v1/image-resize
API version
v1
Output schema
1

The endpoint path is always /v1. The schema number below tracks this tool's output shape and changes independently.

Create a free account

Network tool — this endpoint makes an outbound request.

Parameters

ParameterTypeRequiredDefault
imagefileyes
widthnumberno1280
heightnumberno0
qualitynumberno80

Request

curl -X POST https://sinikoding.dev/api/v1/image-resize \
  -H 'content-type: application/json' \
  -H 'x-api-key: tk_live_…' \
  -d '{"image":"…","width":1280,"height":0,"quality":80}'

Returns

"output": { "kind": "file", "dataUri": "data:image/…;base64,…", "filename": "…", "mime": "…", "size": 0 }
Try it

Calls a same-origin sandbox endpoint, not /api/v1. No key needed, capped at 15 requests a minute.

Request

curl -X POST https://sinikoding.dev/api/v1/image-resize \
  -H 'content-type: application/json' \
  -H 'x-api-key: tk_live_…' \
  -d '{"image":"","width":"1280","height":"0","quality":"80"}'

Response

Send a request to see the response.
Open the web version