Setup API Key

작성자: ElevenLabs

사용자가 ElevenLabs MCP 도구와 함께 사용할 ElevenLabs API 키를 설정하는 과정을 안내합니다. 사용자가 ElevenLabs API 키를 구성해야 할 때, API 키 누락으로 ElevenLabs 도구가 실패할 때, 또는 사용자가 ElevenLabs에 대한 액세스가 필요하다고 언급할 때 사용하세요.

npx skills add https://github.com/elevenlabs/skills --skill setup-api-key

ElevenLabs API Key Setup

Guide the user through obtaining and configuring an ElevenLabs API key.

Workflow

Step 0: Check for an existing API key first

Before asking the user for a key, check for an existing ELEVENLABS_API_KEY:

  1. Check whether ELEVENLABS_API_KEY exists in the current environment. If it does, use that value for this initial check.
  2. Only if it is not in the environment, check .env for ELEVENLABS_API_KEY=<value>.
  3. Do not print, quote, or repeat the key. If you mention it, redact it.
  4. If an existing key is found, validate it:
    GET https://api.elevenlabs.io/v1/user
    Header: xi-api-key: <existing-api-key>
    
  5. If existing key validation succeeds:
    • Tell the user ElevenLabs is already configured and working
    • Skip the setup flow
    • Ask whether they want to replace/rotate the key; if not, stop
  6. If existing key validation fails:
    • Tell the user the existing key appears invalid or expired
    • Continue to Step 1

Step 1: Request the API key

Tell the user:

To set up ElevenLabs, open the API keys page: https://elevenlabs.io/app/settings/api-keys

(Need an account? Create one at https://elevenlabs.io/app/sign-up first)

If you don't have an API key yet:

  1. Click "Create key"
  2. Name it (or use the default)
  3. Set permission for your key. If you provide a key with "User" permission set to "Read" this skill will automatically verify if your key works
  4. Click "Create key" to confirm
  5. Copy the key immediately - it's only shown once!

Do not paste the key into this chat. Instead, copy/paste it into your local .env file:

ELEVENLABS_API_KEY=your-api-key

If .env already has an ELEVENLABS_API_KEY=... line, replace that line. Tell me when you've saved it, without sharing the key.

Then wait for the user to confirm that the key is saved locally.

Step 2: Validate and configure

After the user says the key is saved:

  1. Re-check both .env and the current environment for ELEVENLABS_API_KEY, but treat .env as the source of truth for this step.
  2. If .env contains a value, validate that value even when the current environment also has a different ELEVENLABS_API_KEY.
  3. If .env does not contain the key:
    • Tell the user .env does not appear to contain ELEVENLABS_API_KEY.
    • Show the expected line again.
    • If the current environment does contain a key, note that this step still requires saving the key in .env.
    • Remind them not to paste the key into chat.
  4. If a .env key is found, validate it:
    GET https://api.elevenlabs.io/v1/user
    Header: xi-api-key: <local-api-key>
    
  5. If validation fails:
    • Tell the user the local key appears invalid or expired.
    • Remind them of the API keys page.
    • Ask them to replace the .env value and tell you when it is saved.
  6. If validation succeeds, confirm:

    Done. ElevenLabs is configured and the key in .env works.

Safety Rules

  • Never ask the user to paste an API key, token, or secret into chat.
  • Never print or echo API key values from environment variables or .env.
  • Prefer .env or managed secrets over shell history for persistent local configuration.
  • For browser or client-side apps, keep ELEVENLABS_API_KEY on the server and issue short-lived tokens where applicable.

ElevenLabs의 다른 스킬

Agents
ElevenLabs
ElevenLabs로 음성 AI 에이전트를 구축하세요. 음성 비서, 고객 서비스 봇, 대화형 음성 캐릭터 또는 실시간 음성 대화 경험을 만들 때 사용합니다.
developmentofficial
Music
ElevenLabs
ElevenLabs Music API를 사용하여 음악을 생성합니다. 악기 트랙, 가사가 있는 노래, 배경 음악, 징글 또는 AI 생성 음악 작곡을 만들 때 사용합니다. 프롬프트 기반 생성, 세부 제어를 위한 작곡 계획, 메타데이터가 포함된 상세 출력을 지원합니다.
developmentofficial
Sound Effects
ElevenLabs
텍스트 설명을 사용하여 ElevenLabs로 음향 효과를 생성합니다. 음향 효과 제작, 오디오 텍스처 생성, 앰비언트 사운드, 시네마틱 임팩트, UI 사운드 또는 음성이 아닌 모든 오디오를 만들 때 사용하세요. 루핑, 길이 제어, 프롬프트 영향 조정을 지원합니다.
developmentofficial
Speech To Text
ElevenLabs
ElevenLabs Scribe v2를 사용하여 오디오를 텍스트로 변환합니다. 오디오/비디오를 텍스트로 변환하거나, 자막을 생성하거나, 회의를 기록하거나, 음성 콘텐츠를 처리할 때 사용하세요.
developmentofficial
Text To Speech
ElevenLabs
ElevenLabs 음성 AI를 사용하여 텍스트를 음성으로 변환합니다. 텍스트에서 오디오를 생성하거나, 음성 해설을 만들거나, 음성 앱을 구축하거나, 70개 이상의 언어로 음성을 합성할 때 사용하세요.
developmentofficial