
By default, the API responds with a JPG output when rendering images. You can render outputs in jpg, png, pdf, webp, and avif formats by adding the "formats" flag to your request.
Example:
"template": "abc123def456ghij",
"formats": ["png", "jpg", "pdf", "webp"],
"modifications": {
"objects": [
{
"name": "message",
"text": "This example template has one text and one image container.",
"color": "#000000"
}
]
}
You can check the API Documentation for more info.
Note: Format types cost 1 API credit each (e.g. ["png", "jpg"] = 2 credits)

