# Groq Cloud API integration for Home Assistant ๐Ÿ  This is a custom integration for using Groq Cloud API in the Assist pipeline, reducing the workload on the Home Assistant server. Groq Cloud provides multiple models like Llama 3.1, Gemma2, Groq for free! And no card required! (For now...) ## Requirements ๐Ÿ“– - An GroqCloud account ๐Ÿ‘ค --> You can create one [here](https://console.groq.com/login) - An `API Key` ๐Ÿ”‘ --> You can generate one [here](https://console.groq.com/keys) ## How to install โš™๏ธ Before configuring the integration you must first install the `custom_integration`. You can do it through HACS or manually ### HACS โœจ 1. **Add** โž• [this repository](https://my.home-assistant.io/redirect/hacs_repository/?owner=HunorLaczko&repository=ha-groq-cloud-api&category=integration) to your HACS repositories: - **Click** on this link โคต๏ธ [![Add Repository to HACS](https://my.home-assistant.io/badges/hacs_repository.svg)](https://my.home-assistant.io/redirect/hacs_repository/?owner=HunorLaczko&repository=ha-groq-cloud-api&category=integration) - Or **copy** this url โคต๏ธ and paste into your HACS custom repostories ```url https://github.com/HunorLaczko/ha-groq-cloud-api ``` 2. **Install** ๐Ÿ’ป the `Groq Cloud API` integration 3. **Restart** ๐Ÿ” Home Assistant ### Manual Install โŒจ๏ธ 1. **Download** this repository 2. **Copy** everything inside the `custom_components` folder into your Home Assistant's `custom_components` folder. 3. **Restart** Home Assistant ## Configuration ๐Ÿ”ง For the options check out the OpenAI Conversation integration [here](https://www.home-assistant.io/integrations/openai_conversation). For the available models check out [Groq Cloud](https://console.groq.com/docs/models). ### Home Assistant Dashboard ๐Ÿ’ป - Configure the integration by **clicking here** โคต๏ธ [![Add Repository to HACS](https://my.home-assistant.io/badges/config_flow_start.svg)](https://my.home-assistant.io/redirect/config_flow_start/?domain=groq_cloud_api) - Or navigate to your `Devices & services` page and click `+ Add Integration` ### Acknowledgements The code base is mostly identical [OpenAI Conversation integration](https://github.com/home-assistant/core/blob/dev/homeassistant/components/openai_conversation), just using the official Groq library instead of OpenAI. The Readme and HACS setup is based on [Fabio's excellent work](https://github.com/fabio-garavini/ha-groq-whisper-stt-api) with the Groq Whisper integration. Check out his other works as well!