Skip to content
GigAI Tools

Developer API / docs

Crop Image API

Cut a rectangle out of an image: left, top, width, height in pixels.

POSThttps://api.gigai.tools/v1/jobsAsync

Runs as the crop-image operation inside a job. Needs a key with the jobs:write scope. Try it in the browser

Options

  • left - integer, 0..100000
  • top - integer, 0..100000
  • width - integer, 1..100000, required
  • height - integer, 1..100000, required

Limits

  • Input: png, jpg, webp, avif, gif (one file, checked by content, never by extension).
  • Max input size: 50 MB.
  • Output: png, jpg, webp, avif.
  • Time budget: 60 seconds, then the task fails with the timeout code.
  • Engine: sharp.

Inside a bigger job

Chain it: any task can consume this one's output by naming it in input. The recipes show working pipelines.

as one task in a graph

"step": { "operation": "crop-image", "input": ["previous-task"], "width": ..., "height": ... }
Was this page helpful?