{"uid":"cap_at3u9iGt-cmV5MyDl0V1q","slug":"brainiac-cloud-finops-cost-anomaly-detection-8986b92c","name":"BRAINIAC Cloud FinOps Cost Anomaly Detection","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-anomaly-detect?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},"currency":{"type":"string","pattern":"^[A-Za-z]{3}$"}}},"responseSchema":{"type":"json","example":{"series":[{"days":15,"mean":22.666667,"stdev":49.057789,"status":"anomalies","currency":"USD","anomalies":[{"cost":200,"date":"2026-01-15","zScore":3.6148}]}],"status":"anomalies","findings":[{"code":"anomaly_method","kind":"extracted","detail":"USD uses a sample z-score. Mean 22.666667, sample standard deviation 49.057789. A day is flagged when the absolute z-score is at least 3."}],"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.","Provider list prices are not added, and no saving is claimed without a supplied cost.","The billing format is brainiac-billing-v1. Native provider exports are not accepted.","An anomaly is a daily total whose sample z-score is at least 3. It is not a root-cause diagnosis."],"accountConnected":false,"infrastructureChanged":false}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.04","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.04/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.04","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.04","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_DbpVgEo9ahUT3yeMaWnrC","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.04","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Analyzes cloud cost time-series data to detect statistically significant spending anomalies using z-score analysis, returning flagged dates, scores, and per-service summaries.","exampleAgentPrompt":"Can you scan my cloud cost data for the past 30 days and flag any days where spending looked anomalous? Here's the daily breakdown by service in CSV format — costs are in USD.","exampleUseCases":[{"title":"Monthly AWS spend spike detection","prompt":"I have my AWS daily cost export for the last 60 days broken down by service in USD. Can you run anomaly detection on it and tell me which days had unusually high or low spending?"},{"title":"Multi-service GCP billing review","prompt":"Here's a CSV of our GCP billing for the past quarter with costs per service per day in USD. Flag any days that look like statistical outliers and tell me how extreme each spike was."},{"title":"Automated FinOps alert for cost anomalies","prompt":"I'm going to send you our cloud cost rows for the past month — each with a date, service name, and USD cost. Detect any anomalies and return the z-scores so I can decide which ones to escalate to my team."}],"resultDescription":"Returns a JSON object with a top-level status ('ok' or 'anomalies'), a series array with per-currency stats (mean, stdev, days analyzed) and a list of anomalous dates with their z-scores, plus findings explaining the detection method, a checkedAt timestamp, and a limitations array clarifying scope (no live cloud connection, z-score threshold of 3, brainiac-billing-v1 format only).","failureModes":["Input CSV or rows missing required fields (date, service, cost, currency) — validation error","Date strings not matching ISO 8601 format — schema validation failure","CSV or rows array exceeds size limits (5000 rows, 200KB CSV) — request rejected","Insufficient data points per service to compute meaningful z-scores — low statistical confidence","Currency code not matching 3-letter ISO pattern — validation error","Payment not received or insufficient USDC — 402 Payment Required before processing"],"whenToPreferThis":"Choose this endpoint when you need fast, stateless statistical anomaly detection on cloud cost data without connecting a live cloud account. It is ideal for agents that already have cost data exported (CSV or structured rows) and need a cheap ($0.04/call), no-account-required z-score analysis. Prefer alternatives if you need root-cause diagnosis, live cloud account integration, savings recommendations, or native provider export format support.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-17T00:36:56.154Z","isFirstParty":false,"canonicalSlug":"brainiac-cloud-finops-cost-anomaly-detection-8986b92c"}