Skip to content
GigAI Tools

Developer API / docs

Resize Image API

Resize by width, height or both. 'fit' controls how the aspect ratio is handled (inside keeps it, cover crops, fill stretches).

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

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

Options

  • width - integer, 1..10000
  • height - integer, 1..10000
  • fit - string, one of inside, cover, contain, fill
  • format - string, one of png, jpeg, webp, avif

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": "resize-image", "input": ["previous-task"] }
Was this page helpful?