← 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

nameeffect
bwGrayscale
vintageWarm sepia-leaning tone shift
bleachDesaturated, high contrast
negativeInverted colors
punchBoosted saturation + contrast
blueCool blue tone shift
latteSoft 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.