How it works
Every cost component is described as a machine-readable calculation pipeline — a small, composable graph of operations likemultiply, add, constant, aggregate, and select. The same fixed set of operations models everything from a flat monthly subscription fee to a peak-demand tariff with seasonal time-of-use bands.
You can evaluate pipelines yourself in any language — or call our Calculate endpoint and get a step-by-step cost breakdown in the response.
Why developers choose this
- Implement once, expand across operators. There are only a handful of operations to implement. Adding a new DSO means reading new pipeline definitions, not writing new code.
- Rules change, your code doesn’t. When a DSO updates their rates, the pipeline definition updates — your integration stays the same.
- Full transparency. Every calculation returns the intermediate steps. No black boxes. You can audit, display, or optimise against every line item.
- Calculate or optimise. The same pipeline serves both: with concrete inputs it computes costs deterministically; with decision-variable inputs it produces variables and constraints for an optimisation solver.
Which question are you asking?
A kWh has no grid price on its own: the cost depends on when it was used, the peaks around it and the tariff. So start from the question you want answered:
Only the last one needs no consumption data, and it is a rough guide: a component whose price follows the spot price has no fixed rate to show.
Coverage
Live in Sweden today — covering all DSOs with published tariffs. Designed for multi-market expansion across European markets.Get started
1
Contact us
Contact us to get access for your company. Then make an API key in console.engrate.io. See Authentication.
2
Follow the quickstart
Find the tariff for an address and calculate a month’s grid cost with the Cost of Energy quickstart.
3
Explore the API reference
Dive into calculation pipelines, functions, and conditions.
4
Connect your AI tools
Use the MCP integration to explore tariffs and calculations from Claude, Cursor, or VS Code.
API reference
Explore the Cost of Energy API — models, calculation pipelines, functions, and endpoints