Cacheable SVG URL
Use GET when parameters fit in a URL. Responses are deterministic, cached, and carry an ETag.
curl --get 'https://pxface.com/api/v1/render' \
--data-urlencode 'text=HELLO
THERE' \
--data 'format=svg' \
--data 'ratio=fit' \
--output hello-there.svg
PNG from JSON
Use POST for structured agent calls. PNG and SVG come from the exact same render scene.
curl 'https://pxface.com/api/v1/render' \
--header 'Content-Type: application/json' \
--data '{"format":"png","options":{"text":"HELLO\nTHERE","ratio":"square","effect":"wave","effectAmount":1.1,"seed":42,"pixelOverrides":{"l0-c0-r0-x0":{"color":"#FF4E1A","offsetY":-1}}}}' \
--output hello-there.png
Animated SVG loop
Animation samples the same renderer at fixed phases. Every frame is deterministic, shares one viewBox, and stays made of editable pixel elements.
curl --get 'https://pxface.com/api/v1/render' \
--data-urlencode 'text=PIXELS' \
--data 'format=svg-animation' \
--data 'effect=assemble' \
--data 'duration=3' \
--data 'frameRate=12' \
--output pixels-loop.svg
Choose the right motion format
The API returns native animated SVG. Use the Studio to encode those exact frames as GIF, transparent WebM, or broadly compatible MP4. MP4 fills transparent canvases with the chosen background.