← All APIs
API
Image API
Filters, crop, rotate, flip, background removal, and auto-levels — all real pixel math, no AI/ML model.
Endpoint
POST https://fish-gang.netlify.app/.netlify/functions/image-process
Request body
{
"imageBase64": "...",
"format": "png",
"operations": [
{ "type": "filter", "name": "vintage" },
{ "type": "auto" },
{ "type": "bgRemove", "x": 2, "y": 2, "tolerance": 32 },
{ "type": "crop", "x": 0, "y": 0, "w": 200, "h": 200 },
{ "type": "rotate", "degrees": 90 },
{ "type": "flip", "axis": "h" }
]
}
Operations run in array order. Output is always PNG, to preserve transparency from bgRemove.
Filter names
| name | effect |
|---|---|
| bw | Grayscale |
| vintage | Warm sepia-leaning tone shift |
| bleach | Desaturated, high contrast |
| negative | Inverted colors |
| punch | Boosted saturation + contrast |
| blue | Cool blue tone shift |
| latte | Soft warm highlights |
Response
{
"imageBase64": "...",
"width": 800,
"height": 600
}
Limits: max 2400px per side, ~6MB request size, due to serverless memory/time constraints on this deployment. For larger images, use the Image Workstation browser tool instead — no server limits there.