Calculators
Cloud compute CO2 footprint API
Estimate cloud workload CO2e: compute kWh = vcpuHours x watts/vCPU / 1000 x PUE (power-usage-effectiveness, default 1.2); storage kWh = GB-months x 0.0012 x PUE; total kWh x grid intensity. Returns compute/storage/total kWh, grams/kg CO2e and tree equivalents. Answers 'CO2 of 1000 vCPU-hours','carbon footprint of my cloud bill','data center emissions with PUE 1.2','server energy to CO2'.
Price$0.01per request
MethodPOST
Route/v1/calc/carbon-cloud-compute
StatusLive
MIME typeapplication/json
Rate limit120/minute
CacheNo cache
carboncloudcomputedatacenteremissionsco2pueinfrastructure
API URL
Integration docshttps://x402.hexl.dev/v1/calc/carbon-cloud-computeExample request
{
"vcpuHours": 1000,
"storageGbMonths": 100
}Example response
{
"vcpuHours": 1000,
"wattsPerVcpu": 3.5,
"pue": 1.2,
"gridKgCO2PerKwh": 0.4,
"storageGbMonths": 100,
"computeKwh": 4.2,
"storageKwh": 0.144,
"totalKwh": 4.344,
"totalKgCO2e": 1.738,
"totalGramsCO2e": 1738,
"equivalentTrees": 0.08
}Input schema
{
"type": "object",
"required": [
"vcpuHours"
],
"properties": {
"vcpuHours": {
"type": "number",
"examples": [
1000
]
},
"wattsPerVcpu": {
"type": "number",
"default": 3.5
},
"pue": {
"type": "number",
"default": 1.2
},
"gridKgCO2PerKwh": {
"type": "number",
"default": 0.4
},
"storageGbMonths": {
"type": "number",
"default": 0,
"examples": [
100
]
}
}
}Output schema
{
"type": "object",
"additionalProperties": true
}