Image modulate
Try it interactively →POST /api/image-modulateAdjust an image's hue (rotate), saturation (scale), and brightness (scale) in a single operation. Sensible defaults: 0 / 100 / 100 means no change.
Inputs
| Name | Type | Default | Description |
|---|---|---|---|
| image* | file | — | Input image (PNG / JPEG / WebP). |
| brightness | number (0…400) | 100 | Brightness percent (100 = no change). |
| saturation | number (0…400) | 100 | Saturation percent (100 = no change; 0 = grayscale). |
| hue | number (0…200) | 100 | Hue rotation percent (100 = no change). |
| format | enum (png | jpeg | webp) | — | Output format. Defaults to the input's. |
Response
Modes: binary, base64-json. Cache: yes (24h TTL).
Code samples
Built from the saturate-half example.
# Download or substitute the example input:
# curl -O https://xtract.bot/examples/image-png-to-webp/sample.png
IMAGE=$(base64 -w0 < sample.png)
curl -X POST https://api.xtract.bot/api/image-modulate \
-H "Content-Type: application/json" \
-H "Accept: application/octet-stream" \
-H "X-Account-Id: $XTRACT_ACCOUNT_ID" \
-H "X-Api-Key: $XTRACT_API_KEY" \
-d '{
"brightness": 100,
"saturation": 50,
"hue": 100,
"image": "'"$IMAGE"'"
}'