Back to Tool
📐

Image Resizer API

Resize images to specific dimensions via API

Endpoint

POST/api/v1/image-resizer

Authentication

Include your API key in the request header:

X-API-Key: your_api_key_here

Get your API key from the Dashboard

Request Body

Content-Type: multipart/form-data

FieldTypeRequiredDescription
imageFileYesImage file (JPEG, PNG, WebP, GIF, max 10MB)
widthnumberNoTarget width in pixels (1-4096)
heightnumberNoTarget height in pixels (1-4096)
maintainAspectRatiobooleanNoKeep aspect ratio (default: true)

Response

FieldTypeDescription
successbooleanWhether the operation was successful
originalWidthnumberOriginal image width
originalHeightnumberOriginal image height
newWidthnumberResized width
newHeightnumberResized height
imagestringBase64 encoded resized image
mimeTypestringImage MIME type

Code Examples

curl -X POST https://tools.shubhambadgujar.com/api/v1/image-resizer \
  -H "X-API-Key: your_api_key" \
  -F "image=@/path/to/image.jpg" \
  -F "width=800" \
  -F "height=600"

Pricing

First 100 free, then $0.01 per call

Get API Key

Rate Limits

  • • 100 requests per minute
  • • 10,000 requests per day
  • • Max request size: 10MB

Need Help?

Contact us at support@shubhambadgujar.com