Developer API / docs
Rotate Image API
Rotate by any angle. Non-right angles get a white background on JPEG, transparent elsewhere.
POSThttps://api.gigai.tools/v1/jobsAsync
Runs as the rotate-image operation inside a job. Needs a key with the jobs:write scope.
Options
angle- integer, -360..360, 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": "rotate-image", "input": ["previous-task"], "angle": ... }Errors this tool returns
invalid_input, invalid_option, file_too_large, timeout. The full list with fixes is on the errors page.
Was this page helpful?