Allocate cloud cost by tag API

Group supplied charges by one tag key. Charges without that tag remain unallocated.

The Allocate cloud cost by tag operation is part of the Cloud FinOps API on BRAINIAC.software. Group supplied charges by one tag key. Charges without that tag remain unallocated. It is exposed as POST /api/v1/cloud-finops/cost-allocation 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: 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.04 USDC
/api/v1/cloud-finops/cost-allocation

Example request

curl -i -X POST "https://www.brainiac.software/api/v1/cloud-finops/cost-allocation" \
  -H 'content-type: application/json' \
  -H 'Idempotency-Key: <fresh-64-character-random-hex-key>' \
  --data-binary @- <<'JSON'
{
  "tagKey": "team",
  "rows": [
    {
      "date": "2026-01-01",
      "service": "compute",
      "cost": 70,
      "currency": "USD",
      "tags": [
        {
          "key": "team",
          "value": "platform"
        }
      ]
    },
    {
      "date": "2026-01-02",
      "service": "compute",
      "cost": 30,
      "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