Image API for developers
Resize, convert, compress, watermark and remove backgrounds with one HTTP call.
- Fast libvips processing
- Async jobs and webhooks for AI
- Signed URLs, private storage, 1-hour retention
- OpenAPI 3.1 specification
Quick start
curl -X POST https://phototools.site/v1/images/resize \
-H "Authorization: Bearer pt_live_xxxxx" \
-H "Content-Type: application/json" \
-d '{
"url": "https://example.com/photo.jpg",
"width": 1200,
"height": 800,
"fit": "cover",
"format": "webp",
"quality": 82
}' \
-o photo.webpEndpoints
| POST | /v1/images/resize | Resize with exact / fit / contain / cover |
| POST | /v1/images/convert | Convert to JPG, PNG, WebP or AVIF |
| POST | /v1/images/compress | Compress by quality or to a target size |
| POST | /v1/images/watermark | Text or logo watermark |
| POST | /v1/images/product | Ecommerce: square canvas, white background, WebP |
| POST | /v1/images/metadata | Read EXIF, GPS, ICC |
| POST | /v1/images/strip-metadata | Remove EXIF losslessly |
| POST | /v1/images/remove-background | AI background removal (async) |
| POST | /v1/images/upscale | AI upscale 2× / 4× (async) |
| POST | /v1/images/enhance | AI enhancement (async) |
| POST | /v1/images/blur-background | AI portrait blur (async) |
| POST | /v1/uploads | Presigned upload for large files |
| POST | /v1/batches | Batch pipelines with ZIP output |
| GET | /v1/jobs/{id} | Job status and result URL |
| GET | /v1/usage | Quota and usage |
API pricing
Every plan includes test keys. Paid plans include monthly basic transformations and AI credits, with pay-as-you-go beyond the limits.
Pricing