Skip to content
GigAI Tools

Developer API / docs

SVG to PNG API

Rasterize an SVG. Set width/height, or scale to multiply its intrinsic size.

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

Runs as the svg-to-png 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
  • scale - integer, 1..10

Limits

  • Input: svg (one file, checked by content, never by extension).
  • Max input size: 10 MB.
  • Output: png.
  • 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": "svg-to-png", "input": ["previous-task"] }
Was this page helpful?