API Keys
The ElevenLabs API uses API keys for authentication. Every request to the API must include your API key, used to authenticate your requests and track usage quota. Each API key can be scoped to one of the following:- Scope restriction: Set access restrictions by limiting which API endpoints the key can access.
- Credit quota: Define custom credit limits to control usage.
xi-api-key
HTTP header as follows:
Making Requests
You can paste the command below into your terminal to run your first API request. Make sure to replace$ELEVENLABS_API_KEY
with your secret API key.
elevenlabs
Python package:
elevenlabs
Node.js package: