Agents Platform

Calculate Expected Llm Usage For An Agent

Changed on

Calculates expected number of LLM tokens needed for the specified agent.

post/v1/convai/agent/{agent_id}/llm-usage/calculate

Request

  • Base URL
    https://api.elevenlabs.io (the document declares no server; this is the origin it was published from)
  • URL
    https://api.elevenlabs.io/v1/convai/agent/{agent_id}/llm-usage/calculate
  • Auth
    none declared

Path parameters

agent_idstring required

Headers

xi-api-keystring nullable

Your API key. This is required by most endpoints to access our API programmatically. You can view your xi-api-key using the 'Profile' tab on the website.

Request body

prompt_lengthinteger nullable

Length of the prompt in characters.

number_of_pagesinteger nullable

Pages of content in pdf documents OR urls in agent's Knowledge Base.

rag_enabledboolean nullable

Whether RAG is enabled.

service_tier'standard' | 'fast'

Request-time processing tier for a model.

STANDARD: default price and throughput. FAST: pays a per-token price premium for higher throughput / lower latency. See OpenAI's fast mode: https://openai.com/api-fast-mode/

Response

Successful Response

Changes