Price book API
Generated from servtuner commit 5b46cdad0e5c.
GET /price-book
Section titled “GET /price-book”The price book, with the analysis.infra_pricing and token_pricing blocks new runs get.
| Status | Meaning | Body |
|---|---|---|
200 |
Successful Response | PriceBookResource |
PUT /price-book
Section titled “PUT /price-book”Replace the price book. Runs already made keep the prices they carry.
Request body: PriceBook (application/json)
| Status | Meaning | Body |
|---|---|---|
200 |
Successful Response | PriceBookResource |
DELETE /price-book/datasheet
Section titled “DELETE /price-book/datasheet”Removes the uploaded token-price datasheet.
| Status | Meaning | Body |
|---|---|---|
204 |
Successful Response | None |
GET /price-book/datasheet
Section titled “GET /price-book/datasheet”The uploaded datasheet, byte for byte; 404 without one.
| Status | Meaning | Body |
|---|---|---|
200 |
Successful Response | None |
PUT /price-book/datasheet
Section titled “PUT /price-book/datasheet”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 |