provider Agents Platform POST /v1/convai/llm-usage/calculate
@utdk/elevenlabs /v1/convai/llm-usage/calculate
Calculate Expected Llm Usage
Returns a list of LLM models and the expected cost for using them based on the provided values.

Try it

Authentication
Configure credentials for ElevenLabs API Documentation
Gateway
The gateway proxies requests and injects credentials server-side. Configure credentials above, then enter your gateway URL.

Saved automatically to browser storage.

getPublicLlmExpectedCostCalculation
POST/v1/convai/llm-usage/calculate
Returns a list of LLM models and the expected cost for using them based on the provided values.

Input

required

Length of the prompt in characters.

required

Pages of content in PDF documents or URLs in the agent's knowledge base.

required

Whether RAG is enabled.

Enter a gateway URL above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import elevenlabs from '@utdk/elevenlabs';

await elevenlabs.getPublicLlmExpectedCostCalculation()