DEV Community

Cover image for Every inference call already returns your response. We added three more fields: cost, CO2, and water.
CarbonLayer
CarbonLayer

Posted on

Every inference call already returns your response. We added three more fields: cost, CO2, and water.

Most carbon/sustainability tooling for AI means a separate dashboard, a monthly export, or a spreadsheet someone fills in manually. We built it into the call itself.

Point your existing model API calls at our endpoint at carbonlayer.polsia.io. Same response you already parse — plus:

{
...your normal response,
costUsd: 0.0021,
co2Grams: 4.7,
savedWaterMl: 12.3
}
No separate integration. No batch job reconciling usage logs against a sustainability report six months later. The number is attached to the call, generated by the routing decision, at request time.

If you're already switching between model providers or regions for latency/cost, you're one header away from also seeing the environmental cost of that same decision — check the docs at carbonlayer.polsia.io to see the exact fields.

Top comments (0)