[Feat] add ElevenLabs eleven_v3 and eleven_multilingual_v2 to model cost map#20522
Merged
ishaan-jaff merged 2 commits intoBerriAI:mainfrom Feb 6, 2026
Merged
Conversation
…el cost map Register ElevenLabs TTS models for cost tracking: - elevenlabs/eleven_v3: most expressive model, 70+ languages, audio tags - elevenlabs/eleven_multilingual_v2: default TTS model, 29 languages Also update ElevenLabs docs with supported models table and eleven_v3 audio tags example.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
Greptile OverviewGreptile SummaryThis PR registers two new ElevenLabs TTS models ( Key Changes:
Technical Notes:
Confidence Score: 5/5
|
| Filename | Overview |
|---|---|
| model_prices_and_context_window.json | Added two new ElevenLabs TTS models (eleven_v3 and eleven_multilingual_v2) with correct pricing structure and metadata |
| litellm/model_prices_and_context_window_backup.json | Identical changes to main JSON file - backup file correctly maintained in sync |
| docs/my-website/docs/providers/elevenlabs.md | Added supported models table, usage example with audio tags feature, and tip about model-agnostic support |
Sequence Diagram
sequenceDiagram
participant User
participant LiteLLM
participant CostMap as Model Cost Map
participant ElevenLabs as ElevenLabs API
User->>LiteLLM: speech(model="elevenlabs/eleven_v3", input="text")
LiteLLM->>CostMap: Lookup model pricing
CostMap-->>LiteLLM: Return $0.00018 per character
LiteLLM->>ElevenLabs: POST /v1/text-to-speech/{voice_id}<br/>{"text": "...", "model_id": "eleven_v3"}
ElevenLabs-->>LiteLLM: Audio stream
LiteLLM->>CostMap: Calculate cost based on input length
LiteLLM-->>User: Return audio + cost tracking
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Relevant issues
N/A - New model registration
Pre-Submission checklist
make test-unitType
🆕 New Feature
📖 Documentation
Changes
Register ElevenLabs TTS models in the model cost map for cost tracking:
elevenlabs/eleven_v3— most expressive model, 70+ languages, audio tags support for sound effects and pauseselevenlabs/eleven_multilingual_v2— default TTS model, 29 languages, stable and production-readyBoth models priced at $0.18/1000 characters (Scale plan, 1 credit per character).
No code changes needed — the ElevenLabs integration is already model-agnostic and passes any
model_iddirectly to the API.Documentation updates
eleven_v3with audio tags (<sfx>,<pause>)