Retrieving an image

API endpoint for retrieving an image.

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 jpeg 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.