Skip to main content
POST
Calculate Expected Llm Usage For An Agent
LLM cost estimates are currently unavailable. This endpoint returns llm_estimate_unavailable with HTTP 503. Retrying the request does not make an estimate available.

Headers

x-api-key
string | null

Your API key for programmatic access. Send it in the x-api-key header; you can create and manage keys from the Developers page.

Path Parameters

agent_id
string
required

Body

application/json
prompt_length
integer | null

Length of the prompt in characters.

number_of_pages
integer | null

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

rag_enabled
boolean | null

Whether RAG is enabled.

Response

Successful Response

llm_prices
LLMUsageCalculatorLLMResponseModel · object[]
required