# Insomnia

Learn how to use the API to generate an image using Insomnia

## Insomnia

Insomnia is an HTTP client that is useful for interacting with API’s.

Download [Insomnia](https://insomnia.rest/) for your operating system.

### 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).

![Basic authentication in Insomnia](/assets/images/insomnia1.png)

### Passing HTML/CSS

Then, enter your HTML/CSS as parameters for the request.

Press send, and you’re done.

![Sending HTML and CSS in Insomnia](/assets/images/insomnia2.png)
