Forecast monthly cloud cost API

Fit a line through at least three supplied monthly totals, or multiply the average daily cost by the length of the next month when at least 14 days are supplied. Less history is not forecast.

The Forecast monthly cloud cost operation is part of the Cloud FinOps API on BRAINIAC.software. Fit a line through at least three supplied monthly totals, or multiply the average daily cost by the length of the next month when at least 14 days are supplied. Less history is not forecast. It is exposed as POST /api/v1/cloud-finops/monthly-cost-forecast and priced at $0.05 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: The billing rows, CSV, and resource usage supplied in the request. Limitations: No cloud account is connected and no infrastructure is changed. The billing format is brainiac-billing-v1. Native provider exports are not accepted. Provider list prices are not added, and currencies are not converted. Idle and unused results require the usage fields and thresholds supplied in the request. 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 Parse a billing CSV, Detect cost anomalies, Break down cloud spend, Detect idle compute. Open the group documentation for the full request schema, field notes, and response examples before integrating.

POST$0.05 USDC
/api/v1/cloud-finops/monthly-cost-forecast

Example request

curl -i -X POST "https://www.brainiac.software/api/v1/cloud-finops/monthly-cost-forecast" \
  -H 'content-type: application/json' \
  -H 'Idempotency-Key: <fresh-64-character-random-hex-key>' \
  --data-binary @- <<'JSON'
{
  "rows": [
    {
      "date": "2026-01-15",
      "service": "compute",
      "cost": 100,
      "currency": "USD"
    },
    {
      "date": "2026-02-15",
      "service": "compute",
      "cost": 110,
      "currency": "USD"
    },
    {
      "date": "2026-03-15",
      "service": "storage",
      "cost": 120,
      "currency": "USD"
    }
  ]
}
JSON

An 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 APIs

Cloud FinOps APIFull docsHow it works