# BRAINIAC Cloud FinOps Cost Optimization Report

> BRAINIAC Cloud FinOps Cost Optimization Report is a paid API for AI agents from www.brainiac.software, paid per call via x402, $0.12/call, status unknown (last checked 2026-11-17).

Analyzes submitted cloud cost/usage data and returns a structured report with anomaly detection, idle resource identification, cost comparisons, forecasts, and optimization recommendations.

## Facts

- Endpoint: POST https://www.brainiac.software/api/v1/cloud-finops/cost-optimization-report?utm_source=zero.xyz
- Price: $0.12/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-17
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/brainiac-cloud-finops-cost-optimization-report-84d40e6f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_XgvlIRqO1zaBXcMgklM7R

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability brainiac-cloud-finops-cost-optimization-report-84d40e6f -d '<json body>'
```

Example prompt: Analyze my cloud cost data for the past month — I'll send you a CSV export with daily rows for each service, region, and resource — and give me a full FinOps optimization report with anomaly detection, idle resource recommendations, and a spend forecast. My budget is $5000 USD for the period 2025-05-01 to 2025-05-31.

## When to prefer this

Choose this endpoint when you need a structured, multi-section FinOps report generated from cost data you already have (CSV or structured rows), without connecting a live cloud account. It is ideal for agent workflows that ingest billing exports and need anomaly detection, idle resource identification, cost forecasting, and budget comparison in a single call, paying only per use with no account setup.

## Known failure modes

- Insufficient data: fewer than 8 days of cost rows means anomaly detection cannot run and returns 'insufficient' status
- Missing required fields in rows (date, service, cost, currency) cause validation errors
- CSV exceeds 200,000 character limit or rows array exceeds 5,000 items
- Invalid date format in rows or budget period fields
- Currency code not matching 3-letter pattern causes rejection
- No CPU metrics supplied means idle detection cannot flag resources
- Budget not supplied means budget section returns 'not_supplied' status
- Payment of 0.12 USDC on Base via x402 not completed causes request rejection

## How this service works

Pay-per-call APIs for AI agents: OFAC sanctions screening, compliance checks, token security, and Base chain data via x402. No account. Fixed USDC price. MCP-ready.

## Output

A JSON object containing: a summary string, an array of findings (each with a code, kind, and detail), section-level statuses (billing, anomalies, breakdown, idle, storage, compare, forecast, budget, allocation), an array of recommendations (each with code, detail, currency, evidence, assumption, resourceId, suppliedCost), a checkedAt timestamp, and a limitations list clarifying what was and was not analyzed.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "csv": {
   "type": "string",
   "maxLength": 200000,
   "minLength": 1
  },
  "file": {
   "type": "object",
   "required": [
    "mediaType",
    "fileBase64"
   ],
   "properties": {
    "filename": {
     "type": "string",
     "maxLength": 180,
     "minLength": 1
    },
    "mediaType": {
     "enum": [
      "text/csv",
      "text/plain"
     ],
     "type": "string"
    },
    "fileBase64": {
     "type": "string",
     "maxLength": 12000000,
     "minLength": 1
    }
   },
   "additionalProperties": false
  },
  "rows": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "date",
     "service",
     "cost",
     "currency"
    ],
    "properties": {
     "cost": {
      "type": "number",
      "maximum": 1000000000000,
      "minimum": -1000000000000
     },
     "date": {
      "type": "string",
      "format": "date",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
     },
     "tags": {
      "type": "array",
      "items": {
       "type": "object",
       "required": [
        "key",
        "value"
       ],
       "properties": {
        "key": {
         "type": "string",
         "maxLength": 80,
         "minLength": 1
        },
        "value": {
         "type": "string",
         "maxLength": 200,
         "minLength": 1
        }
       },
       "additionalProperties": false
      },
      "maxItems": 20
     },
     "region": {
      "type": "string",
      "maxLength": 80,
      "minLength": 1
     },
     "account": {
      "type": "string",
      "maxLength": 80,
      "minLength": 1
     },
     "service": {
      "type": "string",
      "maxLength": 120,
      "minLength": 1
     },
     "currency": {
      "type": "string",
      "pattern": "^[A-Za-z]{3}$"
     },
     "usageUnit": {
      "type": "string",
      "maxLength": 40,
      "minLength": 1
     },
     "resourceId": {
      "type": "string",
      "maxLength": 200,
      "minLength": 1
     },
     "resourceType": {
      "type": "string",
      "maxLength": 80,
      "minLength": 1
     },
     "usageQuantity": {
      "type": "number",
      "maximum": 1000000000000,
      "minimum": 0
     }
    },
    "additionalProperties": false
   },
   "maxItems": 5000
  },
  "budget": {
   "type": "object",
   "required":
… (truncated)
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "summary": "The report uses only the supplied export and usage fields. No account was connected and no infrastructure was changed.",
  "findings": [
   {
    "code": "anomaly_insufficient",
    "kind": "insufficient",
    "detail": "USD has 3 daily totals. A modified check needs at least 8 days, so no anomaly was scored."
   },
   {
    "code": "idle_rule",
    "kind": "extracted",
    "detail": "Compute is idle only when daysObserved is at least 14 and cpuPercent is below the supplied threshold 5. Missing CPU is …"
   },
   "…"
  ],
  "sections": [
   {
    "name": "billing",
    "status": "parsed"
   },
   {
    "name": "anomalies",
    "status": "insufficient"
   },
   "…"
  ],
  "checkedAt": "2026-11-02T19:00:00.000Z",
  "limitations": [
   "No cloud account was connected and no infrastructure was changed.",
   "Costs and forecasts use only figures supplied in the request.",
   "…"
  ],
  "recommendations": [
   {
    "code": "idle_compute",
    "detail": "The figure is the cost supplied for this resource, not a provider price.",
    "currency": "USD",
    "evidence": "CPU 2% across 14 supplied days.",
    "assumption": "The resource stays idle only while CPU remains below the supplied threshold for the supplied window.",
    "resourceId": "i-idle",
    "suppliedCost": 40
   },
   {
    "code": "supplied_price_difference",
    "detail": "The difference uses only the prices and hours in the request.",
    "currency": "USD",
    "evidence": "b costs 14.4 less than the next supplied option for the supplied hours. The prices were supplied and are not a provider…",
    "assumption": "The hours stay at the supplied figure and the supplied hourly prices do not change.",
    "resourceId": "b",
    "suppliedCost": 14.4
   }
  ],
  "accountConnected": false,
  "infrastructureChanged": false
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/brainiac-cloud-finops-cost-optimization-report-84d40e6f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from www.brainiac.software](https://www.zero.xyz/host/www.brainiac.software/llms.txt)
