Link Search Menu Expand Document


Generate a png, jpg or webp images from your terminal with cURL.

Live demo Get an API Key

Table of contents

Generate an image with cURL

Run this command in your terminal to generate an image using the API.

For more details on how this works, see Creating an image.

# Replace UserID and APIKey with your credentials from the dashboard
curl -X POST -u 'UserID:APIKey'\
     -d html="<div class='ping'>Pong ✅</div>" \
     -d css=".ping { padding: 20px; font-family: 'sans-serif'; }"


The API will return a json payload with the URL to your new image.

{ "url":"" }

Need help?

Talk to a human: We always respond within 24 hours. And often, even faster.

Back to top

Built with extensive integration tests and serious care for developer happiness.
© 2018-2022 Code Happy, LLC.

Page last modified: Dec 27 2022 at 05:14 PM.

Edit this page on GitHub.