Skip to content
Last updated

Upscale images to higher resolution while maintaining quality (Clipdrop only).

POSThttps://api.aitronos.com/v1/images/upscale

Request Body (multipart/form-data)

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

Returns raw image bytes (JPEG or WebP format) with provider metadata in response headers.

Response Headers

  • X-Provider - Provider that processed the request (always clipdrop)
  • X-Provider-Request-Id - Provider's request ID
  • X-Provider-Credits-Consumed - Credits consumed
Bash
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.jpg

Response:

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