Skip to content
Fourohtwo

payai.agentstools.dev/cost/diff

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.

SolanaAnswering
POSThttps://payai.agentstools.dev/cost/diff

Uptime100% of 4 checks in 30 days

30 days agoToday

Call it from an agent

curl -i -X POST -H 'content-type: application/json' "https://payai.agentstools.dev/cost/diff" \
  -d '{"format":"terraform-plan","region":"us-east-1","plan_json":"{\"resource_changes\":[{\"address\":\"aws_instance.web\",\"type\":\"aws_instance\",\"name\":\"web\",\"change\":{\"actions\":[\"update\"],\"before\":{\"instance_type\":\"t3.medium\"},\"after\":{\"instance_type\":\"m5.large\"}}}]}","budget_monthly":500}'

# 402 Payment Required comes back with the price and where to pay.
# Any x402 client pays and retries.

Example input

{
  "format": "terraform-plan",
  "region": "us-east-1",
  "plan_json": "{\"resource_changes\":[{\"address\":\"aws_instance.web\",\"type\":\"aws_instance\",\"name\":\"web\",\"change\":{\"actions\":[\"update\"],\"before\":{\"instance_type\":\"t3.medium\"},\"after\":{\"instance_type\":\"m5.large\"}}}]}",
  "budget_monthly": 500
}