Usage and cost
curl --request GET \
--url https://api.compute.anonalabs.com/v1/usage \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.compute.anonalabs.com/v1/usage"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.compute.anonalabs.com/v1/usage', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"tenant": {
"id": "<string>",
"slug": "<string>",
"planId": "<string>",
"name": "<string>",
"planName": "<string>",
"billingModel": "<string>",
"status": "<string>"
},
"period": {
"key": "2026-10",
"start": "2023-11-07T05:31:56Z",
"end": "2023-11-07T05:31:56Z",
"asOf": "2023-11-07T05:31:56Z",
"current": true,
"ratedThrough": "2023-11-07T05:31:56Z"
},
"availablePeriods": [
"<string>"
],
"meters": [
{
"meter": "vcpu_hours",
"unit": "<string>",
"quantity": 123,
"unitPriceUsd": 123,
"amountUsd": 123,
"ratedUsd": 123,
"pendingUsd": 123
}
],
"totals": {
"ratedUsd": 123,
"pendingUsd": 123,
"amountUsd": 123,
"creditUsd": 123,
"dueUsd": 123,
"projectedUsd": 123
},
"daily": [
{}
],
"sandboxes": [
{}
],
"sandboxCount": 123,
"templates": [
{}
],
"lifecycle": {}
}{
"code": 123,
"message": "<string>",
"error_code": "<string>"
}{
"code": 123,
"message": "<string>",
"error_code": "<string>"
}{
"code": 123,
"message": "<string>",
"error_code": "<string>"
}Usage and billing
Usage and cost
Metered usage and its cost for a billing period: meters, totals (rated,
not yet rated, credit, due) with a projection for the current month, a
daily breakdown, and the most expensive sandboxes and templates.
Dashboard sessions of any role; API keys with the usage:read scope.
GET
/
v1
/
usage
Usage and cost
curl --request GET \
--url https://api.compute.anonalabs.com/v1/usage \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.compute.anonalabs.com/v1/usage"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.compute.anonalabs.com/v1/usage', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"tenant": {
"id": "<string>",
"slug": "<string>",
"planId": "<string>",
"name": "<string>",
"planName": "<string>",
"billingModel": "<string>",
"status": "<string>"
},
"period": {
"key": "2026-10",
"start": "2023-11-07T05:31:56Z",
"end": "2023-11-07T05:31:56Z",
"asOf": "2023-11-07T05:31:56Z",
"current": true,
"ratedThrough": "2023-11-07T05:31:56Z"
},
"availablePeriods": [
"<string>"
],
"meters": [
{
"meter": "vcpu_hours",
"unit": "<string>",
"quantity": 123,
"unitPriceUsd": 123,
"amountUsd": 123,
"ratedUsd": 123,
"pendingUsd": 123
}
],
"totals": {
"ratedUsd": 123,
"pendingUsd": 123,
"amountUsd": 123,
"creditUsd": 123,
"dueUsd": 123,
"projectedUsd": 123
},
"daily": [
{}
],
"sandboxes": [
{}
],
"sandboxCount": 123,
"templates": [
{}
],
"lifecycle": {}
}{
"code": 123,
"message": "<string>",
"error_code": "<string>"
}{
"code": 123,
"message": "<string>",
"error_code": "<string>"
}{
"code": 123,
"message": "<string>",
"error_code": "<string>"
}Authorizations
ApiKeyAuthBearerAuth
An Anona Compute API key (e2b_ followed by lowercase hex).
Query Parameters
Pattern:
^(current|\d{4}-\d{2})$Response
The usage document.
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes