Calculate expected LLM usage

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

Path parameters

agent_idstringRequired

Headers

xi-api-keystringOptional

Request

This endpoint expects an object.
prompt_lengthintegerOptional

Length of the prompt in characters.

number_of_pagesintegerOptional

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

rag_enabledbooleanOptional

Whether RAG is enabled.

Response

Successful Response

llm_priceslist of objects

Errors