// Models · API key guide
ElevenLabs API key: how to get one
ElevenLabs is a voice API (text-to-speech, speech-to-text, sound effects…). Keys go in the xi-api-key header.
4 stepsofficial docs onlychecked 2026-10-26
01How to get a ElevenLabs API key
- Sign up / log in at elevenlabs.io.
- Open the API keys page in the dashboard and create a key.
- Optionally restrict it: scope (which endpoints), credit quota, IP allowlist (non-allowlisted IPs get 403).
- Save it as ELEVENLABS_API_KEY and send it as the xi-api-key header.
Official key page: https://elevenlabs.io/app/settings/api-keys – console labels may change; follow what the official page shows.
02Real-name, phone and credit card requirements
| Real-name / ID verification | Not mentioned. |
|---|---|
| Phone number | Not mentioned in the docs we checked (以官方为准). |
| Credit card / payment | The Free plan is $0; whether sign-up asks for a card is up to the sign-up page (以官方为准). Paid plans start at Starter. |
03Base URL and a minimal call
https://api.elevenlabs.io/v1ELEVENLABS_API_KEY · Example model:eleven_v4curl
curl -X POST "https://api.elevenlabs.io/v1/text-to-speech/JBFqnCBsd6RMkjVDRZzb?output_format=mp3_44100_128" \
-H "xi-api-key: $ELEVENLABS_API_KEY" \
-H "Content-Type: application/json" \
-d '{"text": "The first move is what sets everything in motion.", "model_id": "eleven_v4"}' \
--output speech.mp3 Python
# pip install elevenlabs
import os
from elevenlabs.client import ElevenLabs
elevenlabs = ElevenLabs(api_key=os.getenv("ELEVENLABS_API_KEY"))
audio = elevenlabs.text_to_speech.convert(
text="The first move is what sets everything in motion.",
voice_id="JBFqnCBsd6RMkjVDRZzb",
model_id="eleven_v4",
output_format="mp3_44100_128",
) 04Free quota
All free AI APIs →Free plan: $0, 10,000 credits per month shared across products (text-to-speech, speech-to-text, sound effects…). Commercial-use licensing starts at the Starter plan.
05ElevenLabs API prices
All model prices →ElevenLabs is billed in credits per plan, not per token – see its pricing page.
See the official pricing page in the sources below.
Standard (non-batch) list prices from our price database; cheapest first, max 8 rows. Prices change – the official page wins.
06Keep your API key safe
- Give each app its own key with a credit quota, so a leaked key cannot drain the whole plan.
- Keep the key in an environment variable or a secrets manager – never hard-code it, never commit it to Git, never paste it into a screenshot, chat or issue.
- Never put a long-lived key in front-end, mobile or desktop client code – anyone can extract it. Call the API from your own server.
- One key per project or environment, so a leak can be revoked without breaking everything else.
- If a key leaks, delete it in the console immediately and create a new one, then check usage and billing.
- Do not buy keys from resellers or “API relays” and do not paste your key into websites you do not trust.
07FAQ
FAQ
Where do I find my ElevenLabs API key?
Dashboard → API keys (elevenlabs.io/app/settings/api-keys). Create a new key there.
Is the ElevenLabs API free?
The Free plan includes 10,000 credits per month; commercial use requires Starter or above.
08Official sources
- ElevenLabs · Quickstart elevenlabs.io
- ElevenLabs · Authentication elevenlabs.io
- ElevenLabs · Pricing elevenlabs.io
All facts checked against these pages on 2026-10-26. If anything differs, the official page wins.