Get month-to-date storage cost
curl --request GET \
--url https://paradigm.lighton.ai/api/v3/storage/cost \
--header 'Authorization: Bearer <token>'import requests
url = "https://paradigm.lighton.ai/api/v3/storage/cost"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://paradigm.lighton.ai/api/v3/storage/cost', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"currency": "<string>",
"period_start": "2023-12-25",
"cost": "<string>",
"billable_gib": 1,
"free_gib": 1,
"peak_bytes": 1,
"pay_as_you_go": {
"cost": "<string>",
"billable_gib": 1,
"free_gib": 1
}
}{
"detail": "System is under maintenance.",
"error": "service_maintenance",
"mode": "full_shutdown",
"reason": "<string>",
"started_at": "2023-11-07T05:31:56Z",
"endpoint_category_names": [
"<string>"
]
}Usage
Get month-to-date storage cost
Return the storage charge the caller’s company has accrued so far in the current billing month, alongside the quantities it is derived from.
cost is computed by the same code path that produces the invoice’s storage line item, so the two always agree: the month’s peak footprint is rounded up to whole GiB, free_gib is subtracted, and the remainder is billed at the published per-GiB monthly rate. Because the charge follows the peak rather than the current footprint, deleting files mid-month does not reduce it.
cost is 0 while the company stays within its allowance. For the current footprint in bytes and the free-tier cap, use GET /api/v3/storage.
GET
/
api
/
v3
/
storage
/
cost
Get month-to-date storage cost
curl --request GET \
--url https://paradigm.lighton.ai/api/v3/storage/cost \
--header 'Authorization: Bearer <token>'import requests
url = "https://paradigm.lighton.ai/api/v3/storage/cost"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://paradigm.lighton.ai/api/v3/storage/cost', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"currency": "<string>",
"period_start": "2023-12-25",
"cost": "<string>",
"billable_gib": 1,
"free_gib": 1,
"peak_bytes": 1,
"pay_as_you_go": {
"cost": "<string>",
"billable_gib": 1,
"free_gib": 1
}
}{
"detail": "System is under maintenance.",
"error": "service_maintenance",
"mode": "full_shutdown",
"reason": "<string>",
"started_at": "2023-11-07T05:31:56Z",
"endpoint_category_names": [
"<string>"
]
}