Calculate expected LLM usage

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

Parâmetros de caminho

agent_idstringObrigatório

Cabeçalhos

xi-api-keystringOpcional

Solicitação

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

Resposta

Successful Response
llm_priceslist of objects

Erros

422
Llm Usage Calculate Request Unprocessable Entity Error