Skip to content

Cost

GET
/ratchet/cost
curl --request GET \
--url http://localhost:8000/ratchet/cost

The 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).

days
Any of:
integer

Successful Response

Media typeapplication/json
Response Cost Ratchet Cost Get
object

Example generated

{}

Validation Error

Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string

Example generated

{
"detail": [
{
"loc": [
"example"
],
"msg": "example",
"type": "example"
}
]
}