After your system has generated, consumed, or exported energy, you can calculate the corresponding import cost or export value. The simplest way is to submit meter records from your devices to Flatpeak and let it calculate the cost automatically. Flatpeak also keeps historical values up to date if past energy prices change — for example, after market settlements or provider changes. You can view instant cost results for each record or fetch aggregated totals for any period (e.g. day, week, month, or year). To implement, choose one of the two main options:Documentation Index
Fetch the complete documentation index at: https://docs.flatpeak.com/llms.txt
Use this file to discover all available pages before exploring further.
- Submit device meter records and let Flatpeak calculate the cost or value (recommended)
- Retrieve energy prices from Flatpeak and calculate the cost or value within your own system
- Calculate with Flatpeak
- Retrieve price

Instant cost calculation
Ingests a meter record and instantly returns energy cost (or export value).
Historic cost reporting
Calculates energy cost (or export value) from previously submitted meter records.


