Billing
Of course, it is also possible to view consumption via API, which can be done with the following request:
HTTP Request
GET /k8sgpu/v1/billing/{year}/{month}
HTTP Response
{
"month": 11,
"year": 2024,
"pods": [
{
"pod": {
"cluster": "skg00018",
"online": false,
"local_reference_name": "69d416b2-1c02-4910-9fcb-ae0d0da408f0",
"local_reference_namespace": "skg00018-gpu",
"remote_reference_name": "inference-service-5cfb7489f4-2d4xj",
"remote_reference_namespace": "remote-gpu"
},
"cost": 281.88,
"online_hour": 348,
"runtime_class": "seeweb-nvidia-1xa6000",
"active": true
},
{
"pod": {
"cluster": "skg00018",
"online": false,
"local_reference_name": "d7b1c84f-9441-43bd-820c-7a06ed2db094",
"local_reference_namespace": "skg00018-gpu",
"remote_reference_name": "inference-service-5cfb7489f4-5xvs9",
"remote_reference_namespace": "remote-gpu"
},
"cost": 281.88,
"online_hour": 348,
"runtime_class": "seeweb-nvidia-1xa6000",
"active": true
},
{
"pod": {
"cluster": "skg00018",
"online": false,
"local_reference_name": "fc291986-c413-43fd-bec4-ff298b35ecfe",
"local_reference_namespace": "skg00018-gpu",
"remote_reference_name": "inference-service-5cfb7489f4-vmlwb",
"remote_reference_namespace": "remote-gpu"
},
"cost": 281.88,
"online_hour": 348,
"runtime_class": "seeweb-nvidia-1xa6000",
"active": true
},
]
}
Exporting consumption in CSV
It is also possible to export your consumption directly into CSV. To do this, you need to change your
accept Content-Type to:
"accept: text/csv"
The API will automatically format the data into the correct format and send the response text.