Calculate expected LLM usage

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

Path parameters

agent_idstringRequired

Headers

xi-api-keystringRequired

Request

This endpoint expects an object.
prompt_lengthinteger or nullOptional
Length of the prompt in characters.
number_of_pagesinteger or nullOptional
Pages of content in pdf documents OR urls in agent's Knowledge Base.
rag_enabledboolean or nullOptional
Whether RAG is enabled.

Response

Successful Response
llm_priceslist of objects

Errors