The Next.js interface stays lightweight while the FastAPI backend handles remote fetch safety, contour extraction, smoothing, and transparent sticker export.
Add a file or public image URL to preview the source here.
Your sticker will appear here after the FastAPI backend isolates the main contour and applies the white outline.
POST /v1/stickerizecurl -X POST "https://sticker.middlefun.com/api/v1/stickerize" \
-H "Content-Type: application/json" \
-d '{"imageUrl":"https://example.com/product.jpg","model":"u2netp","outlinePx":10,"size":1000,"format":"png","maskThreshold":128,"smoothness":2}' \
--output sticker.png| Parameter | Required | Available values | Notes |
|---|---|---|---|
| file | Conditional | PNG, JPEG, WebP | Used in multipart/form-data uploads. |
| imageUrl | Conditional | Public https URL | Used in JSON requests. |
| model | No | u2netp, isnet-general-use, birefnet-lite | Segmentation model. |
| outlinePx | No | UI: 0, 6, 10, 14, 18, 24 | API: 0-48 | White outline thickness. |
| size | No | UI: 1000 | API: 256-1024 | Output width and height. |
| format | No | png, webp | UI currently sends png. |
| maskThreshold | No | UI: 96, 112, 128, 144, 160 | API: 1-254 | Foreground cutoff. |
| smoothness | No | 0, 1, 2, 3, 4 | Contour smoothing level. |