PixlTools API Access
Integrate professional image processing directly into your app. Compress, resize, convert, and enhance images programmatically — no UI required.
No auth required
All endpoints work without API keys or tokens (fair use limits apply)
Zero data retention
Uploaded files are processed and deleted immediately. No logs.
Standard multipart
Submit as multipart/form-data. Works with fetch, axios, curl, or any HTTP library.
Available Endpoints
/api/compressCompress JPG, PNG, or WEBP with custom quality (10–100)
/api/resizeResize image to specific pixel dimensions
/api/convertConvert between JPEG, PNG, and WEBP
/api/grayscaleConvert to grayscale / black & white
/api/rotateRotate image by any angle
/api/background-removeRemove image background
Request Format
All endpoints accept multipart/form-data POST requests. Include your image as file field and any tool-specific params as additional fields.
cURL Example
curl -X POST https://pixltools.com/api/compress \ -F "file=@your-image.jpg" \ -F "quality=80" \ --output compressed.jpg
JavaScript / Fetch Example
const formData = new FormData();
formData.append('file', fileBlob, 'image.jpg');
formData.append('quality', '80');
const response = await fetch('https://pixltools.com/api/compress', {
method: 'POST',
body: formData,
});
const blob = await response.blob();
const url = URL.createObjectURL(blob);Response Format
Image endpoints
Returns the processed image as binary image/jpeg, image/png, or image/webp with a Content-Disposition: attachment header.
Data endpoints
Color picker, metadata, and Base64 tools return application/json. Error responses are always { error: string }.
Rate Limits & Fair Use
- Maximum file size: 25MB per request
- Rate limit: 30 requests per minute per IP (returns 429 with Retry-After header)
- Max image dimensions: 8000×8000px (32 megapixels)
- Supported formats: JPEG, PNG, WEBP, TIFF (input); JPEG, PNG, WEBP (output)
- No monthly quota — fair use policy applies
Need higher rate limits, SLA guarantees, or a dedicated endpoint? Let us know: