Here's how to turn HTML into PNG, JPEG, or WebP images with an API... in every size you need!
Start with an HTML design. This gig poster comes from our template gallery. Every field in curly braces, like the artist, the date, or a colour, gets filled in from your data.
Save it once with a POST to /v1/templates, and you get back a template ID.
Now send your data to /v1/image. Name the template, fill in the fields... then pick a format and a size. Here, a PNG, 1080 × 1350.
Press Enter... and there's your poster!
Got another show? Just change the data. A new name, new colours, and JPEG in place of PNG. Same template, a whole new poster.
Need every size? Send one request to /v1/image-packs. List the sizes you want, like a square post and a story... and ask for WebP.
The design rearranges itself to fit each size, and every file comes back in one ZIP. One credit for each image.
Start free with 50 credits a month, at thirds.ai.