Calculate solar storage self-consumption API
Calculate self-consumption and self-sufficiency from supplied generation, load, and optional import/export energy.
The Calculate solar storage self-consumption operation is part of the Solar, Battery & Distributed Energy Intelligence API on BRAINIAC.software. Calculate self-consumption and self-sufficiency from supplied generation, load, and optional import/export energy. It is exposed as POST /api/v1/solar-battery/storage-self-consumption and priced at $0.04 USDC on Base. Payment uses the x402 exact scheme: an unpaid call returns HTTP 402 with payment requirements; after paying the exact USDC amount, retry the same request with a payment-signature header and Idempotency-Key. No account and no API key are required. Data sources for this product: Caller-supplied solar generation, panel measurements, inverter logs, battery telemetry, warranties, and consumption records Limitations: No inverter cloud platform or paid energy monitoring service is used and no API key is required. Degradation, SOH, efficiency, and deviation metrics use only supplied measurements. Missing values are not invented. Inverter fault labels come from caller-supplied fault maps or simple keyword signals in supplied messages. Warranty comparisons use only caller-supplied warranty thresholds and measured values. Legal warranty coverage is not determined. Performance reports aggregate only sections for which records were supplied. Outputs are compliance prechecks, drafts, or data lookups for human review. They are not official determinations, legal advice, identity confirmation, or certified filings. Related operations in this group include Detect solar generation deviations, Estimate solar panel degradation, Classify solar inverter faults, Analyze battery cycle aging. Open the group documentation for the full request schema, field notes, and response examples before integrating.
/api/v1/solar-battery/storage-self-consumptionExample request
curl -i -X POST "https://www.brainiac.software/api/v1/solar-battery/storage-self-consumption" \
-H 'content-type: application/json' \
-H 'Idempotency-Key: <fresh-64-character-random-hex-key>' \
--data-binary @- <<'JSON'
{
"asOf": "2026-11-04T21:00:00.000Z",
"consumption": [
{
"id": "N1",
"assetId": "SITE-A",
"at": "2026-11-01",
"generationKwh": 180,
"loadKwh": 120,
"gridExportKwh": 50,
"gridImportKwh": 10,
"source": "Caller-supplied"
},
{
"id": "N2",
"assetId": "SITE-A",
"at": "2026-11-02",
"generationKwh": 210,
"loadKwh": 150,
"gridExportKwh": 55,
"gridImportKwh": 5,
"source": "Caller-supplied"
}
]
}
JSONAn unpaid probe returns HTTP 402 with x402 payment requirements. After paying the exact USDC amount on Base, retry the identical request with a payment-signature header.
FAQ
- Do I need an API key? No. Pay the listed USDC amount with x402.
- What network? Base (eip155:8453), USDC.
- Is this an official determination? No. Results are for human review against the cited sources.
Related operations
- Detect solar generation deviations — $0.04 USDC
- Estimate solar panel degradation — $0.04 USDC
- Classify solar inverter faults — $0.04 USDC
- Analyze battery cycle aging — $0.04 USDC
Related APIs
Solar, Battery & Distributed Energy Intelligence APIFull docsHow it works