GET
/ratchet/cost
const url = 'http://localhost:8000/ratchet/cost';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url http://localhost:8000/ratchet/costThe cost report (ratchet.cost.cost_report): savings per token and by GPU-hours paid, the break-even volume, the
crossover with the hosted fallback, observed utilization and a recommendation, for every day or the last days
ledger days. Read like /ratchet/stats (ADR 0061).
Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Responses
Section titled “Responses”Successful Response
Media typeapplication/json
Response Cost Ratchet Cost Get
object
Example generated
{}Validation Error
Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Example generated
{ "detail": [ { "loc": [ "example" ], "msg": "example", "type": "example" } ]}