{"uid":"cap_KWZ-bdPgdc6B6qfxCKmJU","slug":"infrastructure-cost-diff-estimator-terraform-config-5f6f8a4b","name":"Infrastructure Cost Diff Estimator (Terraform/Config)","description":"Estimate the monthly cost DELTA of an infrastructure change before you apply it: pass a Terraform plan (its resource changes) or a baseline and a proposed config and get total before, total after, the monthly delta, per-resource added / removed / modified line items, FinOps findings and a budget verdict (pass, caution, block). AWS and Azure common resources. Cost estimate, not a bill.","url":"https://api.agentstools.dev/cost/diff","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"usage":{"type":"object","description":"Optional usage hints for usage-based items"},"format":{"enum":["auto","terraform","terraform-plan","cloudformation","docker-compose"],"type":"string","description":"Config format for baseline/proposed, or auto"},"region":{"type":"string","description":"Cloud region for pricing (default us-east-1)"},"baseline":{"type":"string","description":"Baseline config text (use with proposed instead of plan_json)"},"proposed":{"type":"string","description":"Proposed config text (use with baseline)"},"plan_json":{"type":"string","description":"A terraform plan JSON with resource_changes (before/after) — the one-file diff input"},"budget_monthly":{"type":"number","description":"Optional monthly USD budget for the verdict"}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.05","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.05/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_vm4QYID4pJEzdZIMrc6Tl","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.05","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Estimates the monthly cost delta of an infrastructure change by comparing before/after configurations for AWS and Azure resources, returning per-resource line items, FinOps findings, and a budget verdict.","exampleAgentPrompt":"Before I run terraform apply, can you estimate the monthly cost impact of this plan? I'm adding two m5.xlarge EC2 instances and a new RDS db.t3.medium on AWS — tell me the before/after totals, the monthly delta, and whether it passes or should be blocked.","exampleUseCases":[{"title":"Pre-apply Terraform cost gate","prompt":"I have a Terraform plan that adds three new Azure Standard_D4s_v3 VMs and removes one Standard_D8s_v3 — can you estimate the monthly cost delta before I apply it and tell me if it passes our $500/month budget threshold?"},{"title":"FinOps review for staging scale-up","prompt":"We're about to scale our staging environment by adding two RDS db.m5.large instances and doubling our S3 storage on AWS. Can you run a cost diff and flag any FinOps findings so I know what we're getting into?"},{"title":"CI/CD budget verdict on infra PR","prompt":"Our pull request changes the infra config from a t3.medium to an m5.xlarge and adds a NAT gateway on AWS. Can you compute the monthly cost difference and give me a pass, caution, or block verdict before we merge?"}],"resultDescription":"Returns total monthly cost before the change, total monthly cost after the change, the net monthly delta, a per-resource breakdown of added/removed/modified line items, FinOps findings (e.g. over-provisioning warnings), and a budget verdict of pass, caution, or block.","failureModes":["Unsupported resource types (non-AWS/Azure or uncommon services) may return null or estimated line items","Malformed or incomplete Terraform plan JSON results in a 400 validation error","Missing baseline config when required causes a computation error","Cost estimates may be inaccurate for reserved instance pricing or spot instances","Network or timeout errors return a 5xx response"],"whenToPreferThis":"Use this endpoint when you need a cost impact assessment of an infrastructure change before applying it, especially in CI/CD pipelines or FinOps workflows. It is purpose-built for Terraform plan diffs on AWS and Azure, provides structured per-resource line items and a budget verdict, and is cheaper and faster than spinning up a full cost management platform. Prefer it over generic pricing APIs when you need a delta comparison rather than an absolute price lookup.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T00:47:19.651Z","isFirstParty":false}