--- layout: page title: Insomnia permalink: /guides/workflows/insomnia/ parent: Workflows grand_parent: Guides nav_order: 2 description: >- Use the HTML/CSS to Image API with Insomnia. Converts html to images. --- # Insomnia: HTML/CSS to Image API {: .no_toc } {: .fs-9 } Learn how to use the API to generate an image using Insomnia {: .fs-6 .fw-300 }
## Insomnia Insomnia is an HTTP client that is useful for interacting with API's. Download[ Insomnia here](https://insomnia.rest/) (Mac OSX only). ### Authorization First, you'll want to set authorization to **Basic** and enter your API\_ID and API\_KEY from the [Dashboard](https://htmlcsstoimage.com/dashboard). {% cloudinary /assets/images/insomnia1.png sizes="700px" alt="Using insomnia with the HTML/CSS to Image API" %} ### Passing HTML/CSS Then, enter your HTML/CSS as parameters for the request. Press send, and you're done. {% cloudinary /assets/images/insomnia2.png sizes="700px" alt="Using insomnia with the HTML/CSS to Image API" %}