Skip to content

Account and Service Setup

barneyonline edited this page Jul 6, 2026 · 5 revisions
Account and Service Setup banner

Use this page to understand Groq account entries, service subentries, explicit action targets, model discovery, and reauthentication.

Contents

Account entry

Add a Groq account from Settings -> Devices and services -> Add integration -> Groq.

The setup flow asks for:

  • Name: a friendly label for the Groq account, API key, or billing project.
  • Groq API key: the key used by services created under this account.

The API key is stored by Home Assistant and redacted from diagnostics.

Step Screenshot
Add the Groq integration. Add integration dialog showing Groq
Enter the account name and Groq API key. Groq account setup form

Multiple accounts

Add another Groq account when you want to separate:

  • API keys
  • Groq projects
  • billing or rate-limit pools
  • production and testing services

Services use the API key from their parent Groq account.

Service entries

After adding an account, open the Groq integration page and choose one of the service-specific buttons:

  • Add Text Generation
  • Add Speech-to-Text
  • Add Text-to-Speech
  • Add Image Recognition

Each service has a friendly name. Home Assistant uses that name for generated entities and for selecting explicit action targets.

Service type Home Assistant surface Main guide
Text Generation Conversation entity, AI Task entity, groq.generate_text, groq.generate_structured Text Generation
Speech-to-Text STT entity for voice pipelines, groq.transcribe_audio Speech-to-Text
Text-to-Speech TTS entity for tts.speak, output format, sample rate, speed, audio processing, Long TTS Text-to-Speech
Image Recognition groq.analyze_image, groq.extract_text_from_image Image Recognition
Step Screenshot
Open the Groq integration page and use the service buttons at the top of the page. Groq integration service buttons
Complete the service setup form. Text Generation service setup form

Action targets

Groq response actions require explicit targets so automations keep using the intended account or configured service as you add more Groq entries.

Action type Required target Examples
Service-level actions service_id groq.generate_text, groq.generate_structured, groq.analyze_image, groq.extract_text_from_image, groq.transcribe_audio
Account-level actions config_entry_id groq.clear_cache, groq.list_models

Home Assistant's action selector stores the stable service target. YAML also accepts the friendly service name when it uniquely matches one configured Groq service of that type. If multiple services have the same name, rename them or use the action selector so the stored target is unambiguous.

Model discovery

During service setup, the integration asks Groq for active models available to the selected API key and filters them by service type.

Built-in model lists are used as a fallback when discovery is unavailable. A successful Groq model refresh replaces stale built-in metadata, so newly visible models can appear and removed models stop passing runtime validation.

Use groq.list_models from Developer Tools -> Actions when you need to inspect model data for a configured account. Select the Groq account with config_entry_id; enable refresh when you want Home Assistant to ask Groq for a fresh model list.

List Models action

Reauthentication

If Groq reports that credentials are invalid, Home Assistant starts a reauthentication flow. Enter a new API key to keep existing services attached to the same account entry.

Groq reauthentication flow

Related pages

Clone this wiki locally