Calculate expected LLM usage

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

Cabeçalhos

xi-api-keystringOpcional

Solicitação

This endpoint expects an object.
prompt_lengthintegerObrigatório
Length of the prompt in characters.
number_of_pagesintegerObrigatório
Pages of content in PDF documents or URLs in the agent's knowledge base.
rag_enabledbooleanObrigatório
Whether RAG is enabled.

Resposta

Successful Response
llm_priceslist of objects

Erros

422
Llm Usage Calculate Request Unprocessable Entity Error