{"uid":"cap_XgvlIRqO1zaBXcMgklM7R","slug":"brainiac-cloud-finops-cost-optimization-report-84d40e6f","name":"BRAINIAC Cloud FinOps Cost Optimization Report","description":"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.","url":"https://www.brainiac.software/api/v1/cloud-finops/cost-optimization-report?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"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":["amount","currency","periodStart","periodEnd"],"properties":{"amount":{"type":"number","maximum":1000000000000,"minimum":0},"currency":{"type":"string","pattern":"^[A-Za-z]{3}$"},"periodEnd":{"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])))$"},"periodStart":{"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])))$"}},"additionalProperties":false},"tagKey":{"type":"string","maxLength":80,"minLength":1},"groupBy":{"enum":["service","region","account"],"type":"string"},"options":{"type":"array","items":{"type":"object","required":["name","hourlyPrice","hours","currency"],"properties":{"name":{"type":"string","maxLength":80,"minLength":1},"hours":{"type":"number","maximum":1000000,"minimum":0},"currency":{"type":"string","pattern":"^[A-Za-z]{3}$"},"hourlyPrice":{"type":"number","maximum":1000000000000,"minimum":-1000000000000}},"additionalProperties":false},"maxItems":8,"minItems":2},"volumes":{"type":"array","items":{"type":"object","required":["resourceId","daysObserved"],"properties":{"cost":{"type":"number","maximum":1000000000000,"minimum":-1000000000000},"usedGb":{"type":"number","maximum":1000000000,"minimum":0},"attached":{"type":"boolean"},"currency":{"type":"string","pattern":"^[A-Za-z]{3}$"},"storageGb":{"type":"number","maximum":1000000000,"minimum":0},"resourceId":{"type":"string","maxLength":200,"minLength":1},"daysObserved":{"type":"integer","maximum":3660,"minimum":0}},"additionalProperties":false},"maxItems":500},"resources":{"type":"array","items":{"type":"object","required":["resourceId","resourceType","daysObserved"],"properties":{"cost":{"type":"number","maximum":1000000000000,"minimum":-1000000000000},"currency":{"type":"string","pattern":"^[A-Za-z]{3}$"},"cpuPercent":{"type":"number","maximum":100,"minimum":0},"resourceId":{"type":"string","maxLength":200,"minLength":1},"daysObserved":{"type":"integer","maximum":3660,"minimum":0},"resourceType":{"type":"string","maxLength":80,"minLength":1}},"additionalProperties":false},"maxItems":500},"minimumDays":{"type":"integer","maximum":3660,"minimum":1},"cpuThreshold":{"type":"number","maximum":100,"minimum":0}}},"responseSchema":{"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}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.12","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.12/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.12","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.12","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_iUKzzwspFBXMHjCwS7ms-","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.12","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Analyzes submitted cloud cost/usage data and returns a structured report with anomaly detection, idle resource identification, cost comparisons, forecasts, and optimization recommendations.","exampleAgentPrompt":"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.","exampleUseCases":[{"title":"Monthly AWS spend review","prompt":"Here's my AWS billing export as a CSV for May 2025 — can you run it through the cloud cost optimizer and tell me which services have anomalies, which EC2 instances look idle, and what my projected spend is for next month? My budget was $8000 USD."},{"title":"Idle compute resource cleanup","prompt":"I have a list of cloud cost rows with CPU usage for all our compute resources over the last 30 days. Run an optimization report and flag any instances where CPU stayed below 5% — I want to know exactly which resource IDs are idle and how much we'd save by shutting them down."},{"title":"Multi-service cost breakdown and comparison","prompt":"I want to compare our current cloud provider pricing against some alternatives I'll supply. Here are daily cost rows for our services across three regions in June 2025 — give me a full breakdown by service and region, highlight any cost anomalies, and compare total costs against the alternative pricing I'll include."}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-17T00:36:03.956Z","isFirstParty":false,"canonicalSlug":"brainiac-cloud-finops-cost-optimization-report-84d40e6f"}