v5

latestOpenAPI 3.1.12026-08-0826601.1 MB
LLM

Quotes the credit cost of LLM usage. Each entry is the usage of ONE model call and is priced on its own, because provider pricing is tiered on the size of a single request: summing a session into one entry would quote the long-context rate. Prices through the same LiteLLM cost map and the same token→credit rate that bills real usage, so a client (e.g. the agent's /cost) needs no copy of either. Records nothing and spends nothing. Usage on a model LiteLLM cannot price contributes 0 credits and the model is named in unpricedModels.

post/v1/llm/cost

Headers

Authorizationstring

Request body

Response

Default Response