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