Retrieving an image

Downloading your image via the API.

After creating an image, you'll receive the URL to your image.

This URL is permanent for as long as your account is active. It's automatically cached and optimized by Cloudflare's global content delivery network. You can use it directly on your webpages and not worry about hurting your page speed score.

  • Lossless optimization: each image is optimized with no change in image quality.

  • Global cache: the image is cached near your users to reduce latency.

get
Get an image

https://hcti.io/v1/image/:image_id
Renders your HTML/CSS into an image. Returns a png by default. Change the file extension to return a jpg or webp image.
Request
Response
Query Parameters
height
optional
integer
The height of the image. Maximum: 5000
width
optional
integer
The width of the image. Maximum 5000
200: OK
Rendered image
422: Unprocessable Entity
Invalid filetypes will return an error
Sorry, we do not currently support that format. Valid image types are: jpg, webp or png

You can modify this URL to adjust the size and file format. Take a look at the following links for details on how to change the file format and change the height/width of your image.