Skip to content

Price book API

Generated from servtuner commit 5b46cdad0e5c.

The price book, with the analysis.infra_pricing and token_pricing blocks new runs get.

Status Meaning Body
200 Successful Response PriceBookResource

Replace the price book. Runs already made keep the prices they carry.

Request body: PriceBook (application/json)

Status Meaning Body
200 Successful Response PriceBookResource

Removes the uploaded token-price datasheet.

Status Meaning Body
204 Successful Response None

The uploaded datasheet, byte for byte; 404 without one.

Status Meaning Body
200 Successful Response None

Upload the token-price datasheet (LiteLLM’s model-price JSON): runs priced by the datasheet fetch it from the api, so an install with no internet access can price by the token.

Request body: object (application/json)

Status Meaning Body
200 Successful Response PriceBookResource