Calculate expected LLM usage

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

パスパラメータ

agent_idstring必須

ヘッダー

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 agent's Knowledge Base.
rag_enabledbooleanオプション
Whether RAG is enabled.

レスポンス

Successful Response
llm_priceslist of objects

エラー

422
Llm Usage Calculate Request Unprocessable Entity Error