Calculate expected LLM usage

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

En-têtes

xi-api-keystringOptionnel

Requête

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

Réponse

Successful Response
llm_priceslist of objects

Erreurs

422
Llm Usage Calculate Request Unprocessable Entity Error