Eleven Labs Integration Refuses Valid API Key ("Invalid API Key")

The official Eleven Labs HA integration won’t accept my API keys. Tried doing some google/forum searching, but didn’t find anything recent (past few months).

Problem persists through Core and even OS reboots.

I have generated multiple keys and tested them in python, e.g.

#! /bin/python3
from elevenlabs import save, play
from elevenlabs.client import ElevenLabs

api_key = "sk_xxxxxxxxxxxxxxxxxxxxxxxxxxxx"

client = ElevenLabs(api_key=api_key)
audio = client.text_to_speech.convert(
    text="your api key works",
    voice_id="JBFqnCBsd6RMkjVDRZzb",
    model_id="eleven_multilingual_v2",
    output_format="mp3_44100_128",
)

save(audio, "output.mp3")

This appears to be the URL it’s posting the key to:
http://homeassistant.local:8123/api/config/config_entries/flow/01JYSBKXVR7JCGJ6GK0511R0AV

with a PAYLOAD like this:

{"api_key":"sk_xxxxxxxxxx"}

which does return a 200 OK (i.e. ostensibly not a client/server issue)

HAOS info

Installation method Home Assistant OS
Core 2025.6.3
Supervisor 2025.06.2
Operating System 15.2
Frontend 20250531.4

I can confirm that I encountered the same problem.

I subscribed to the free tier and created an API key that allows for text to speech (all other services disabled). The integration’s installation process instantly rejects the API key.

Give unrestricted access

1 Like

Thanks! That made it accept the API key.