Favicon generator
Try it interactively →POST /api/favicon-generateGenerate a multi-resolution `favicon.ico` from one source image. Includes 16, 32, and 48 px entries by default — the sizes most browsers and OSes look for.
Inputs
| Name | Type | Default | Description |
|---|---|---|---|
| image* | file | — | Source image (PNG / JPEG / WebP). |
| sizes | string | "16,32,48,64,128,256" | Comma-separated list of pixel sizes (1–256). Each becomes one square entry in the ICO. Default covers every common slot. |
Response
Modes: binary, base64-json. Cache: yes (24h TTL).
Code samples
Built from the default-sizes 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/favicon-generate \
-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 '{
"image": "'"$IMAGE"'"
}'