/elevenlabs-pack:elevenlabs-upgrade-migrationfrom elevenlabs-pack
Upgrades ElevenLabs SDK versions and migrates between API model generations, handling package renames, model ID changes, and deprecations for Node.js and Python.
Ships in elevenlabs-pack. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Guide for upgrading the ElevenLabs SDK and migrating between model generations.
Covers the JS SDK package rename (community elevenlabs → official
@elevenlabs/elevenlabs-js), model ID changes across generations, voice-settings
evolution, and API endpoint stability.
Work the seven steps below at a high level from this file; drill into references/migration-guide.md for the full command set and per-step code, and references/examples.md for three end-to-end worked scenarios.
All API calls authenticate with an account API key passed as the xi-api-key
header. Store it in the ELEVENLABS_API_KEY environment variable — never inline a
key in source. The SDK clients read the same value (process.env.ELEVENLABS_API_KEY
in Node, api_key=... in Python).
ELEVENLABS_API_KEY exported in the environmentThe migration is a seven-step, branch-isolated workflow. Read package manifests and
config with Read, apply import/model changes with Edit, add new config files
(e.g. config/models.ts) with Write, and run the npm/pip/git commands via
Bash. Full commands and code for each step are in
references/migration-guide.md.
elevenlabs
package, install @elevenlabs/elevenlabs-js, and update imports on an
upgrade/elevenlabs-sdk branch.selectModel() helper that falls back off
eleven_v3 when WebSocket streaming is required.stability, similarity_boost, style,
and speed against each model's capabilities./v1/ endpoints and adopt the
enhanced /v2/voices search where useful.requirements.txt, and move
from the old module-level generate/set_api_key API to the client object.The essential skeleton for the highest-leverage step (the JS package swap):
npm uninstall elevenlabs
npm install @elevenlabs/elevenlabs-js
git checkout -b upgrade/elevenlabs-sdk
import { ElevenLabsClient } from "@elevenlabs/elevenlabs-js";
const client = new ElevenLabsClient({
apiKey: process.env.ELEVENLABS_API_KEY,
maxRetries: 3,
timeoutInSeconds: 60,
});
| Old Model | New Model | Migration Notes |
|---|---|---|
eleven_monolingual_v1 | eleven_multilingual_v2 | 29 languages; same voice IDs work |
eleven_multilingual_v1 | eleven_multilingual_v2 | Better emotional range; same API |
eleven_english_v1 | eleven_turbo_v2_5 | Lower latency; same voice_settings |
eleven_turbo_v2 | eleven_flash_v2_5 | Same quality, lower latency (~75ms) |
eleven_multilingual_v2 | eleven_v3 | Most expressive; 70+ languages; NO WebSocket support |
Full model-selection code, voice-settings and endpoint tables, the Python client migration, and the rollback procedure live in references/migration-guide.md.
Working through this skill produces:
upgrade/elevenlabs-sdk branch with the package swap and updated imports.package.json on @elevenlabs/elevenlabs-js, or a
pinned elevenlabs== line in requirements.txt.config/models.ts) mapping quality/balanced/speed
preferences to current model IDs with a WebSocket-safe fallback.200 from the TTS smoke test, and a
non-empty voice-list count.git revert) if validation fails.| Issue | Cause | Solution |
|---|---|---|
Cannot find module | Old package name | Update import to @elevenlabs/elevenlabs-js |
model_not_found | Deprecated model ID | Map to current model (see table) |
| WebSocket fails after model change | eleven_v3 doesn't support WS | Use eleven_flash_v2_5 or eleven_multilingual_v2 |
| Voice settings ignored | Wrong parameter names | Verify stability, similarity_boost, style, speed |
Three complete, copy-pasteable walkthroughs are in references/examples.md:
elevenlabs community package —
branch, swap the package, update the client, and validate with a smoke test.eleven_v3 while keeping streaming working via automatic downgrade.Minimal first example (the package swap and smoke test):
git checkout -b upgrade/elevenlabs-sdk
npm uninstall elevenlabs && npm install @elevenlabs/elevenlabs-js
npm test
curl -s -o /dev/null -w "%{http_code}" \
-X POST "https://api.elevenlabs.io/v1/text-to-speech/21m00Tcm4TlvDq8ikWAM" \
-H "xi-api-key: ${ELEVENLABS_API_KEY}" \
-H "Content-Type: application/json" \
-d '{"text":"Upgrade test.","model_id":"eleven_flash_v2_5"}'
For CI integration during upgrades, see the elevenlabs-ci-integration skill, which
wires the smoke test and voice-list check into a pipeline gate so a bad SDK or model
bump fails the build before it ships.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
elevenlabs, sdk-upgrade, api-migration, voice-ai, model-migration
npx claudepluginhub jeremylongshore/tons-of-skills-marketplace --plugin elevenlabs-pack18 skills in this plugin
/elevenlabs-ci-integrationConfigure CI/CD pipelines for ElevenLabs with mocked unit tests and gated
integration tests.
Use when setting up GitHub Actions for TTS projects, configuring CI test
strategies, or automating ElevenLabs integration validation without burning
character quota on every PR.
Trigger with "elevenlabs CI", "elevenlabs GitHub Actions",
"elevenlabs automated tests", "CI elevenlabs", "elevenlabs pipeline".
/elevenlabs-common-errorsDiagnose and fix ElevenLabs API errors by HTTP status code.
Use when encountering ElevenLabs errors, debugging failed TTS/STS requests,
or troubleshooting voice cloning and streaming issues.
Trigger with "elevenlabs error", "fix elevenlabs", "elevenlabs not working",
"debug elevenlabs", "elevenlabs 401", "elevenlabs 429", "elevenlabs 400".
/elevenlabs-core-workflow-aImplement ElevenLabs text-to-speech and voice cloning workflows.
Use when building TTS features, cloning voices from audio samples, streaming
speech to a chatbot, or implementing the primary ElevenLabs money-path: voice
generation.
Trigger with "elevenlabs TTS", "text to speech", "voice cloning elevenlabs",
"clone a voice", "generate speech", "elevenlabs voice".
Other plugins' skills for the same job