Upscale images to higher resolution while maintaining quality (Clipdrop only).
POSThttps://api.aitronos.com/v1/images/upscale
provider string required
Provider to use (must be clipdrop). OpenAI does not support upscaling.
organization_id string required
Organization ID (org_ prefixed string).
image_file file required
Image file to upscale (PNG, JPEG, WebP).
target_width integer required
Target width in pixels (1-12000).
target_height integer required
Target height in pixels (1-12000).
Returns raw image bytes (JPEG or WebP format) with provider metadata in response headers.
X-Provider- Provider that processed the request (alwaysclipdrop)X-Provider-Request-Id- Provider's request IDX-Provider-Credits-Consumed- Credits consumed
Bash
- Bash
- Python
- JavaScript
curl -X POST "https://api.aitronos.com/v1/images/upscale" \
-H "X-API-Key: $FREDDY_API_KEY" \
-F "provider=clipdrop" \
-F "organization_id=org_abc123" \
-F "image_file=@input.jpg" \
-F "target_width=2048" \
-F "target_height=2048" \
--output upscaled.jpgResponse:
Returns raw image bytes (JPEG or WebP format).
Response Headers:
Content-Type: image/jpeg
X-Provider: clipdrop
X-Provider-Request-Id: req_abc123
X-Provider-Credits-Consumed: 1