Solar Design Tariff Savings
by Bill Savings Under a TOU Tariff in Other
Compute bill savings from caller interval generation and load under a time-of-use tariff with export credit, net metering or no export value. Docs: https://www.brainiac.software/api/solar-design/tariff-savings
https://www.brainiac.software/api/v1/solar-design/tariff-savings- Price
- $0.03
- per call in USDC
- Uptime
- 86.7%
- last 30 days
- Response time
- 250 ms
- 539 ms slowest 5%
- Last check
- Passed
- 6 h ago, next any minute now
Reliability
Status and outage history · Atom feed · Watch with other listings
How to call it
POST https://www.brainiac.software/api/v1/solar-design/tariff-savings
Each call costs $0.03 in USDC on Base, paid with the request over x402.
Run a free test callOne unpaid request, the way an agent sends it. You see the payment challenge it gets back. Nothing is charged.
Example request
From the listing.
POST https://www.brainiac.software/api/v1/solar-design/tariff-savings
content-type: application/json
{
"demandCharge": null,
"exportMode": "export_rate",
"exportPrice": 0.05,
"fixedCharges": 0,
"generationKwh": [
0,
0,
0,
0,
0,
0,
0.2,
0.8,
1.5,
2.2,
2.8,
3,
3.1,
2.9,
2.4,
1.7,
0.9,
0.3,
0,
0,
0,
0,
0,
0
],
"importPrice": [
0.1,
0.1,
0.1,
0.1,
0.1,
0.1,
0.1,
0.25,
0.25,
0.25,
0.25,
0.25,
0.25,
0.25,
0.25,
0.25,
0.4,
0.4,
0.4,
0.4,
0.25,
0.1,
0.1,
0.1
],
"intervalHours": 1,
"loadKwh": [
0.5,
0.5,
0.5,
0.5,
0.5,
0.5,
0.5,
1.5,
1,
0.8,
0.8,
0.8,
0.9,
0.9,
0.8,
0.8,
1,
2,
2.5,
2,
1.5,
1,
0.7,
0.5
]
}Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
billingPeriods | array of integer | No | billing Periods supplied by the caller for this operation. |
demandCharge | object or null | No | demand Charge supplied by the caller for this operation. |
exportMode | string | No | export Mode supplied by the caller for this operation. One of: export_rate, net_metering_kwh, none. |
exportPrice | number | No | export Price supplied by the caller for this operation. |
fixedCharges | number | No | fixed Charges supplied by the caller for this operation. |
generationKwh | array of number | Yes | generation Kwh supplied by the caller for this operation. |
importPrice | array of number | Yes | import Price supplied by the caller for this operation. |
intervalHours | number | No | interval Hours supplied by the caller for this operation. |
loadKwh | array of number | Yes | load Kwh supplied by the caller for this operation. |
Example response
The provider's example. We can't check it without paying.
{
"billWithPv": 2.9799999999999995,
"billWithoutPv": 6.02,
"exportKwh": 12.8,
"importKwh": 14,
"limitations": [
"Outputs are design-stage calculations on caller-supplied inputs for human review. They are not engineering stamps, code compliance determinations, or utility",
"Tariff prices and export rules are caller-supplied; no utility rate database is queried."
],
"savings": 3.04,
"selfConsumedKwh": 9,
"selfConsumptionRate": 0.4128440366972478,
"sources": [
{
"retrievedAt": "2026-11-14",
"source": "Caller-supplied module, inverter, irradiance and site inputs processed locally",
"status": "ok",
"url": "https://www.brainiac.software/api/v1/solar-design"
}
]
}Call it from code
The curl command shows the payment challenge. The JavaScript and Python versions pay and call, and never pay more than $0.03.
curl: see the payment challenge
# bash or zsh: see the payment challenge. Nothing is charged.
curl -sS -g -i -X POST 'https://www.brainiac.software/api/v1/solar-design/tariff-savings' \
-H 'content-type: application/json' \
--data-raw '{"demandCharge":null,"exportMode":"export_rate","exportPrice":0.05,"fixedCharges":0,"generationKwh":[0,0,0,0,0,0,0.2,0.8,1.5,2.2,2.8,3,3.1,2.9,2.4,1.7,0.9,0.3,0,0,0,0,0,0],"importPrice":[0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.4,0.4,0.4,0.4,0.25,0.1,0.1,0.1],"intervalHours":1,"loadKwh":[0.5,0.5,0.5,0.5,0.5,0.5,0.5,1.5,1,0.8,0.8,0.8,0.9,0.9,0.8,0.8,1,2,2.5,2,1.5,1,0.7,0.5]}'
# x402 v2 sends the challenge base64-encoded in the PAYMENT-REQUIRED header (v1 sends it in the body).
# To read the header:
curl -sS -g -o /dev/null -D - -X POST 'https://www.brainiac.software/api/v1/solar-design/tariff-savings' \
-H 'content-type: application/json' \
--data-raw '{"demandCharge":null,"exportMode":"export_rate","exportPrice":0.05,"fixedCharges":0,"generationKwh":[0,0,0,0,0,0,0.2,0.8,1.5,2.2,2.8,3,3.1,2.9,2.4,1.7,0.9,0.3,0,0,0,0,0,0],"importPrice":[0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.4,0.4,0.4,0.4,0.25,0.1,0.1,0.1],"intervalHours":1,"loadKwh":[0.5,0.5,0.5,0.5,0.5,0.5,0.5,1.5,1,0.8,0.8,0.8,0.9,0.9,0.8,0.8,1,2,2.5,2,1.5,1,0.7,0.5]}' \
| grep -i '^payment-required:' | cut -d' ' -f2 | tr -d '\r' | base64 --decodeJavaScript: pay and call
// npm i @x402/fetch @x402/evm viem
import { wrapFetchWithPayment, x402Client } from "@x402/fetch";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
// Pays at most $0.03 per call.
const client = new x402Client().setSpendControls({ maxAmountPerPayment: "$0.03" });
registerExactEvmScheme(client, { signer: privateKeyToAccount(process.env.EVM_PRIVATE_KEY) });
const pay = wrapFetchWithPayment(fetch, client);
// Not sure it's safe to pay? ToolVet checks it first for $0.005. Pay for that from a separate
// client: this one is capped at $0.03 per payment. GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fwww.brainiac.software%2Fapi%2Fv1%2Fsolar-design%2Ftariff-savings&method=POST
const res = await pay("https://www.brainiac.software/api/v1/solar-design/tariff-savings", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({
"demandCharge": null,
"exportMode": "export_rate",
"exportPrice": 0.05,
"fixedCharges": 0,
"generationKwh": [
0,
0,
0,
0,
0,
0,
0.2,
0.8,
1.5,
2.2,
2.8,
3,
3.1,
2.9,
2.4,
1.7,
0.9,
0.3,
0,
0,
0,
0,
0,
0
],
"importPrice": [
0.1,
0.1,
0.1,
0.1,
0.1,
0.1,
0.1,
0.25,
0.25,
0.25,
0.25,
0.25,
0.25,
0.25,
0.25,
0.25,
0.4,
0.4,
0.4,
0.4,
0.25,
0.1,
0.1,
0.1
],
"intervalHours": 1,
"loadKwh": [
0.5,
0.5,
0.5,
0.5,
0.5,
0.5,
0.5,
1.5,
1,
0.8,
0.8,
0.8,
0.9,
0.9,
0.8,
0.8,
1,
2,
2.5,
2,
1.5,
1,
0.7,
0.5
]
}),
});
console.log(res.status, await res.text());Python: pay and call
# pip install "x402[requests,evm]"
import os
from eth_account import Account
from x402 import x402ClientSync
from x402.http.clients import x402_requests
from x402.mechanisms.evm import EthAccountSigner
from x402.mechanisms.evm.exact.register import register_exact_evm_client
# Pays at most $0.03 per call.
client = x402ClientSync().set_spend_controls({"max_amount_per_payment": "$0.03"})
register_exact_evm_client(client, EthAccountSigner(Account.from_key(os.environ["EVM_PRIVATE_KEY"])))
with x402_requests(client) as session:
res = session.post(
"https://www.brainiac.software/api/v1/solar-design/tariff-savings",
json={
"demandCharge": None,
"exportMode": "export_rate",
"exportPrice": 0.05,
"fixedCharges": 0,
"generationKwh": [
0,
0,
0,
0,
0,
0,
0.2,
0.8,
1.5,
2.2,
2.8,
3,
3.1,
2.9,
2.4,
1.7,
0.9,
0.3,
0,
0,
0,
0,
0,
0,
],
"importPrice": [
0.1,
0.1,
0.1,
0.1,
0.1,
0.1,
0.1,
0.25,
0.25,
0.25,
0.25,
0.25,
0.25,
0.25,
0.25,
0.25,
0.4,
0.4,
0.4,
0.4,
0.25,
0.1,
0.1,
0.1,
],
"intervalHours": 1,
"loadKwh": [
0.5,
0.5,
0.5,
0.5,
0.5,
0.5,
0.5,
1.5,
1,
0.8,
0.8,
0.8,
0.9,
0.9,
0.8,
0.8,
1,
2,
2.5,
2,
1.5,
1,
0.7,
0.5,
],
},
)
print(res.status_code, res.text)Security scan
No findings
We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.
Recent checks
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 6 h ago | Passed | 402 | 538 ms | $0.03 |
| 17 h ago | Passed | 402 | 250 ms | $0.03 |
| 27 h ago | Passed | 402 | 252 ms | $0.03 |
| 38 h ago | Passed | 402 | 198 ms | $0.03 |
| 47 h ago | Passed | 402 | 183 ms | $0.03 |
Show 10 older checks
| 2 days ago | Passed | 402 | 229 ms | $0.03 |
| 3 days ago | Timed out | - | - | - |
| 5 days ago | Timed out | - | - | - |
| 6 days ago | Passed | 402 | 395 ms | $0.03 |
| 7 days ago | Passed | 402 | 539 ms | $0.03 |
| 7 days ago | Passed | 402 | 233 ms | $0.03 |
| 7 days ago | Passed | 402 | 250 ms | $0.03 |
| 8 days ago | Passed | 402 | 219 ms | $0.03 |
| 8 days ago | Passed | 402 | 217 ms | $0.03 |
| 9 days ago | Passed | 402 | 311 ms | $0.03 |