Calculate expected LLM usage

Returns a list of LLM models and the expected cost for using them based on the provided values.

Header

xi-api-keystringOptional

Anfrage

This endpoint expects an object.
prompt_lengthintegerErforderlich
Length of the prompt in characters.
number_of_pagesintegerErforderlich
Pages of content in PDF documents or URLs in the agent's knowledge base.
rag_enabledbooleanErforderlich
Whether RAG is enabled.

Antwort

Successful Response
llm_priceslist of objects

Fehler

422
Llm Usage Calculate Request Unprocessable Entity Error