I've been using the same ElevenLabs voice (same vo...
# ask-ai
m
I've been using the same ElevenLabs voice (same voice id and model), initially via inference and now using plugin - how come the voice changed since I start using plugin?
t
Thanks for reaching out, Fancy. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Thanks — you're asking why the same ElevenLabs
voice_id
+
model
sounds different after switching from LiveKit Inference to the ElevenLabs plugin. Good question — here’s what’s happening and what you can check. Why it changed • LiveKit Inference uses a limited, pre-configured subset of ElevenLabs voices and applies LiveKit-managed defaults. • The ElevenLabs plugin sends requests directly to your ElevenLabs account and can use account-level voice versions, custom voices, or additional voice settings that Inference doesn’t expose. • Even with the same
voice_id
and
model
, differences can come from voice version updates, account-level tuning (similarity boost, style, stability), or cloned/fine-tuned voices only available via your ElevenLabs account. What you can check • Confirm the exact voice version and any customizations in your ElevenLabs account (styles, similarity boost, fine-tuning). • Compare the plugin request parameters to the Inference defaults (if you have logs) — look for any extra TTS options the plugin sends. • If you want the Inference sound, try matching the plugin’s parameters to Inference defaults or request the plugin call with the same lighter/default settings. If you’d like, tell me: • the
voice_id
and
model
(or whether it’s a custom/clone voice), and • one sample of plugin TTS parameters (e.g., similarity or style settings) if available — and I’ll help you compare settings and suggest exact parameter changes to restore the original sound. Sources: ElevenLabs TTS | LiveKit Docs | ElevenLabs TTS plugin guide | LiveKit Docs
m
Why am I still getting charged for additional inference credits since I'm using elevenlabs plugin with my own api key now>?
t
You're likely still seeing LiveKit Inference credit usage because some part of your agent session is still routing a model through LiveKit Inference rather than fully using your ElevenLabs plugin + API key. Key points to check: • Confirm your agent configuration: ensure TTS/STT/LLM components are instantiated as plugin providers with your credentials (e.g.,
elevenlabs.TTS(...)
,
elevenlabs.STT(...)
,
openai.LLM(...)
) rather than using model strings like
elevenlabs/eleven_turbo_v2_5
or
openai/gpt-4.1-mini
which go through LiveKit Inference and consume credits. • If any TTS/STT calls still use an Inference model ID (for example
elevenlabs/eleven_turbo_v2_5:voice_id
), those calls will bill LiveKit Inference credits even if you also configured the plugin. • Check LiveKit Cloud dashboard → Inference usage to see which specific model IDs are consuming credits. If you want, share: • the agent config (the LLM/STT/TTS lines you’re using) or • a screenshot of the Inference usage entries from your dashboard and I’ll point out exactly which component is still using LiveKit Inference and what to change to stop those charges. Sources: ElevenLabs STT plugin guide | LiveKit docs | ElevenLabs TTS plugin guide | LiveKit Docs | Models | LiveKit Docs | Large language models (LLM) | LiveKit Docs | ElevenLabs TTS | LiveKit Docs
m
This is the session config snippet:
Copy code
session = AgentSession(
        stt="deepgram/nova-3",
        llm=anthropic.LLM(
            model="claude-haiku-4-5",
        ),
        tts=elevenlabs.TTS(
            voice_id="cgSgspJ2msm6clMCkdW9",
            model="eleven_turbo_v2_5",
            encoding = 'mp3_24000_48',
            api_key=ELEVENLABS_API_KEY
        ),
Here's the screenshot of my additional inference usage:
t
Thanks — I’m looking at the session snippet and the screenshot you shared. You’re asking why LiveKit is still charging additional Inference credits for ElevenLabs TTS even though you supplied your ElevenLabs API key. What’s happening • Your TTS is configured with
elevenlabs.TTS(..., model="eleven_turbo_v2_5")
. LiveKit records usage for the ElevenLabs TTS model string
eleven_turbo_v2_5
and applies Inference credit accounting to characters processed by that model. The screenshot shows the first 28,846 chars covered under the included allotment and an additional 56,229 chars billed as “Additional Inference credits” ($8.44 at $150 per million chars). What to check / next steps • Confirm your code is using the plugin object (as shown) and not any other call that uses the Inference model string elsewhere in your app. Search the codebase for usages of
"eleven_turbo_v2_5"
or `elevenlabs/eleven_turbo_v2_5`—any call that uses that model ID will be billed by LiveKit. • If all code paths use
elevenlabs.TTS(..., api_key=ELEVENLABS_API_KEY)
and you still see charges, share the full agent/session instantiation (exact lines for
AgentSession
creation). I’ll check for any implicit model routing (LLM/STT or fallback) that might cause the TTS to be routed through Inference. • To reduce charges: lower TTS character output, batch/summarize text before TTS, or use a different voice/model if you have lower-cost options in ElevenLabs. If you want, paste any other TTS-related calls or the agent/session creation block and I’ll point out exactly which line causes LiveKit Inference billing.
m
There is no where else using eleven_turbo_v2_5 in my code.
t
Thanks — you're saying no other code uses
eleven_turbo_v2_5
. I reviewed your session snippet and the invoice lines; here’s the direct explanation and precise next checks. Why you’re still seeing LiveKit Inference charges • Even when you pass your ElevenLabs API key via
elevenlabs.TTS(...)
, LiveKit still records and may bill Inference credits for TTS traffic attributed to the ElevenLabs TTS model
eleven_turbo_v2_5
. Your session shows an included allotment (28,846 chars) plus additional chars billed (56,229 chars) for that same model string. Exact things to check right now 1. Confirm the TTS object is actually the plugin class at runtime: ◦ Print or log the type of your
tts
value right after instantiation (e.g.,
print(type(session.tts))
) to ensure it’s
elevenlabs.TTS
and not a string/model proxy. 1. Verify there’s no runtime fallback or agent config that replaces plugin usage with an inference model: ◦ Check AgentSession defaults, agent factory code, or any middleware that may replace or translate
tts
into a model string before requests run. 1. Inspect request logs for TTS calls: ◦ Look for outgoing requests from your app to ElevenLabs (using your API key) vs. requests routed to LiveKit Inference. The billing shows characters tied to
eleven_turbo_v2_5
, so find the corresponding request entries. 1. Confirm API key usage: ◦ Ensure
ELEVENLABS_API_KEY
is set and used in the environment where the billed sessions ran (a mismatch could cause LiveKit to route to Inference). 1. Check the LiveKit Cloud Inference usage view for timestamps and session IDs: ◦ Match billed usage timestamps to your app logs to find which session call produced the charged characters. If you want, paste the exact AgentSession creation lines (including any surrounding code that constructs the session) and one example TTS invocation you run at runtime. I’ll point to the exact line that could be causing LiveKit to count those chars and show how to ensure calls go directly to ElevenLabs with your key.