Calculate expected LLM usage

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

Paramètres de chemin

agent_idstringRequis

En-têtes

xi-api-keystringOptionnel

Requête

This endpoint expects an object.
prompt_lengthintegerOptionnel
Length of the prompt in characters.
number_of_pagesintegerOptionnel
Pages of content in pdf documents OR urls in agent's Knowledge Base.
rag_enabledbooleanOptionnel
Whether RAG is enabled.

Réponse

Successful Response
llm_priceslist of objects

Erreurs

422
Llm Usage Calculate Request Unprocessable Entity Error