Calculate expected LLM usage

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

ヘッダー

xi-api-keystringオプション

リクエスト

This endpoint expects an object.
prompt_lengthinteger必須
Length of the prompt in characters.
number_of_pagesinteger必須
Pages of content in PDF documents or URLs in the agent's knowledge base.
rag_enabledboolean必須
Whether RAG is enabled.

レスポンス

Successful Response
llm_priceslist of objects

エラー

422
Llm Usage Calculate Request Unprocessable Entity Error