v4

OpenAPI 3.1.02026-07-313621,3961.8 MB
Agents Platform

Calculate Expected Llm Usage

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

post/v1/convai/llm-usage/calculate

Request body

prompt_lengthinteger required

Length of the prompt in characters.

number_of_pagesinteger required

Pages of content in PDF documents or URLs in the agent's knowledge base.

rag_enabledboolean required

Whether RAG is enabled.

Response

Successful Response