[
    {
        "role": "user",
        "content": "how%20do%20I%20get%20an%20elevenlabs%20api%20key%3F"
    },
    {
        "role": "assistant",
        "content": "Here\u2019s a clear, step-by-step guide to getting an ElevenLabs API key, along with tips for managing and securing it safely:\n\n---\n\n## \u2705 Steps to Get an ElevenLabs API Key\n\n1. **Sign Up / Log In**  \n   Go to ElevenLabs at elevenlabs.io and create an account if you don\u2019t already have one. You can sign up using email, Google, or GitHub. ([join.elevenlabs.io](https://join.elevenlabs.io/api/developer-api-4?utm_source=openai))\n\n2. **Go to the API Keys Page**  \n   Once logged in, find the navigation item labeled **\u201cDevelopers\u201d** in the sidebar. Under that, click **\u201cAPI Keys\u201d**. ([elevenlabs.io](https://elevenlabs.io/docs/help-center/technical/how-do-i-authorize-myself-using-an-api-key?utm_source=openai))\n\n3. **Create a New API Key**  \n   On the API Keys page, click **\u201cCreate Key\u201d**. You\u2019ll be prompted to:\n   - Give the key a friendly name (helps differentiate if you make several keys).  \n   - Set permissions or scopes (e.g. text-to-speech, voice cloning, etc.).  \n   - Optionally set restrictions like usage limits (credits, character limits), allowed IP addresses, and expiration dates. ([elevenlabs.io](https://elevenlabs.io/docs/overview/administration/workspaces/api-keys?utm_source=openai))\n\n4. **Copy the API Key Immediately**  \n   After creation, the full key (often starts with `sk_...`) will be shown **only once**. Make sure to copy it right away and store it securely. ([reddit.com](https://www.reddit.com/r/ElevenLabs/comments/1vgybun/api_key_being_rejected/?utm_source=openai))\n\n5. **Keep it Safe**  \n   - Do **not** share your API key publicly.  \n   - Avoid committing it to public version control systems like GitHub.  \n   - Use environment variables (`ELEVENLABS_API_KEY`) or secret managers to store it in your applications. ([github.com](https://github.com/elevenlabs/skills/blob/main/setup-api-key/SKILL.md?utm_source=openai))\n\n---\n\n## \ud83d\udd10 Useful Features & Best Practices\n\n- **Types of API Keys**  \n  There are *User API keys* (tied to your user account) and *Service Account API keys* (meant for backends or production setups). Each has different properties (e.g. expiration, how membership changes affect them). ([elevenlabs.io](https://elevenlabs.io/docs/overview/administration/workspaces/api-keys?utm_source=openai))\n\n- **Key Restrictions**  \n  You can restrict:\n  1. Which API endpoints/features the key can access.  \n  2. How many credits or characters/month you can use.  \n  3. Which IP addresses are allowed to use the key. ([elevenlabs.io](https://elevenlabs.io/docs/overview/administration/workspaces/api-keys?utm_source=openai))\n\n- **Automatic Disabling**  \n  Keys found in public repos (via GitHub\u2019s secret scanning) are automatically disabled to protect your account. ([elevenlabs.io](https://elevenlabs.io/docs/overview/administration/workspaces/api-keys?utm_source=openai))\n\n- **Key Expiration & Rotation**  \n  - *User keys* can be given expiration dates (15 mins to 30 days).  \n  - *Service account keys* usually do not expire unless manually rotated.  \n  - Rotate keys by creating a new one, updating your usage, then deleting the old one. ([elevenlabs.io](https://elevenlabs.io/docs/overview/administration/workspaces/api-keys?utm_source=openai))\n\n---\n\n## \ud83d\udee0 How to Use the Key When Making API Calls\n\n- Include it in an `xi-api-key` HTTP header for authentication.  \n- If using SDKs (Python, Node.js, etc.), usually pass the API key via an environment variable `ELEVENLABS_API_KEY`. ([elevenlabs.io](https://elevenlabs.io/docs/api-reference/authentication?utm_source=openai))\n\n---\n\nIf you want, I can walk you through creating one live\u2014by showing screenshots specific to your account UI\u2014to make sure everything lines up. Would you like me to do that?"
    }
]