Calculate expected LLM usage

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

Pfadparameter

agent_idstringErforderlich

Header

xi-api-keystringOptional

Anfrage

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.

Antwort

Successful Response
llm_priceslist of objects

Fehler

422
Llm Usage Calculate Request Unprocessable Entity Error