Agents Platform

Calculate Expected Llm Usage

Changed on

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

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.

service_tier'standard' | 'fast'

Request-time processing tier for a model.

STANDARD: default price and throughput. FAST: pays a per-token price premium for higher throughput / lower latency. See OpenAI's fast mode: https://openai.com/api-fast-mode/

Response

Successful Response

Changes