setup-api-key

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

ElevenLabs API Key Setup

ElevenLabs API密钥设置

Guide the user through obtaining and configuring an ElevenLabs API key.
指导用户获取并配置ElevenLabs API密钥。

Workflow

操作流程

Step 1: Request the API key

步骤1:获取API密钥

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!
Paste your API key here when ready.
Then wait for the user's next message which should contain the API key.
告知用户:
要设置ElevenLabs,请打开API密钥页面:https://elevenlabs.io/app/settings/api-keys
如果您还没有API密钥:
  1. 点击“Create key”
  2. 为其命名(或使用默认名称)
  3. 设置密钥权限。如果您提供的密钥“User”权限设为“Read”,本技能将自动验证密钥是否可用
  4. 点击“Create key”确认
  5. 立即复制密钥 - 该密钥仅会显示一次!
准备好后在此粘贴您的API密钥。
然后等待用户的下一条消息,其中应包含API密钥。

Step 2: Validate and configure

步骤2:验证与配置

Once the user provides the API key:
  1. Validate the key by making a request:
    GET https://api.elevenlabs.io/v1/user
    Header: xi-api-key: <the-api-key>
  2. If validation fails:
  3. If validation succeeds, save the API key in a
    .env
    file:
    ELEVENLABS_API_KEY=<the-api-key>
  4. Confirm success:
    Done! Your key is stored as an environment variable in .env Keep the key safe! Don't share it with anyone!
一旦用户提供API密钥:
  1. 验证密钥:发送以下请求:
    GET https://api.elevenlabs.io/v1/user
    Header: xi-api-key: <the-api-key>
  2. 如果验证失败:
  3. 如果验证成功,将API密钥保存到
    .env
    文件中:
    ELEVENLABS_API_KEY=<the-api-key>
  4. 确认成功:
    完成!您的密钥已作为环境变量存储在.env文件中 请妥善保管密钥!不要与任何人分享!