Simple & Powerful API tool to resize, convert, and optimize images effortlessly
Easily adjust image dimensions by specifying width, height, or percentage, while automatically maintaining aspect ratio for flawless results.
Convert images to multiple popular formats for unmatched flexibility. Our powerful API delivers exceptional performance without compromising quality.
Fine-tune image compression and quality (0-100) to balance performance and visual clarity for every use case.
Affordable plan to process unlimited images each month.
Solving Common and Advanced Questions About the
Image Processing API
The maximum file size for uploaded images is 10 MB (Free trial is 1 MB). Any file exceeding this limit will result in a "413 Payload Too Large error".
Yes, you can combine resizing, format conversion, and quality adjustment in a single request. For example, specify width, format, and quality parameters together.
If both the width and height are specified, the API resizes the image to match the given dimensions. To maintain the aspect ratio, specify only one dimension.
The API supports conversion to the following formats: webp, jpg, jpeg, png, bmp, avif, tiff, gif, heif, heic. More could be added in the future.
The quality parameter adjusts the compression level of the output image. Values range from 0 (lowest quality) to 100 (highest quality). It is applied during the save operation and may reduce file size significantly at lower values.
You can specify the format parameter without width or height. For example:
curl -X POST "https://api.bestimageapi.com/v1/img/process?format=png" \ -H "api-key: YOUR_API_KEY" \ -F "file=@example.jpg" \ -output new-image-file.png
Yes, the aspect ratio is preserved unless both width and height are specified.
The API ensures secure and fair usage through API key authentication and rate limiting. SSL encryption is used for file uploads, downloads, and account access. All processing occurs in memory, and no files are stored on disk.
If you receive a "429 Too Many Requests error", wait for a minute before sending new requests. The limit is set to 60 requests per minute.
The API currently accepts the following input formats: webp, jpg, jpeg, png, bmp, avif, tiff, gif, and heif.
Save hours of tedious work with our API, and deliver fast, high-quality results.