v5

OpenAPI 3.1.02026-08-043621,4011.8 MB
Agents Platform

Calculate Expected Llm Usage For An Agent

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

post/v1/convai/agent/{agent_id}/llm-usage/calculate

Path parameters

agent_idstring required

Headers

xi-api-keystring nullable

Your API key. This is required by most endpoints to access our API programmatically. You can view your xi-api-key using the 'Profile' tab on the website.

Your API key. This is required by most endpoints to access our API programmatically. You can view your xi-api-key using the 'Profile' tab on the website.

Request body

prompt_lengthinteger nullable

Length of the prompt in characters.

number_of_pagesinteger nullable

Pages of content in pdf documents OR urls in agent's Knowledge Base.

rag_enabledboolean nullable

Whether RAG is enabled.

Response

Successful Response